Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Causes Sublime to use 100% CPU on save #193

Open
joual opened this issue Oct 21, 2014 · 4 comments
Open

Causes Sublime to use 100% CPU on save #193

joual opened this issue Oct 21, 2014 · 4 comments

Comments

@joual
Copy link

joual commented Oct 21, 2014

Working on a relatively large project mostly made of .py/.js/.coffee files and every time I save a file (even just a python file, without any js file open) it causes a CPU spike for several seconds from sublime 3, which consumes 100% CPU. I narrowed it down to this package by installing only this one and seeing the same pattern. I changed the package's user settings to pretty much all false to try and stop the indexing but nothing changed.

Edit: For what it's worth, reverting CoffeeScript.tmLanguage and CoffeeScript_Literate.tmLanguage to what they were a couple days ago fixes the issue.

@markalfred
Copy link
Contributor

That edit just broke my heart 😞

Thanks for the detailed report, I'll take a look asap!

@joual
Copy link
Author

joual commented Nov 7, 2014

So, for a piece of regex which causes catastrophic backtracking for the commit 26dbc4e .

(for the regex /(?![\s=/*+{}?])(\\.|.)*?/[igmy]{0,4}(?![a-zA-Z0-9]))

"<li><a>" + status + "</a></li>" + "<li><a id=\"start-offline\" href=\"#offline_mode\" data-role=\"button\" data-icon=\"arrow-r\" data-iconpos=\"bottom\">Test</a></li>" + "<li><a href=\"#sync_survey\" data-role=\"button\" data-icon=\"refresh\" data-iconpos=\"bottom\">Test</a></li>" + "<li class=\"nfc\"><a href=\"#survey-options\"  data-role=\"button\" data-icon=\"gear\" data-iconpos=\"bottom\">Options</a></li>" + "</ul>"

Here's a link to see that it causes the issue : http://regex101.com/r/pQ5lB6/1

@sciyoshi
Copy link

Any word on this? Can that commit be reverted until a better fix is found?

@vmkcom
Copy link

vmkcom commented Nov 19, 2015

any updates? CoffeeScript highlighting causes Sublime Text 3 to crash sometimes on big files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants