atom-elmjutsu: Atom freezes, disabling elmjutsu seems to solve it
Some time in the last month or two I’ve had huge problems with atom freezing. When i look at activity monitor, atom helper is using all the CPU. If i try to disable elmjutsu the problem seems to go away.
I tried looking in the dev console, and last time atom froze this is the last few messages:
[elmjutsu] getActiveRecordVariable null 0.12500000093132257 ms
helper.js? [sm]:944 [elmjutsu] sendActiveFile 1.5700000002980232 ms
helper.js? [sm]:944 [elmjutsu] getActiveTopLevel adminServiceGetCrashesForAgent 2.1499999994412065 ms
helper.js? [sm]:944 [elmjutsu] getActiveRecordVariable null 0.11000000033527613 ms
helper.js? [sm]:944 [elmjutsu] getActiveTopLevel null 0.7949999999254942 ms
helper.js? [sm]:944 [elmjutsu] getActiveRecordVariable null 0.1600000001490116 ms
helper.js? [sm]:944 [elmjutsu] getToken module 1 ms
helper.js? [sm]:944 [elmjutsu] sendActiveFile 5.41499999910593 ms
helper.js? [sm]:944 [elmjutsu] Running /Users/smu/.nvm/versions/node/v10.15.0/bin/elm make --report=json --output=/dev/null /Users/smu/src/main/frontend/packages/elm/src/elm/Pages/Atlas/Views/TermInput.elm...
helper.js? [sm]:944 [elmjutsu] sendFileContentsChanged 6.400000000372529 ms
helper.js? [sm]:944 [elmjutsu] getActiveTopLevel renderDatalist 0.9799999995157123 ms
helper.js? [sm]:944 [elmjutsu] getActiveRecordVariable null 0.6650000000372529 ms
helper.js? [sm]:944 [elmjutsu] getToken null 1.6450000004842877 ms
helper.js? [sm]:944 [elmjutsu] sendActiveToken 10.43500000052154 ms
I haven’t fiddled too much with the elmjutsu settings, tried to disable datatips but no luck.
I’m using atom 1.34.0, elm 19, node 10, osx 10.14.2. I reinstalled OSX the other day, and even with a fresh install of atom, node, elm and co, the problem occurs.
Heaploads of files in the project, 700k loc js, 95k loc elm. But i’ve ignored most of that (node_modules, elm-stuff etc), so what should be indexed is around 70k loc elm across 350 files and really no js.
Let me know if there is anything i can do to help debug this…
Love elmjutsu btw, main reason i stick to atom!
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 1
- Comments: 17 (6 by maintainers)
@smucode, you can try ignoring
elm-stuff
here: https://github.com/halohalospecial/atom-elmjutsu/blob/196750d526958ab51ab7107f399094d52b1a8244/lib/core.js#L398-L404