-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Windows VSCode error: Error: EMFILE: too many open files #124176
Comments
(Experimental duplicate detection) |
@jrieken Assigning you since I believe the markdown extension is just calling vscode/extensions/markdown-language-features/src/features/workspaceSymbolProvider.ts Line 82 in d5f4e11
|
@jrieken By the way: this happens when all extentions disabled. |
@xrkk can you clarify what OS |
Version: Windows 10 企业版 LTSC |
I don't know what the file service can do here, after all you are hammering the disk with requests, this code is really dangerous: vscode/extensions/markdown-language-features/src/features/workspaceSymbolProvider.ts Lines 29 to 33 in d5f4e11
Because it is potentially unbounded and you run all these things in parallel without limits. I would suggest to revisit the choice, at the minimum implement some debouncing. |
Oh hello: isaacs/node-graceful-fs#160 Looks like my adoption of I still think markdown should not be doing this and will open a separate issue. |
fs - favor non promise based methods (fix #124176)
I tried latest Insider version, and problem still exists.
Version Info:
I copied whole folder to Ubuntu Virtual Machine and tried an older version of VSCode, and this problem does not occur.
And, the folder has more than 15K note files. |
@bpasero I think this issue should be re-opened. |
Thanks a lot, indeed not fixed. But I am too afraid to tackle this in May because the solution is a bit more involved. |
I understand. My note folder has ~17K files, including: ~9K markdown files, ~5K files in .git folder and ~3K png image files. Using VSCode Ctrl+T to navigate through tags is quite helpful, is there anything I can do to make it work instead of waiting for issue being fixed? |
Now I open the folder with WSL-Windows, and it works! |
via 708951c |
@bpasero Not fixed in latest version. 版本: 1.57.0 (system setup)
I think it might not be the probelm of |
@xrkk yeah you will need to switch to our insiders version to benefit from the fix. It should be out in a moment today. You can give our preview releases a try from: https://code.visualstudio.com/insiders/ |
Yes. Fixed in insider version. Thank you! |
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
In a workspace with too many files, when trying to search symbol with Ctrl+T, nothing happends, no symbols show up, and log window:
If in linux, there is a way to fix this: https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc
But on Windows, how can I do this?
The text was updated successfully, but these errors were encountered: