davidrios / jade-tmbundle

A comprehensive textmate / sublime text bundle for the Jade template language.
https://github.com/davidrios/jade-tmbundle
MIT License
102 stars 31 forks source link

Hang when opening specific file (Sublime 3, build 3124) #85

Closed bramus closed 8 years ago

bramus commented 8 years ago

I've noticed that with the most recent build of Sublime Text 3 (build 3124) on macOS Sierra 10.12 the syntax highlighting of .jade files has become slower. Mainly files that contain script. blocks seem to be slower to me.

One file that even totally hangs Sublime is https://gist.github.com/bramus/32e4e5ff9ec3c43669db8a4d490cb231

Disabling the Jade bundle through Package Control no long crashes Sublime.

Perhaps this is linked to #47?

davidrios commented 8 years ago

No relation with #47. It's a problem with build 3124, it's shipping a new built-in JavaScript highlighter that have some issues with this bundle. Try to revert to the previous stable release and see if the problem persists. Or install the Babel bundle and restart sublime and check if the problem is solved.

davidrios commented 8 years ago

Actually the problem exists since build 3114, try build 3103.

davidrios commented 8 years ago

If installing Babel, disable internal JavaScript package:

Preferences > ignored_packages > ["Vintage", "JavaScript"]

bramus commented 8 years ago

Thanks for looking into this @davidrios, disabling the JavaScript and Vintage indeed did the trick (Babel was already installed).

JohnKulp commented 8 years ago

I've been having the same problem on OS X El Capitan 10.11.6. Whenever I attempted to open a jade file, sublime would entirely crash during loading. I installed an alternative javascript package as a workaround, but it would be wonderful to see this issue fixed.

davidrios commented 8 years ago

Have you guys tried the latest stable build 3126? I tested here and it seems to have resolved the issue.

bramus commented 8 years ago

Build 3126 indeed fixes this issue. Thanks!