The C# extension suddenly stopped working for me. Syntax highlighting is okay, but everything else loads indefinitely:
All the while, it is consuming 100% CPU resources on one of my cores. I even tried a full fresh install of everything, that didn't help.
ms-dotnettools.csharp-unresponsive.cpuprofile.txt
OmniSharp Log
Starting OmniSharp server at 16.3.2020, 20:07:45
Target: d:gitHoBCUnityHoBCHoBC.sln
OmniSharp server started.
Path: C:UsersMartin.vscodeextensionsms-dotnettools.csharp-1.21.14.omnisharp1.34.14OmniSharp.exe
PID: 4360
Starting OmniSharp on Windows 6.2.9200.0 (x64)
DotNetPath set to dotnet
Located 2 MSBuild instance(s)
1: Visual Studio Build Tools 2019 16.5.29911.84 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"
2: StandAlone 16.4 - "c:\Users\Martin\.vscode\extensions\ms-dotnettools.csharp-1.21.14\.omnisharp\1.34.14\.msbuild\Current\Bin"
Registered MSBuild instance: Visual Studio Build Tools 2019 16.5.29911.84 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"
Detecting Cake files in 'd:\git\HoBC\Unity\HoBC'.
Could not find any Cake files
Detecting projects in 'd:\git\HoBC\Unity\HoBC\HoBC.sln'.
Queue project update for 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp-firstpass.csproj'
Queue project update for 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp.csproj'
Queue project update for 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp-Editor.csproj'
Queue project update for 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp-Editor-firstpass.csproj'
Detecting CSX files in 'd:\git\HoBC\Unity\HoBC'.
Loading project: d:\git\HoBC\Unity\HoBC\Assembly-CSharp-firstpass.csproj
Could not find any CSX files
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.EditorConfigWorkspaceOptionsProvider, Order: 200
Configuration finished.
Omnisharp server running using Stdio at location 'd:\git\HoBC\Unity\HoBC' on host 14832.
Successfully loaded project file 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp-firstpass.csproj'.
Adding project 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp-firstpass.csproj'
Loading project: d:\git\HoBC\Unity\HoBC\Assembly-CSharp.csproj
Successfully loaded project file 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp.csproj'.
Adding project 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp.csproj'
Loading project: d:\git\HoBC\Unity\HoBC\Assembly-CSharp-Editor.csproj
Successfully loaded project file 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp-Editor.csproj'.
Adding project 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp-Editor.csproj'
Loading project: d:\git\HoBC\Unity\HoBC\Assembly-CSharp-Editor-firstpass.csproj
Successfully loaded project file 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp-Editor-firstpass.csproj'.
Adding project 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp-Editor-firstpass.csproj'
Update project: Assembly-CSharp-firstpass
Update project: Assembly-CSharp
Unable to resolve assembly 'd:\git\HoBC\Unity\HoBC\Temp\bin\Debug\Assembly-CSharp-firstpass.dll'
Update project: Assembly-CSharp-Editor
Unable to resolve assembly 'd:\git\HoBC\Unity\HoBC\Temp\bin\Debug\Assembly-CSharp-Editor-firstpass.dll'
Unable to resolve assembly 'd:\git\HoBC\Unity\HoBC\Temp\bin\Debug\Assembly-CSharp-firstpass.dll'
Unable to resolve assembly 'd:\git\HoBC\Unity\HoBC\Temp\bin\Debug\Assembly-CSharp.dll'
Update project: Assembly-CSharp-Editor-firstpass
Unable to resolve assembly 'd:\git\HoBC\Unity\HoBC\Temp\bin\Debug\Assembly-CSharp-firstpass.dll'
Nothing to paste here; the log is empty.
VSCode version: 1.43.0
C# Extension: 1.21.14
Dotnet Information
.NET Core SDK (gem锟斤拷 "global.json"):
Version: 3.1.200
Commit: c5123d973b
Laufzeitumgebung:
OS Name: Windows
OS Version: 10.0.18362
OS Platform: Windows
RID: win10-x64
Base Path: C:Program Filesdotnetsdk3.1.200
Host (useful for support):
Version: 3.1.2
Commit: 916b5cba26
.NET Core SDKs installed:
2.1.101 [C:Program Filesdotnetsdk]
2.1.602 [C:Program Filesdotnetsdk]
2.2.202 [C:Program Filesdotnetsdk]
3.1.200 [C:Program Filesdotnetsdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.9 [C:Program FilesdotnetsharedMicrosoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.16 [C:Program FilesdotnetsharedMicrosoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.3 [C:Program FilesdotnetsharedMicrosoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.8 [C:Program FilesdotnetsharedMicrosoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.9 [C:Program FilesdotnetsharedMicrosoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.16 [C:Program FilesdotnetsharedMicrosoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.3 [C:Program FilesdotnetsharedMicrosoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.8 [C:Program FilesdotnetsharedMicrosoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.2 [C:Program FilesdotnetsharedMicrosoft.AspNetCore.App]
Microsoft.NETCore.App 2.0.6 [C:Program FilesdotnetsharedMicrosoft.NETCore.App]
Microsoft.NETCore.App 2.1.9 [C:Program FilesdotnetsharedMicrosoft.NETCore.App]
Microsoft.NETCore.App 2.1.16 [C:Program FilesdotnetsharedMicrosoft.NETCore.App]
Microsoft.NETCore.App 2.2.3 [C:Program FilesdotnetsharedMicrosoft.NETCore.App]
Microsoft.NETCore.App 2.2.8 [C:Program FilesdotnetsharedMicrosoft.NETCore.App]
Microsoft.NETCore.App 3.1.2 [C:Program FilesdotnetsharedMicrosoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.2 [C:Program FilesdotnetsharedMicrosoft.WindowsDesktop.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Code Extensions
|Extension|Author|Version|
|---|---|---|
|csharp|ms-dotnettools|1.21.14|
|unity-debug|Unity|2.7.4|
|vscode-eclipse-keybindings|alphabotsec|0.10.0|
|vscode-icons|vscode-icons-team|10.0.0|;
@MartinHaeusler Would it be possible for you to give us access to your project? We've had lots of similar reports but have had trouble getting this issue to reproduce.
@JoeRobich It's a Unity project which is several gigabytes in size - the upload alone would take days with my connection. I can try to extract the code files and strip all art assets, this would bring it down to a more reasonable size, but it should still compile. Would that help?
@MartinHaeusler Please, just the projects and code would be very helpful.
@JoeRobich here's the project, stripped of all art assets. It's still 33MB because it contains the assemblies and DLLs that come with Unity, so I can't upload it directly as a github attachment. Here's a link to my dropbox instead:
https://www.dropbox.com/s/jym9vkxb80ii2zo/HeirOfBlackwoodCastle.zip?dl=0
Reproduction steps of the issue:
Experiencing same issue here.
I managed to work around this issue by rolling back to v1.21.12 as mentioned in #3660 (kristoff3r's comment).
In Log (Shared) :
[sharedprocess] [info]
Problem invoking 'GetCodeActions' on OmniSharp
OmniSharp log:
Starting OmniSharp server at 3/17/2020, 8:53:08 PM
Target: /Users/tsubasa_kondo/git/wemori/wemori-client/wemori-client.sln
OmniSharp server started with Mono 6.8.0.
Path: /Users/tsubasa_kondo/.vscode/extensions/ms-dotnettools.csharp-1.21.14/.omnisharp/1.34.14/omnisharp/OmniSharp.exe
PID: 14245
[info]: OmniSharp.Stdio.Host
Starting OmniSharp on MacOS 10.14.6 (x64)
[info]: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 2 MSBuild instance(s)
1: Mono 16.4 - "/usr/local/Cellar/mono/6.8.0.105/lib/mono/msbuild/Current/bin"
2: StandAlone 16.4 - "/Users/tsubasa_kondo/.vscode/extensions/ms-dotnettools.csharp-1.21.14/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: Mono 16.4 - "/usr/local/Cellar/mono/6.8.0.105/lib/mono/msbuild/Current/bin"
CscToolExe = csc.exe
CscToolPath = /Users/tsubasa_kondo/.vscode/extensions/ms-dotnettools.csharp-1.21.14/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Roslyn
[info]: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in '/Users/tsubasa_kondo/git/wemori/wemori-client'.
[info]: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
Detecting projects in '/Users/tsubasa_kondo/git/wemori/wemori-client/wemori-client.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/tsubasa_kondo/git/wemori/wemori-client/Unity.UIWidgets.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/tsubasa_kondo/git/wemori/wemori-client/UIWidgetsGallery.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/tsubasa_kondo/git/wemori/wemori-client/UIWidgetsSample.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/tsubasa_kondo/git/wemori/wemori-client/Assembly-CSharp.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/tsubasa_kondo/git/wemori/wemori-client/Unity.InternalAPIEngineBridge.024.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/tsubasa_kondo/git/wemori/wemori-client/UIWidgetsTheatre.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/tsubasa_kondo/git/wemori/wemori-client/Unity.UIWidgets.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/tsubasa_kondo/git/wemori/wemori-client/UIWidgetsSample.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/tsubasa_kondo/git/wemori/wemori-client/UIWidgetsGallery.Editor.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in '/Users/tsubasa_kondo/git/wemori/wemori-client'.
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /Users/tsubasa_kondo/git/wemori/wemori-client/Unity.UIWidgets.csproj
[info]: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
[info]: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
[info]: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.EditorConfigWorkspaceOptionsProvider, Order: 200
[info]: OmniSharp.WorkspaceInitializer
Configuration finished.
[info]: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location '/Users/tsubasa_kondo/git/wemori/wemori-client' on host 14209.
[info]: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file '/Users/tsubasa_kondo/git/wemori/wemori-client/Unity.UIWidgets.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
Adding project '/Users/tsubasa_kondo/git/wemori/wemori-client/Unity.UIWidgets.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /Users/tsubasa_kondo/git/wemori/wemori-client/UIWidgetsGallery.csproj
[info]: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file '/Users/tsubasa_kondo/git/wemori/wemori-client/UIWidgetsGallery.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
Adding project '/Users/tsubasa_kondo/git/wemori/wemori-client/UIWidgetsGallery.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /Users/tsubasa_kondo/git/wemori/wemori-client/UIWidgetsSample.csproj
[info]: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file '/Users/tsubasa_kondo/git/wemori/wemori-client/UIWidgetsSample.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
Adding project '/Users/tsubasa_kondo/git/wemori/wemori-client/UIWidgetsSample.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /Users/tsubasa_kondo/git/wemori/wemori-client/Assembly-CSharp.csproj
[info]: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file '/Users/tsubasa_kondo/git/wemori/wemori-client/Assembly-CSharp.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
Adding project '/Users/tsubasa_kondo/git/wemori/wemori-client/Assembly-CSharp.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /Users/tsubasa_kondo/git/wemori/wemori-client/Unity.InternalAPIEngineBridge.024.csproj
[info]: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file '/Users/tsubasa_kondo/git/wemori/wemori-client/Unity.InternalAPIEngineBridge.024.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
Adding project '/Users/tsubasa_kondo/git/wemori/wemori-client/Unity.InternalAPIEngineBridge.024.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /Users/tsubasa_kondo/git/wemori/wemori-client/UIWidgetsTheatre.csproj
[info]: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file '/Users/tsubasa_kondo/git/wemori/wemori-client/UIWidgetsTheatre.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
Adding project '/Users/tsubasa_kondo/git/wemori/wemori-client/UIWidgetsTheatre.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /Users/tsubasa_kondo/git/wemori/wemori-client/Unity.UIWidgets.Editor.csproj
[info]: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file '/Users/tsubasa_kondo/git/wemori/wemori-client/Unity.UIWidgets.Editor.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
Adding project '/Users/tsubasa_kondo/git/wemori/wemori-client/Unity.UIWidgets.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /Users/tsubasa_kondo/git/wemori/wemori-client/UIWidgetsSample.Editor.csproj
[info]: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file '/Users/tsubasa_kondo/git/wemori/wemori-client/UIWidgetsSample.Editor.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
Adding project '/Users/tsubasa_kondo/git/wemori/wemori-client/UIWidgetsSample.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /Users/tsubasa_kondo/git/wemori/wemori-client/UIWidgetsGallery.Editor.csproj
[info]: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file '/Users/tsubasa_kondo/git/wemori/wemori-client/UIWidgetsGallery.Editor.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
Adding project '/Users/tsubasa_kondo/git/wemori/wemori-client/UIWidgetsGallery.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Update project: Unity.UIWidgets
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly '/Users/tsubasa_kondo/git/wemori/wemori-client/Temp/bin/Debug/Unity.InternalAPIEngineBridge.024.dll'
[info]: OmniSharp.MSBuild.ProjectManager
Update project: UIWidgetsGallery
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly '/Users/tsubasa_kondo/git/wemori/wemori-client/Temp/bin/Debug/Unity.UIWidgets.dll'
[info]: OmniSharp.MSBuild.ProjectManager
Update project: UIWidgetsSample
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly '/Users/tsubasa_kondo/git/wemori/wemori-client/Temp/bin/Debug/Unity.UIWidgets.dll'
[info]: OmniSharp.MSBuild.ProjectManager
Update project: Assembly-CSharp
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly '/Users/tsubasa_kondo/git/wemori/wemori-client/Temp/bin/Debug/UIWidgetsGallery.dll'
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly '/Users/tsubasa_kondo/git/wemori/wemori-client/Temp/bin/Debug/UIWidgetsGallery.Editor.dll'
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly '/Users/tsubasa_kondo/git/wemori/wemori-client/Temp/bin/Debug/UIWidgetsSample.dll'
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly '/Users/tsubasa_kondo/git/wemori/wemori-client/Temp/bin/Debug/UIWidgetsSample.Editor.dll'
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly '/Users/tsubasa_kondo/git/wemori/wemori-client/Temp/bin/Debug/UIWidgetsTheatre.dll'
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly '/Users/tsubasa_kondo/git/wemori/wemori-client/Temp/bin/Debug/Unity.InternalAPIEngineBridge.024.dll'
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly '/Users/tsubasa_kondo/git/wemori/wemori-client/Temp/bin/Debug/Unity.UIWidgets.dll'
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly '/Users/tsubasa_kondo/git/wemori/wemori-client/Temp/bin/Debug/Unity.UIWidgets.Editor.dll'
[info]: OmniSharp.MSBuild.ProjectManager
Update project: Unity.InternalAPIEngineBridge.024
[info]: OmniSharp.MSBuild.ProjectManager
Update project: UIWidgetsTheatre
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly '/Users/tsubasa_kondo/git/wemori/wemori-client/Temp/bin/Debug/UIWidgetsGallery.dll'
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly '/Users/tsubasa_kondo/git/wemori/wemori-client/Temp/bin/Debug/UIWidgetsSample.dll'
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly '/Users/tsubasa_kondo/git/wemori/wemori-client/Temp/bin/Debug/Unity.UIWidgets.dll'
[info]: OmniSharp.MSBuild.ProjectManager
Update project: Unity.UIWidgets.Editor
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly '/Users/tsubasa_kondo/git/wemori/wemori-client/Temp/bin/Debug/Unity.UIWidgets.dll'
[info]: OmniSharp.MSBuild.ProjectManager
Update project: UIWidgetsSample.Editor
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly '/Users/tsubasa_kondo/git/wemori/wemori-client/Temp/bin/Debug/UIWidgetsSample.dll'
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly '/Users/tsubasa_kondo/git/wemori/wemori-client/Temp/bin/Debug/Unity.UIWidgets.dll'
[info]: OmniSharp.MSBuild.ProjectManager
Update project: UIWidgetsGallery.Editor
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly '/Users/tsubasa_kondo/git/wemori/wemori-client/Temp/bin/Debug/UIWidgetsGallery.dll'
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly '/Users/tsubasa_kondo/git/wemori/wemori-client/Temp/bin/Debug/Unity.UIWidgets.dll'
[info]: OmniSharp.Roslyn.CSharp.Services.Diagnostics.ReAnalyzeService
Queue analysis for all projects.
[info]: OmniSharp.Roslyn.CSharp.Services.Diagnostics.ReAnalyzeService
Queue analysis for all projects.
I have the same issue. And it is also reproduced in the unity project. I think it may be related to unity
I can say with very high confidence that Unity is not to blame. The project was working fine for me for several months now, and I didn't upgrade Unity itself lately, so the *.sln and *.csproj files are still the same (also according to my git history).
However, the OmniSharp binary updates itself in the VSCode extension. That in and on itself is very nice, however since one of the more recent updates, things stopped working and cause the issue we are all experiencing.
What might be an issue now with the newer versions of OmniSharp is this crazy forest of *.csproj modules that Unity creates. However, it has always done that. So maybe it's just the new OmniSharp version that runs into an infinite loop somewhere when it tries to load/resolve the project dependencies. That's just my intuition, and it's a long shot.
Possible culprits from my perspective are:
I think it may be related to unity
It's not Unity.
I have the same symptoms in an ASP.NET Core project.
@TsubasaK111 did you roll back this plugin or the OmniSharp language server itself? How did you manage to keep it from auto-updating again after rolling it back?
@JoeRobich is it possible that OmniSharp is the real culprit here?
@JoeRobich is it possible that OmniSharp is the real culprit here?
we didn't update OmniSharp when moving from v1.21.12 to v1.21.13 so it doesn't seem like that's the case
A change was made where we search through sub-directories of the project directory looking for a launchsettings.json file. Recent investigations point to this being problematic for projects with many nested directories such as those containing a node_modules folder. see https://github.com/OmniSharp/omnisharp-vscode/issues/3664#issuecomment-600795999
Or a Unity PackageCache as I am discovering.
@JoeRobich mind you, I've deleted a lot of folders from my unity packagecache before uploading, so it's not even representative of a real project. There are entire documentation and example folders in there, the file structure is comparable in size (both breadth and depth) to that of a node_modules folder.
thanks @JoeRobich this really looks like the culprit 馃憤
I also have the issue with a fairly big Unity project, starting at 1.21.13.
Reverting to 1.21.12 using .vsix and disabling automatic updates is the solution right now.
Please try the v1.21.15 prerelease and let us know if it resolves your performance issue.
@JoeRobich using v1.21.15, the unity project issue is fixed.
Seems to be working just fine. Thank you @JoeRobich !
@TsubasaK111 did you roll back this plugin or the OmniSharp language server itself? How did you manage to keep it from auto-updating again after rolling it back?
@MartinHaeusler The above prerelease resolves this, but for future reference, I did exactly as per kristoff3r's comment:
code --install-extension ~/Downloads/csharp-1.21.12.vsix where ~/Downloads/ is the directory wherever you downloaded the file in step 2.v1.21.15 confirmed as functional, thank you for the hard work @JoeRobich ! 鉂わ笍
v1.21.15 is work but Unity Debug still got problem, the breakpoint can't hit :(
Just adding another confirm that both 1.21.15 and 1.21.12 work for my Unity project, while 1.21.14 and 1.21.13 do not.
Running into the same problem, but it does not work on 1.21.15, or 1.21.12. Using Linux Ubuntu 19.10, VS-Code, Unity. Wondering if there's simply no Linux Ubuntu 19.10 support.
I had the same problem on mac. Tried a lot methods, didn't work. Today I deleted .vscode/, .dotnet/, removed vscode, then downloaded a new one, did a fresh install. The CPU problem is gone. I don't know why. I think it's worth a try.
1.21.15 was released to the marketplace so it worked for you on reinstall
Unity Debugger just completely freezes on breakpoints now :(
@laminhtruong @ROBYER1 I see a few open issues about breakpoints on Unity Debugger's GitHub. Maybe you can find one that matches what you are seeing and provide your details. https://github.com/Unity-Technologies/vscode-unity-debug/issues
@MartinHaeusler Thanks for the report. Closing this now that 1.21.15 has been published.
@laminhtruong @ROBYER1 I see a few open issues about breakpoints on Unity Debugger's GitHub. Maybe you can find one that matches what you are seeing and provide your details. https://github.com/Unity-Technologies/vscode-unity-debug/issues
Thankyou for addressing this, the issue is very much project and Unity version agnostic, I have experienced it with Unity 2019.3 and 2020.1 beta on over 5 projects on each as well as a blank project with a very basic test script to debug.
I hope the issue can be addressed as it is simple to reproduce in a fresh Unity project.
@JoeRobich thank you for your efforts. Your help is highly appreciated!
Most helpful comment
Please try the v1.21.15 prerelease and let us know if it resolves your performance issue.