-
Notifications
You must be signed in to change notification settings - Fork 39
Atom Helper using 100% of CPU on Mac OS when escaping new lines '\' for a big string #410
Comments
How large is this file? It looks like you are using tabs for indentation, and currently there is a bug with JSHint that causes most lines indented with tabs to report an invalid point. Each invalid point currently causes a call out to check the JSHint version in use which might be causing the high load if this file is quite large. |
I've implemented caching of the debug information in #418, that should cut this down to only the time it takes to run JSHint itself, and a minimal overhead regardless of how many errors that file is triggering. |
Published in v3.1.4. Note that the reason there are so many invalid point warnings, and that your system was getting overwhelmed gathering the information for them is due to JSHint breaking on virtually all tab indented lines. I've filed jshint/jshint#3151 to get that fixed there. |
Thank you, i switched to spaces instead of tab indentations as well. It seems to be working much better. Best Regards, |
Hey,
I'm running into an issue where the atom helper uses 100% of my Mac's CPU. I'm using a late 2015 on macOS Sierra. I've narrowed down the conditions and the plugin to linter-jshint (since when its disabled this problem doesn't occur).
The issue happens when i'm escaping a string to a new line with the
\
Below is an example where i'm posting a big XML string, and for readability i'm escaping each tag with a new line:
As soon as I get 2 or 3 escapes
\
in there is when the problem starts.Let me know any steps I can take to further debug the situation, and provide you with requested information.
Best Regards,
The text was updated successfully, but these errors were encountered: