ColorHighlighter
ColorHighlighter copied to clipboard
LESS files cause CPU to skyrocket due to ColorHighlighter recursion
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.
Weird. Are you sure you don't have circular dependencies in @imports?