Open core-ai-bot opened 3 years ago
Comment by joelrbrandt Thursday Jan 17, 2013 at 01:58 GMT
It's definitely easier to reproduce this with 100k-character strings. But I saw the bug occur at about 8k characters.
Comment by joelrbrandt Thursday Jan 17, 2013 at 02:05 GMT
On the cmv3 demo on http://codemirror.net the display problem reproduces, but the actual string seems to be pasted properly. Pasting, selecting all, and then copying the entire buffer into Sublime yields a working document.
Comment by joelrbrandt Thursday Jan 17, 2013 at 02:14 GMT
On the cmv3 branch (as of right now) the paste does not get truncated, but it does not display properly (exactly like the demo on codemirror.net).
Comment by jasonsanjose Friday Jan 18, 2013 at 23:24 GMT
Marked as tracking, assigned to@
joelrbrandt.
Comment by joelrbrandt Monday Jan 21, 2013 at 22:09 GMT
This is now almost completely fixed in CodeMirror v3 (see marijnh/CodeMirror#1163) and I've confirmed the fix in the CodeMirror demo page. The remaining possible issue is that long lines break syntax highlighting on subsequent lines (and thus indentation, etc.)
By design, CodeMirror bails on syntax highlighting for lines longer than 5000 characters. I'm not sure if we should even try fixing the remaining issue (once the current CodeMirror fix makes it into Brackets).
Comment by njx Saturday Feb 02, 2013 at 01:30 GMT
Removing the codemirror v3 tag since it's not actually a bug in the codemirror v3 branch.
Comment by njx Wednesday Feb 13, 2013 at 01:45 GMT
This should be fixed in master now.@
joelrbrandt, can you regress?
Comment by joelrbrandt Wednesday Feb 13, 2013 at 15:10 GMT
The problem that this bug addresses is fixed. There still appears to be a few performance issues with long lines, which I've filed as #2856 (and as marijnh/CodeMirror#1242)
Closing this bug.
Issue by joelrbrandt Thursday Jan 17, 2013 at 01:55 GMT Originally opened as https://github.com/adobe/brackets/issues/2565
Very long lines do not display correctly in Brackets. Also, very long single-line strings do not paste properly into Brackets.
Steps to reproduce:
Create an html file in Brackets with this content:
base64,
and before the"
in the script lineExpected:
This should create an absurd but correctly functioning HTML file. When opened in a Web browser, the
jQuery
object should be defined (note that Chrome defines$
even if jQuery isn't present, so you must check for the actual jQuery object).The file should also display properly in Brackets.
Actual:
There are several failure modes, and I can't exactly figure out when each occurs. Things I've seen: