-
Notifications
You must be signed in to change notification settings - Fork 689
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
Extension hangs with high CPU usage #2763
Comments
+1 - I have experienced the same issue with the same project. Something to note, I have not experienced this issue when opening other sub-projects of the |
@akshita31 @rchande any help with this? |
@erictraut @Jma353 Could you try with the latest release of the C# extension? We have made some performance improvements that should make the experience better. |
@akshita31 I installed Does this repo for you on a Mac? Something I notice is that, initially, on opening a file in
along with infinite progress bar at the top of vscode. Hope these details are helpful in repo-ing / debugging. |
I found a hint in #3079 and removing IDisposable implementations actually helped. |
Is this related to dotnet/sdk#23267 |
A lot has changed with project loading and mono since this issue as opened. If you are still running into problems, please open a new issue. |
Issue Description
When loading some projects, the C# extension hangs, and the "mono" process is stuck running at at 100%+ CPU utilization. No language services that involve the language server (IntelliSense, hover, etc.) work.
Steps to Reproduce
On a Mac, clone the Microsoft Python Language Server project (https://github.com/Microsoft/python-language-server)
Launch VSCode and open the primary workspace for the cloned repo
Install the C# extension if it's not already installed
Open the "Activity Monitor" and sort the processes by CPU. Note that the "mono" process is now running at 100%+
In VSCode, open the output view and switch to the "OmniSharp Log". Note that the last line says: Loading project: /python-language-server/src/LanguageServer/Impl/Microsoft.Python.LanguageServer.csproj
I allowed it to run for 15 minutes before terminating it.
I presume this is an issue with OmniSharp, as opposed to the javascript portion of the language server.
I tried rebuilding previous versions of the C# extension (1.16.2, 1.15.2) to see if this was a recent regression, but I was able to repro the same problem with those versions.
I tried the same scenario on Windows, and it worked fine. The OmniSharp log contained additional contents including the line
Successfully loaded project file
. On the Mac, this was never emitted to the log.OmniSharp log
C# log
Environment information
VSCode version: 1.30.1
C# Extension: 1.17.1
Mono Information
OmniSharp using built-in monoDotnet Information
.NET Core SDK (reflecting any global.json): Version: 2.2.101 Commit: 236713b0b7Runtime Environment:
OS Name: Mac OS X
OS Version: 10.13
OS Platform: Darwin
RID: osx.10.13-x64
Base Path: /usr/local/share/dotnet/sdk/2.2.101/
Host (useful for support):
Version: 2.2.0
Commit: 1249f08fed
.NET Core SDKs installed:
2.2.101 [/usr/local/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Code Extensions
The text was updated successfully, but these errors were encountered: