-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Linux: cannot watch large folders (ENOSPC) #4252
Comments
@isidorn this means the watcher is running out of handles, does the advise in http://code.visualstudio.com/Docs/supporting/faq#_linux-faq help? |
@bpasero that does not help, as my linux has that configured since forever |
@isidorn I think we are hitting the limits of what the OS can do... |
@Tyriar post GA I want to look into other options for watching on Mac/Linux. Though I believe if we change to adding watched folders one by one as needed by the UI, we can keep using chokidar. The expensive part in chokidar is watching large root folders recursively. |
@bpasero I actually just ran into an |
@Tyriar if you can find out any way to prevent this issue by increasing the file limit on Linux, we should update the existing entry at http://code.visualstudio.com/Docs/supporting/faq#_linux-faq |
@bpasero Any reason the number is so small in the FAQ? It's apparently capable of much more http://stackoverflow.com/a/17437601/1156119 |
@Tyriar good point! does it work with a higher number? |
@bpasero yeah that fixes it. I'll update the docs, I'll also add how to load in the new config value without restarting. |
Users should also be notified in a nicer way that this is how they increase the value. While we could do this set up as part of the .deb/.rpm packages, I would prefer to stay away from messing with global config files like that. |
@Tyriar nice, yes please update the docs. I think this is not a good situation to be in, so my suggested way forward is to reduce the number of file handles the watcher needs to install. |
@bpasero 👍 Should you close this off (since it's solved by microsoft/vscode-docs#236) and make a new issue to explicitly stop watching entire directories trees when they're too large? |
I will leave this open and cleanup post GA, I have a bunch of watcher related issues for April. |
Sounds good, I just put the docs PR up microsoft/vscode-docs#237. |
👍 |
Will be addressed in #3998 |
Steps to Reproduce:
Marking as important as I am not sure what does this potentially break. Extension host might be crashing.
The text was updated successfully, but these errors were encountered: