Omnisharp OUTPUT: Can't print exception string because Exception.ToString() failed.
See original GitHub issueEnvironment data
dotnet --info
output:
.NET Core SDK: Version: 2.1.500 Commit: b68b931422
OS Name: Windows OS Version: 10.0.17134 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\2.1.500\
Host (useful for support): Version: 2.1.6 Commit: 3f4f8eebd8
.NET Core SDKs installed: 2.1.500 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.1.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download
VS Code version: 1.29.1(user setup) C# Extension version:ms-vscode.csharp-1.17.1
OUTPUT in OmniSharp Log
OmniSharp server started. Path: C:\Users\17396.vscode\extensions\ms-vscode.csharp-1.17.1.omnisharp\1.32.8\OmniSharp.exe PID: 10072
Error: Can’t print exception string because Exception.ToString() failed. [ERROR] Error: OmniSharp server load timed out. Use the ‘omnisharp.projectLoadTimeout’ setting to override the default delay (one minute).
Path in environment variables
C:\Windows\System32 C:\Program Files\dotnet C:\Windows\Microsoft.NET\Framework64\v4.0.30319
others are unrelated
Description
I have reinstall extension and .net core sdk for many times but not works. It also says .net cli tools can’t be located, but I can actually use debugger and run my console app. dotnet commands also works in cmd.
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (3 by maintainers)
Top GitHub Comments
@Weaverzhu can you run the
set
command from the command prompt inside VS Code? Also, you might need to increase your project load timeout (“omnisharp.projectLoadTimeout” option).I also have this situation, when switching git branch, restart vscode will solve