-
Notifications
You must be signed in to change notification settings - Fork 679
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
C# Extension is entirely unresponsive #3673
Comments
@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 In Log (Shared) :
OmniSharp log:``` Starting OmniSharp server at 3/17/2020, 8:53:08 PM Target: /Users/tsubasa_kondo/git/wemori/wemori-client/wemori-client.slnOmniSharp server started with Mono 6.8.0. Starting OmniSharp on MacOS 10.14.6 (x64)
|
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:
|
It's not Unity. |
@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? |
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 #3664 (comment) |
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. |
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 ! |
@MartinHaeusler The above prerelease resolves this, but for future reference, I did exactly as per kristoff3r's comment:
|
|
v1.21.15 is work but Unity Debug still got problem, the breakpoint can't hit :( |
Just adding another confirm that both |
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. |
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! |
August 2021 - installing version 1.21.15 help me see the outline of the code of an asp.net project in VS Code |
Issue Description
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.
Logs
exthost-c2991c.cpuprofile.txt
ms-dotnettools.csharp-unresponsive.cpuprofile.txt
OmniSharp log
OmniSharp Log
Starting OmniSharp server at 16.3.2020, 20:07:45
Target: d:\git\HoBC\Unity\HoBC\HoBC.sln
OmniSharp server started.
Path: C:\Users\Martin.vscode\extensions\ms-dotnettools.csharp-1.21.14.omnisharp\1.34.14\OmniSharp.exe
PID: 4360
Starting OmniSharp on Windows 6.2.9200.0 (x64)
info: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
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"
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: Visual Studio Build Tools 2019 16.5.29911.84 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"
info: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in 'd:\git\HoBC\Unity\HoBC'.
info: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
info: OmniSharp.MSBuild.ProjectSystem
Detecting projects in 'd:\git\HoBC\Unity\HoBC\HoBC.sln'.
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp-firstpass.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp-Editor.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp-Editor-firstpass.csproj'
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in 'd:\git\HoBC\Unity\HoBC'.
info: OmniSharp.MSBuild.ProjectManager
Loading project: d:\git\HoBC\Unity\HoBC\Assembly-CSharp-firstpass.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 'd:\git\HoBC\Unity\HoBC' on host 14832.
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp-firstpass.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp-firstpass.csproj'
info: OmniSharp.MSBuild.ProjectManager
Loading project: d:\git\HoBC\Unity\HoBC\Assembly-CSharp.csproj
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp.csproj'
info: OmniSharp.MSBuild.ProjectManager
Loading project: d:\git\HoBC\Unity\HoBC\Assembly-CSharp-Editor.csproj
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp-Editor.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp-Editor.csproj'
info: OmniSharp.MSBuild.ProjectManager
Loading project: d:\git\HoBC\Unity\HoBC\Assembly-CSharp-Editor-firstpass.csproj
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp-Editor-firstpass.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project 'd:\git\HoBC\Unity\HoBC\Assembly-CSharp-Editor-firstpass.csproj'
info: OmniSharp.MSBuild.ProjectManager
Update project: Assembly-CSharp-firstpass
info: OmniSharp.MSBuild.ProjectManager
Update project: Assembly-CSharp
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly 'd:\git\HoBC\Unity\HoBC\Temp\bin\Debug\Assembly-CSharp-firstpass.dll'
info: OmniSharp.MSBuild.ProjectManager
Update project: Assembly-CSharp-Editor
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly 'd:\git\HoBC\Unity\HoBC\Temp\bin\Debug\Assembly-CSharp-Editor-firstpass.dll'
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly 'd:\git\HoBC\Unity\HoBC\Temp\bin\Debug\Assembly-CSharp-firstpass.dll'
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly 'd:\git\HoBC\Unity\HoBC\Temp\bin\Debug\Assembly-CSharp.dll'
info: OmniSharp.MSBuild.ProjectManager
Update project: Assembly-CSharp-Editor-firstpass
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly 'd:\git\HoBC\Unity\HoBC\Temp\bin\Debug\Assembly-CSharp-firstpass.dll'
C# log
Nothing to paste here; the log is empty.
Environment information
VSCode version: 1.43.0
C# Extension: 1.21.14
Dotnet Information
.NET Core SDK (gem�� "global.json"): Version: 3.1.200 Commit: c5123d973bLaufzeitumgebung:
OS Name: Windows
OS Version: 10.0.18362
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\3.1.200\
Host (useful for support):
Version: 3.1.2
Commit: 916b5cba26
.NET Core SDKs installed:
2.1.101 [C:\Program Files\dotnet\sdk]
2.1.602 [C:\Program Files\dotnet\sdk]
2.2.202 [C:\Program Files\dotnet\sdk]
3.1.200 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.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: