Open SuddenGunter opened 4 years ago
cc @NTaylorMullen - this is interesting, since the exception is coming from CoreFX
I'm having a very similar issue, any fix?
I am now running into this issue whenever I open VSCode and work on my project in Linux. The workaround that I found is this:
I recently discovered that when restarting vscode (usualy after a debugger crash) the plugin also crashes and remains in memory. This can be verified using ps aux | grep dotnettools
, and/or a tool that counts inotify watches.
So we need to kill those processes to release the watches. Then vscode can be started normally.
This MAJOR problem has been in existence for years. It's something I struggle with multiple times every day.
Related:
Possible diagnoses:
The vscode team has had trouble reproducing this issue; I hope aggregating these will help them repro and find the root cause.
Issue Description
Unable to work normally with my solution because of "Too many open files". inotify watches is set to maximum:
In the folder I've opened lays several dotnet solutions, biggest one with 300+ projects.
Steps to Reproduce
Open folder with solution. Wait for 3-5 minutes.
Expected Behavior
VSCode able to work with big solution
Actual Behavior
VSCode unable to work with big solution
OmniSharp log
Environment information
VSCode version: 1.39.2 C# Extension: 1.21.5
Mono Information
OmniSharp using global mono :6.0.0Dotnet Information
.NET Core SDK (reflecting any global.json): Version: 2.2.108 Commit: 33ed5b90ce Runtime Environment: OS Name: arch OS Version: OS Platform: Linux RID: arch-x64 Base Path: /opt/dotnet/sdk/2.2.108/ Host (useful for support): Version: 2.2.6 Commit: 7dac9b1b51 .NET Core SDKs installed: 2.2.108 [/opt/dotnet/sdk] .NET Core runtimes installed: Microsoft.NETCore.App 2.2.6 [/opt/dotnet/shared/Microsoft.NETCore.App] To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-downloadVisual Studio Code Extensions
|Extension|Author|Version| |---|---|---| |csharp|ms-vscode|1.21.5| |dotenv|mikestead|1.0.1| |EditorConfig|EditorConfig|0.14.2| |Go|ms-vscode|0.11.7| |Material-theme|zhuangtongfa|2.28.2| |path-intellisense|christian-kohler|1.4.2| |plantuml|jebbs|2.12.1| |rainbow-csv|mechatroner|1.3.1| |rest-client|humao|0.22.2| |synthwave-vscode|RobbOwen|0.0.7| |terraform|mauve|1.4.0| |vscode-docker|ms-azuretools|0.8.1| |vscode-icons|vscode-icons-team|9.5.0| |vscode-yaml|redhat|0.5.3|;