jscs --auto-configure . process out of memory #1501
Comments
Hey @khaledkbadr. Thanks for reporting. Can you try |
See http://stackoverflow.com/a/26094800/700897 for more info. We haven't had to care much about memory concerns for parsing really big files. An alternative concern could be a memory leak in the auto-config generator, but that's hard to say with just this one reported case. |
@mrjoelkemp I get an error when using that flag:
|
Makes sense, but odd that I didn't see that error locally. You could get I'm more interested in finding out how to avoid the space issue on the jscs Let me know if that works.
|
@khaledkbadr can you point us to a public repo that this fails on? If we had a repro case, we could debug this much faster. @mrjoelkemp we may what to try the v8 profiler to see if we can detect a memory leak. tutorial here: https://github.com/felixge/node-memory-leak-tutorial |
I have a very initial rep that I had the same problem with. Does jscs --auto-configure . ignore the node_modules directory?? |
It should on the master branch given a recent commit. Can you try the
|
Closing as I think 1ba4b45 fixes the problem. Happy to reopen if that's not the case. |
FWIW, commit If I start node using the |
I was working fine without issue until I added istanbul to my project and jscs began complaining about perceived errors in the Update: I think once I added the |
Any update on this issue? Now seeing problems where jscs simply hangs when running our Travis builds. |
You aren't likely to see any updates here, since JSCS is now a deprecated project. The committers have moved over to ESLint and recommended that we do the same. |
Thanks Mike - I hadn't realized that. I'll make the switch over to eslint. |
When I run jscs --auto-configure . I get
Checking . against the presets
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
Aborted (core dumped)
in my 8 GB RAM laptop
The text was updated successfully, but these errors were encountered: