-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Live preview issue - page displayed multiple times #8151
Comments
Here's the code as text, pulled from the newsgroup thread: (@casterle, fyi you can use Markdown formatting syntax to include code in a bug report while preserving formatting)
|
@casterle I just tried this and wasn't able to reproduce it with simple edits. Do you know of a specific sequence of edits that could reliably reproduce the bug? Or do you have a sense of the kinds of edits you've been commonly doing that you could describe? (e.g. copying/pasting list items, adding attributes, deleting items, changing tag types, etc.) |
I haven’t been able to correlate the issue to any specific editing activity. I often don’t notice the issue immediately because the duplication is added to the bottom of the page and is thus sometimes not obvious. Everything I’ve been doing is very simple as one might expect of a student – I’ve not even gotten into the HTML5-specific elements yet. I’ll try to pay more attention to what I am doing when I see the problem in the future. Before reporting the issue I uninstalled and reinstalled both Chrome and Brackets; no joy. From: Narciso Jaramillo [mailto:[email protected]] @casterle https://github.com/casterle I just tried this and wasn't able to reproduce it with simple edits. Do you know of a specific sequence of edits that could reliably reproduce the bug? Or do you have a sense of the kinds of edits you've been commonly doing that you could describe? (e.g. copying/pasting list items, adding attributes, deleting items, changing tag types, etc.) — |
Here's another datapoint. I installed Brackets on a different computer and ran into the same issue. Same versions of Chrome/Brackets. Both computers are i7's running Win7 Ultimate x64 w/latest updates. |
The problem seems to be caused by jsbeautifier - whenever I beautify my code the issue occurs. I've opened an issue here: taichi/brackets-jsbeautifier#4 |
Hmmm, interesting - thanks for narrowing that down. That might still be our bug - if the only thing jsbeautifier is doing is making simple text edits, we should be able to handle that (especially if it's just changing whitespace). I'm going to reopen this so we can see if it's on our end. |
The bug is always here (taichi/brackets-jsbeautifier#4 and brackets-beautify/brackets-beautify#49). So beautifier are unusable. Is it possible to have a working built-in beautifier option in Brackets ? Thanks. |
The same issue appears on my beautify-fork: Hirse/brackets-beautify#14 As far as I was able to find out, this is the same as this Brackets issue: #10634 |
Has anyone seen a fix for this? I'm experiencing the same thing. |
Added a work-around here: Hirse/brackets-beautify@3b9dc39 Should be available in the latest version of https://github.com/brackets-beautify/brackets-beautify. |
I have this problem only when I save the file. Brackets Release 1.7 build 1.7.0-16898 (release b0a363b) Observations: With developer mode on, I see something like this:
I then have to turn off developer mode and re-enable live preview, because developer mode closes live preview. After a small edit and "save", I see this (in developer mode):
What I've found out is that, as long as I don't cause live preview to stop, I can reload the page and get the right content. It looks like saving the document clears and re-generates the internal node ids, which the live preview updating engine can't find and ends up just creating and appending new nodes to the document. So, the only workaround is to also reload the page every time I save... |
I've got the same issue in Release 1.9 build 1.9.0-17312 (release 189f6d3) |
I'm using Brackets sprint 40 with Chrome 35.0.1916.153m. The problem I'm having is that sometimes Chrome does not update the displayed page, but instead postpends my changes to the bottom of the existing page.
For example, if I have a page that displays:
and I edit the page in Brackets, sometimes Chrome will display:
This occurs fairly often, perhaps 10% of my edits; refreshing the page fixes the issue. I just learning HTML/CSS so all of my pages to date have been static.
Here's the HTML that most recently caused the issue:
BTW, Brackets is an outstanding learning tool! Thank you all for such a great gift!
The text was updated successfully, but these errors were encountered: