ColorHighlighter icon indicating copy to clipboard operation
ColorHighlighter copied to clipboard

LESS files cause CPU to skyrocket due to ColorHighlighter recursion

Open TylerJBrown192 opened this issue 8 years ago • 1 comments

Using Sublime Text 3 with minimal packages. When I'm in LESS files, Sublime Text's CPU usage skyrockets to ~100%. In looking at the Sublime console, I get hundreds of the errors below:

File "ColorHighlighter in /Users/tbrown/Library/Application Support/Sublime Text 3/Installed Packages/Color Highlighter.sublime-package", line 1361, in get_file_vars File "ColorHighlighter in /Users/tbrown/Library/Application Support/Sublime Text 3/Installed Packages/Color Highlighter.sublime-package", line 1357, in _get_vars

And then finally the errors end with:

RuntimeError: maximum recursion depth exceeded

Yet the latency / CPU usage still persist.

TylerJBrown192 avatar May 13 '16 19:05 TylerJBrown192

Weird. Are you sure you don't have circular dependencies in @imports?

Monnoroch avatar May 15 '16 16:05 Monnoroch