-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EMFILE errors on MacOs #109
Comments
That's a common bug on Mac's Sierra and higher, which I'm guessing yours is? Have you already increased your user's max open file limit (mac's default to painfully low amounts I hear)? Edit: Also, not an atom-elmjutsu bug, rather it's just a limitation in the default mac setup with file watchers (mac's are getting more developer hostile over time it seems...). |
Yeah, increased to 64k as you can see in my original message |
64k still might not be enough depending on the size of your entire workspace directory... ^.^; How many files does it contain in full? |
There is 30625 files total in directory. But this error appears at start of scanning - I am tried to watch how many files open by atom and it was about 240 only when hangs. |
240 really looks like file limit reach (256 is default, right?). but |
What about |
output for this commands:
Yeah, I set this limit about a week ago and restarted many times since then. |
Hmm if it's still set to 256 somewhere then I'm not sure how mac's set it, I don't use them... ^.^; Interestingly your |
I am sure I have no problems with user/system file limit since I am using Wrk actively and it depends on file limit also. there is no problems with Wrk after changing file limit to 64k. |
Hi! Great work on this and I want to try Atom only because of this package 👍
But I am unable to use it because of annoying EMFILE errors.
atom version:
elm version:
limit of open files is set to 64k:
number of packages in node_modules:
It looks like it hangs when traversing
node_modules
directory. Errors like on screenshot above just appearing infinitely with high rate. I am able to use elmjutsu when removed['elm-stuff/exact-dependencies.json', 'elm-package.json', '**/*.elm']
in chokidar config (lib/core.js:327
) and replaced it with my elm code directory so it will no look atnode_modules
at all.Also I am able to use it with
usePolling: true
flag.The text was updated successfully, but these errors were encountered: