Monnoroch / ColorHighlighter

ColorHighlighter - is a plugin for the Sublime text 2 and 3, which underlays selected hexadecimal colorcodes (like "#FFFFFF", "rgb(255,255,255)", "white", etc.) with their real color. Also, plugin adds color picker to easily modify colors. Documentation: https://monnoroch.github.io/ColorHighlighter.
https://sublime.wbond.net/packages/Color%20Highlighter
1.31k stars 130 forks source link

LESS files cause CPU to skyrocket due to ColorHighlighter recursion #308

Open TylerJBrown192 opened 8 years ago

TylerJBrown192 commented 8 years ago

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.

Monnoroch commented 8 years ago

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