Sublime Forum

ST3 3069 Reproducible lockup with syntax highlighting

#1

I’ve got an .sh file (so it gets syntax highlighted) using the “Tomorrow” color scheme.

I’ve tried typing, on a new line:

...
send "word\r"
...

But the app consistently locks when I’ve got \ and " on the same line, apparently.

Setting syntax to “Plain Text” fixes the problem. So the syntax highlighter is tripping over itself and causing the CPU to skyrocket, and I’m forced to kill it.

Using the very latest of ST3 (3069).

0 Likes

#2

I’m also getting frequent lockups with 3069 (Windows). 3066 was fine.

It seems to be related to the use of backspace, although that might just be coincidence.

UPDATE: consistently reproducible by typing " directly in front of an identifier (JavaScript syntax). Sometimes happens with ’ as well. Also confirmed that setting syntax to Plain Text avoids the lockup.

0 Likes

#3

Maybe you also use BracketHighlighter and have not yet upgraded to the latest? viewtopic.php?f=5&t=3327&start=190#p65439

0 Likes

#4

@facelessuser Just tried to upgrade BracketHighlighter. I don’t think it worked:

ignored packages updated to: [Vintage, BracketHighlighter]
unloading plugin BracketHighlighter.bh_core
reloading Packages/BracketHighlighter/bh_core.sublime-settings
unloading plugin BracketHighlighter.bh_plugin
unloading plugin BracketHighlighter.bh_remove
unloading plugin BracketHighlighter.bh_swapping
unloading plugin BracketHighlighter.bh_wrapping
unloading plugin BracketHighlighter.ure
reloading Packages/User/Preferences.sublime-settings
ignored packages updated to: [Vintage]
reloading plugin BracketHighlighter.bh_core
reloading Packages/BracketHighlighter/bh_core.sublime-settings
reloading plugin BracketHighlighter.bh_plugin
reloading plugin BracketHighlighter.bh_remove
reloading plugin BracketHighlighter.bh_swapping
reloading plugin BracketHighlighter.bh_wrapping
reloading plugin BracketHighlighter.ure
Unhandled exception in thread started by <function bh_loop at 0x000000000418A488>
Traceback (most recent call last):
File “C:\Users\Hansifer\AppData\Roaming\Sublime Text 3\Packages\BracketHighlighter\bh_core.py”, line 1435, in bh_loop
while not BhThreadMgr.restart:
AttributeError: ‘NoneType’ object has no attribute ‘restart’
reloading Packages/User/Preferences.sublime-settings

0 Likes

#5

Uninstalled and reinstalled BracketHighlighter. That fixed the lockup issue for me. Thanks @facelessuser!

0 Likes