adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.26k stars 7.63k forks source link

Minified files freezes Brackets at some point #11255

Open nyubbie opened 9 years ago

nyubbie commented 9 years ago

Have been experiencing uncolored code for large minified CSS files -- apparently the Bracket's theme colors stop at a certain point, making the rest of the code just a normal black color text.

brackets-color-disappears

Upon scrolling the entire document for some time, the entire file freezes and doesn't work for a few seconds. Bracket's File / Edit / Find / View bar still works though.

However, if I use Search (CTRL + F) on the entire file, the entire file freezes for so long I have to force close the program and reload again.

Is this normal?

marcelgerber commented 9 years ago
  1. Yes, syntax highlighting is supposed to end at some point. That's the default behavior of CodeMirror, the code editor we use internally.
  2. Unfortunately, CodeMirrors handling of long lines is not that good. But in recent releases, we've made good progress in CSS rendering performance.
    Could you maybe try Debug > Reload without extensions to see if it's really a Brackets core issue or simply related to some extension you have installed?
nyubbie commented 9 years ago

I understand @MarcelGerber but this didn't happen in other older code editors (maybe different underlying engine). Ironically, I had to boot up an old version of Dreamweaver to edit that minified file. Also, i tried the minified file again without extensions enabled -- take note this discolouration and freezing only happens when the entire minified file is of 1 line.

Anyway, just highlighting this to you guys. You guys are still doing a great job -- keep it up :)

marcelgerber commented 9 years ago

So, what was the outcome of running Brackets without extensions? Also, there's gonna be a fix (#10882) in Release 1.4 which fixes some issues we had with CSS specifically.

nyubbie commented 9 years ago

Oh. Oops -- still the same.

Alright, good to know. :)

abisonjohn commented 9 years ago

I have the same problem, it's freezes every time when i paste or open compressed codes.

marcelgerber commented 9 years ago

@abisonjohn Did you try running Brackets without extensions? (Debug > Reload without extensions) Also, what file types does Brackets have problems with? JS? CSS?

abisonjohn commented 9 years ago

@MarcelGerber I tried your way, and it's work's and found one problem that some portion of the code is not colored.File type is CSS capture

marcelgerber commented 9 years ago

That's expected. Read the other part if this issue to get more information.