WebStorm causing CPU spikes
I just started a new node project in WebStorm and I'm getting a lot of CPU spikes. I can't tell if it's related to having a particular file open or not. Sometimes it seems like the CPU activity dies off after I close certain files but it's not consistent. I have every directory except my source code set to Excluded. I don't think it's an indexing thing. Or if it is, WebStorm is not stating that in the UI.
I have the unused global symbol inspections turned off. I have also tried invalidating the cache and restarting several times. Nothing seems to be helping.
This is a TypeScript project btw. Maybe the parser??
I did manage to catch one of the spikes in the CPU profiler. I have attache the file, which is called WS-173.3727.108_dave_08.04.2018_15.07.44.zip.
Please sign in to leave a comment.
Please can you provide your tsconfig.json and package.json?
Also, please make sure that all build destination folders are excluded from project
The build destination folder is excluded.
Here is package.json:
Here is also a package.json in the parent folder:
Here is tsconfig.json:
Please try moving
from "dependencies" to "devDependencies" in your package.json files - this should make things better
Okay, I'll give it a shot. I didn't realize that WebStorm treated regular dependencies and dev dependencies differently.
also, please can you provide a screenshot of Preferences | Languages & Frameworks | JavaScript | Libraries page?
Here you go:
Looks OK, as far as I can see. Did you try moving "typescript" to "devDependencies" ?
I have yes. I will work with it a bit and let you know how it goes.
This seems to be working, thank you for the help.