interner Editor mit Syntaxhervorhebung (fhem_codemirror.js) funktioniert nicht

Begonnen von TeleDet, 12 Mai 2018, 15:39:31

Vorheriges Thema - Nächstes Thema

ThoTo

Beobachtet das Verhalten sonst noch jemand bzw. neue Erkenntnisse?
Im Codemirror Forum habe ich keine entsprechenden Beiträge gefunden.

LG Thomas
KNX | MQTT | Docker | Sonos | FHEMapp

"Zwei Dinge sind unendlich, das Universum und die menschliche Dummheit, aber bei dem Universum bin ich mir noch nicht ganz sicher." (Albert Einstein)

Invers

Ich habe mit 60.0.2 (64-Bit) das selbe Problem, aktualisieren hilft bei mir nicht. Ich nutze in solchen Fällen einen anderen Browser.
Pi3B+ mit SSD/ Bullseye | FB7590 AX | 12 x Dect200 | CUL433+868 | SDuino | HM-LAN | 3 x Heizung FHT + FKontakte | KeyMatic + 4 FB | HM Wandtaster 2-fach m. LED | 6 x Türkont. TFK-TI | HM-Bew.-Melder innen | 3 x Smoked. HM-SEC-SD-2

amenomade

Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Newcomer

Habe das gleich Problem mit Firefox 64-bit 60.0.2 und Firefox 32-bit 60.0.2.
Mit dem Edge 42.17134.1.0 geht der Editor einwandfrei.


Gruß Newcomer

TeleDet

Nach FF Update von 60.0 auf 60.0.2 (64 Bit) bei mir leider doch noch keine Veränderung des Verhaltens.
Reload hilft bei mir nach wie vor.

Gruß

TeleDet

betateilchen

Das Problem kann ich nicht nachvollziehen - siehe screenshot im Anhang
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

TeleDet

@betateilchen

Hast Du ein Glück!  :) ;)

Das Problem tritt aber nicht immer auf. Ab und zu funktioniert es auf Anhieb dann wieder mal nicht.
Öffnet man das Editorfenster 10x hinter einander (egal ob mit der selben oder anderen cfg's) zeigt sich
bei mir der Fehler im Schnitt 4-6 mal.  ::)

Gruß TeleDet

Navigator

...bin auch betroffen. Desktop Firefox oder Ipad Safari aktuellste Version. Scheint wohl aber nur ein Darstellungsproblem zu sein. Wenn man in das Feld was eintippert wirds auch übernommen.  :o

ThoTo

Zitat von: Dittel am 10 Juni 2018, 16:12:42
...bin auch betroffen. Desktop Firefox oder Ipad Safari aktuellste Version. Scheint wohl aber nur ein Darstellungsproblem zu sein. Wenn man in das Feld was eintippert wirds auch übernommen.  :o

Interessant, denn Safari nutzt als Engine WebKit und Firefox nutzt Gecko.
Das würde für mich dann bedeuten dass der Fehler evt. mit FHEM zu tun hat?!


LG Thomas
KNX | MQTT | Docker | Sonos | FHEMapp

"Zwei Dinge sind unendlich, das Universum und die menschliche Dummheit, aber bei dem Universum bin ich mir noch nicht ganz sicher." (Albert Einstein)

TeleDet

 ::) ... warum tritt es dann aber nicht massiver auf? ... weil eventuell nur wenige User den Editor mit Syntaxhervorhebung  nutzen?  ::)
Und warum tritt der Fehler bei FF erst seit Version 60.0 auf und vorher nie? Die Funktion in fhem wurde sicher sehr lange nicht angetastet!?
Warum auch, wenn es funktioniert hat.

Gruß TeleDet

Invers

Der erste Aufruf einer Datei funktioniert ja auch fast immer, wenn die Datei / das Device  nicht zu gross ist. Danach ist dann halt schluss.
Pi3B+ mit SSD/ Bullseye | FB7590 AX | 12 x Dect200 | CUL433+868 | SDuino | HM-LAN | 3 x Heizung FHT + FKontakte | KeyMatic + 4 FB | HM Wandtaster 2-fach m. LED | 6 x Türkont. TFK-TI | HM-Bew.-Melder innen | 3 x Smoked. HM-SEC-SD-2

TeleDet

Eventuell doch ein Browsercache-Problem wie Ellert schon mal anmerkte???

Gruß TeleDet

Invers

Scheint so zu sein. Nach Entleerung geht es. Mal sehen, wie lange.
Danke
Pi3B+ mit SSD/ Bullseye | FB7590 AX | 12 x Dect200 | CUL433+868 | SDuino | HM-LAN | 3 x Heizung FHT + FKontakte | KeyMatic + 4 FB | HM Wandtaster 2-fach m. LED | 6 x Türkont. TFK-TI | HM-Bew.-Melder innen | 3 x Smoked. HM-SEC-SD-2

amenomade

@rudolfkoenig @rapster: wenn es hilft: ich habe folgende Untershiede.

Wenn es geht:
<div class="CodeMirror cm-s-blackboard">
<div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 4px; left: 33px;">
<textarea style="position: absolute; bottom: -1em; padding: 0px; width: 1px; height: 1em; outline: medium none currentcolor;" autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" wrap="off">
</textarea>
</div>
<div class="CodeMirror-vscrollbar" cm-not-content="true">
<div style="min-width: 1px; height: 0px;">
</div>
</div>
<div class="CodeMirror-hscrollbar" cm-not-content="true">
<div style="height: 100%; min-height: 1px; width: 0px;">
</div>
</div>
<div class="CodeMirror-scrollbar-filler" cm-not-content="true">
</div>
<div class="CodeMirror-gutter-filler" cm-not-content="true">
</div>
<div class="CodeMirror-scroll" tabindex="-1" draggable="true">
<div class="CodeMirror-sizer" style="margin-left: 29px; margin-bottom: -17px; border-right-width: 13px; min-height: 27px; min-width: 131.8px; padding-right: 0px; padding-bottom: 0px;">
<div style="position: relative; top: 0px;">
<div class="CodeMirror-lines">
<div style="position: relative; outline: medium none currentcolor;">
<div class="CodeMirror-measure">
</div>
<div class="CodeMirror-measure">
</div>
<div style="position: relative; z-index: 1;">
</div>
<div class="CodeMirror-cursors" style="">
<div class="CodeMirror-cursor" style="left: 128.8px; top: 0px; height: 19px;">&nbsp;
</div>
</div>
<div class="CodeMirror-code">
<div style="position: relative;">
<div class="CodeMirror-gutter-wrapper" style="left: -29px;">
<div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">1
</div>
</div>
<pre class=" CodeMirror-line "><span><span class="cm-meta">SD_WS_33_TH_1</span></span>
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="position: absolute; height: 13px; width: 1px; border-bottom: 0px solid transparent; top: 27px;">
</div>
<div class="CodeMirror-gutters" style="height: 40px;">
<div class="CodeMirror-gutter CodeMirror-linenumbers" style="width: 29px;">
</div>
</div>
</div></div>

Und wenn es NICHT geht
<div class="CodeMirror cm-s-blackboard">
<div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 1px; left: 972px;">
<textarea style="position: absolute; bottom: -1em; padding: 0px; width: 1px; height: 1em; outline: medium none currentcolor;" autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" wrap="off">
</textarea>
</div>
<div class="CodeMirror-vscrollbar" cm-not-content="true" style="display: block; bottom: 0px; width: 18px; pointer-events: none;">
<div style="min-width: 1px; height: 143px;">
</div>
</div>
<div class="CodeMirror-hscrollbar" cm-not-content="true" style="display: block; right: 0px; left: 982px; height: 18px; pointer-events: none;">
<div style="height: 100%; min-height: 1px; width: 110.8px;">
</div>
</div>
<div class="CodeMirror-scrollbar-filler" cm-not-content="true">
</div>
<div class="CodeMirror-gutter-filler" cm-not-content="true">
</div>
<div class="CodeMirror-scroll" tabindex="-1" draggable="true">
<div class="CodeMirror-sizer" style="margin-left: 982px; margin-bottom: 0px; border-right-width: 30px; min-height: 112px; min-width: 79.8px; padding-right: 0px; padding-bottom: 0px;">
<div style="position: relative; top: 0px;">
<div class="CodeMirror-lines">
<div style="position: relative; outline: medium none currentcolor;">
<div class="CodeMirror-measure">
</div>
<div class="CodeMirror-measure">
</div>
<div style="position: relative; z-index: 1;">
</div>
<div class="CodeMirror-cursors" style="visibility: hidden;">
<div class="CodeMirror-cursor" style="left: 0px; top: 0px; height: 76px;">&nbsp;
</div>
</div>
<div class="CodeMirror-code CodeMirror-crosshair">
<div style="position: relative;">
<div class="CodeMirror-gutter-wrapper" style="left: -982px;">
<div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 1px; width: 983px;">1
</div>
</div>
<pre class=" CodeMirror-line "><span><span class="cm-number">49.97347</span> <span class="cm-number">8.80801</span> <span class="cm-number">1</span> <span class="cm-number">12835072</span></span>
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="position: absolute; height: 30px; width: 1px; border-bottom: 0px solid transparent; top: 112px;">
</div>
<div class="CodeMirror-gutters" style="height: 142px;">
<div class="CodeMirror-gutter CodeMirror-linenumbers" style="width: 983px;">
</div>
</div>
</div></div>


Man sieht ganz gut die Probleme:
Zitat<div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 1px; left: 972px;">
   <div class="CodeMirror-hscrollbar" cm-not-content="true" style="display: block; right: 0px; left: 982px; height: 18px; pointer-events: none;">
      <div class="CodeMirror-sizer" style="margin-left: 982px; margin-bottom: 0px; border-right-width: 30px; min-height: 112px; min-width: 79.8px;
                        <div class="CodeMirror-gutter-wrapper" style="left: -982px;">
                           <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 1px; width: 983px;">1
      <div class="CodeMirror-gutter CodeMirror-linenumbers" style="width: 983px;">

Alles ist nach rechts verschoben.
(NB: beide Beispiele kommen nicht aus der gleiche "DEF", ich versuche noch es zu kriegen, damit es noch besser vergleichbar wird)
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

amenomade

Hier aus der gleiche DEF

Geht:
<div class="CodeMirror cm-s-blackboard"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 4px; left: 34px;"><textarea style="position: absolute; bottom: -1em; padding: 0px; width: 1px; height: 1em; outline: medium none currentcolor;" autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" wrap="off"></textarea></div><div class="CodeMirror-vscrollbar" cm-not-content="true"><div style="min-width: 1px; height: 0px;"></div></div><div class="CodeMirror-hscrollbar" cm-not-content="true"><div style="height: 100%; min-height: 1px; width: 0px;"></div></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1" draggable="true"><div class="CodeMirror-sizer" style="margin-left: 30px; margin-bottom: -17px; border-right-width: 13px; min-height: 27px; min-width: 266.2px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines"><div style="position: relative; outline: medium none currentcolor;"><div class="CodeMirror-measure"></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-cursors" style="visibility: hidden;"><div class="CodeMirror-cursor" style="left: 263.2px; top: 0px; height: 19px;">&nbsp;</div></div><div class="CodeMirror-code"><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -30px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">1</div></div><pre class=" CodeMirror-line "><span><span class="cm-number">49.97347</span> <span class="cm-number">8.80801</span> <span class="cm-number">1</span> <span class="cm-number">12835072</span></span></pre></div></div></div></div></div></div><div style="position: absolute; height: 13px; width: 1px; border-bottom: 0px solid transparent; top: 27px;"></div><div class="CodeMirror-gutters" style="height: 40px;"><div class="CodeMirror-gutter CodeMirror-linenumbers" style="width: 29px;"></div></div></div></div>

Geht nicht (nicht nur die Margen sind über 900, aber der Code schein viel länger zu sein:
<div class="CodeMirror cm-s-blackboard"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 1px; left: 972px;"><textarea style="position: absolute; bottom: -1em; padding: 0px; width: 1px; height: 1em; outline: medium none currentcolor; display: none;" autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" wrap="off"></textarea><div class="CodeMirror cm-s-blackboard"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 4px; left: 33px;"><textarea style="position: absolute; bottom: -1em; padding: 0px; width: 1px; height: 1em; outline: medium none currentcolor;" autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" wrap="off"></textarea></div><div class="CodeMirror-vscrollbar" cm-not-content="true"><div style="min-width: 1px; height: 0px;"></div></div><div class="CodeMirror-hscrollbar" cm-not-content="true"><div style="height: 100%; min-height: 1px; width: 0px;"></div></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1" draggable="true"><div class="CodeMirror-sizer" style="margin-left: 29px; min-width: 7px; margin-bottom: -17px; border-right-width: 13px; min-height: 28px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines"><div style="position: relative; outline: medium none currentcolor;"><div class="CodeMirror-measure"><span><span>​</span>x</span></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-cursors" style="visibility: hidden;"><div class="CodeMirror-cursor" style="left: 4px; top: 0px; height: 20px;">&nbsp;</div></div><div class="CodeMirror-code"><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">1</div></div><pre class=" CodeMirror-line "><span><span cm-text="">​</span></span></pre></div></div></div></div></div></div><div style="position: absolute; height: 13px; width: 1px; border-bottom: 0px solid transparent; top: 28px;"></div><div class="CodeMirror-gutters" style="height: 41px;"><div class="CodeMirror-gutter CodeMirror-linenumbers" style="width: 29px;"></div></div></div></div></div><div class="CodeMirror-vscrollbar" cm-not-content="true" style="display: block; bottom: 0px; width: 18px; pointer-events: none;"><div style="min-width: 1px; height: 143px;"></div></div><div class="CodeMirror-hscrollbar" cm-not-content="true" style="display: block; right: 0px; left: 982px; height: 18px; pointer-events: none;"><div style="height: 100%; min-height: 1px; width: 110.8px;"></div></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1" draggable="true"><div class="CodeMirror-sizer" style="margin-left: 982px; margin-bottom: 0px; border-right-width: 30px; min-height: 112px; min-width: 79.8px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines"><div style="position: relative; outline: medium none currentcolor;"><div class="CodeMirror-measure"></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-cursors" style="visibility: hidden;"><div class="CodeMirror-cursor" style="left: 0px; top: 0px; height: 76px;">&nbsp;</div></div><div class="CodeMirror-code"><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -982px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 1px; width: 983px;">1</div></div><pre class=" CodeMirror-line "><span><span class="cm-number">49.97347</span> <span class="cm-number">8.80801</span> <span class="cm-number">1</span> <span class="cm-number">12835072</span></span></pre></div></div></div></div></div></div><div style="position: absolute; height: 30px; width: 1px; border-bottom: 0px solid transparent; top: 112px;"></div><div class="CodeMirror-gutters" style="height: 142px;"><div class="CodeMirror-gutter CodeMirror-linenumbers" style="width: 983px;"></div></div></div></div>
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus