vscode-csharp: OmniSharp stopped working after update to 1.19.0
Issue Description
After installing V1.19.0 of the C# extension, Omnisharp has stopped working in all my workspaces.
When looking at the Omnisharp log there are no visible errors, but it always seem to get stuck after the first Adding project ..../.../Project.csproj
, no timeout or anything else comes after some time waiting.
I checked my .Net runtime version and it’s 4.7.2 (461814)
Steps to Reproduce
- Update 1.19.0 of the C# Extension was automatically installed by VSCode.
Expected Behavior
- Omnisharp and intellisense should keep working normally.
Actual Behavior
- Omnisharp does not load anymore.
Logs
OmniSharp log
OmniSharp server started. Path: C:\Users\xxx.vscode\extensions\ms-vscode.csharp-1.19.0.omnisharp\1.32.18\OmniSharp.exe PID: 8892
Starting OmniSharp on Windows 6.2.9200.0 (x64)
DotNetPath set to dotnet
Located 2 MSBuild instance(s)
1: Visual Studio Professional 2017 15.8.28010.2026 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
2: StandAlone 15.0 - "C:\Users\xxx\.vscode\extensions\ms-vscode.csharp-1.19.0\.omnisharp\1.32.18\.msbuild\Current\Bin"
Registered MSBuild instance: Visual Studio Professional 2017 15.8.28010.2026 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
Detecting Cake files in 'c:\Users\xxx\Projects\xxx'.
Could not find any Cake files
Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
No solution files found in 'c:\Users\xxx\Projects\xxx'
Queue project update for 'c:\Users\xxx\Projects\xxx\src\Mod1\Mod1.csproj'
Queue project update for 'c:\Users\xxx\Projects\xxx\src\Mod2\Mod2.csproj'
Detecting CSX files in 'c:\Users\xxx\Projects\xxx'.
Could not find any CSX files
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
Loading project: c:\Users\xxx\Projects\xxx\src\Mod1\Mod1.csproj
Configuration finished.
Omnisharp server running using Stdio at location 'c:\Users\xxx\Projects\xxx' on host 19060.
Successfully loaded project file 'c:\Users\xxx\Projects\xxx\src\Mod1\Mod1.csproj'.
Adding project 'c:\Users\xxx\Projects\xxx\src\Mod1\Mod1.csproj'
C# log
Environment information
VSCode version: 1.33.1 C# Extension: 1.19.0
Dotnet Information
.NET Core SDK (reflecting any global.json): Version: 2.1.402 Commit: 3599f217f4Runtime Environment: OS Name: Windows OS Version: 10.0.17763 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\2.1.402\
Host (useful for support): Version: 2.1.4 Commit: 85255dde3e
.NET Core SDKs installed: 1.1.4 [C:\Program Files\dotnet\sdk] 2.1.302 [C:\Program Files\dotnet\sdk] 2.1.402 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 1.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 1.1.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download
Visual Studio Code Extensions
Extension | Author | Version |
---|---|---|
beautify | HookyQR | 1.4.11 |
code-settings-sync | Shan | 3.2.8 |
csharp | ms-vscode | 1.19.0 |
EditorConfig | EditorConfig | 0.13.0 |
gitlens | eamodio | 9.6.1 |
markdown-pdf | yzane | 1.2.0 |
material-icon-theme | PKief | 3.7.0 |
Material-theme | zhuangtongfa | 2.21.0 |
mssql | ms-mssql | 1.5.0 |
project-manager | alefragnani | 10.5.1 |
python | ms-python | 2019.3.6558 |
theme-dracula | dracula-theme | 2.17.0 |
vim | vscodevim | 1.4.0 |
vsc-material-facebook-theme | rmarganti | 1.1.0 |
vsc-material-theme | Equinusocio | 2.8.2 |
vscode-nuget-package-manager | jmrog | 1.1.6 |
vsliveshare | ms-vsliveshare | 1.0.45 |
Thanks
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 13
- Comments: 21 (7 by maintainers)
@iSazonov FYI. I was able to downgrade using the built-in option in VSCode, right click on extension and “Install another version…”
Exact same problem with ms-vscode.csharp 1.19.0 on Windows 10 .NET 4.7.2 (46184).
(Only a downgrade to 1.18 works…)
Changing (for me INCLUDING)
"omnisharp.path": "1.32.19-beta.25"
in settings.json, solved problem. Thank you @filipwUsing
"omnisharp.path": "1.32.19-beta.25"
, reloading Omnisharp, reloading window and waiting a bit seems to have done the trick. No global Mono required.Thanks a lot for the log!
Could you please double check if you have
"omnisharp.path": "1.32.19-beta.25"
set in the VS Code settings (and after that restart VS Code)? What I can see in your log is that the version 1.32.18 (which is bundled with extension 1.19.0) gets started instead (notice the path to omnisharp in the folder name).It should be something like this:
If you navigate to
/Users/{username}/.vscode/extensions/ms-vscode.csharp-1.19.0/.omnisharp
you should see all OmniSharp version that you have available locally.One other thing worth trying out (if
1.32.19-beta.25
still doesn’t help you) is to install global Mono from here https://www.mono-project.com/download/stable/ (the latest stable is 5.20.1). OmniSharp will prefer to use global Mono over the one that is bundled with OmniSharp and that often helps with some more complicated project setups.Hope this helps.
This looks very similar to this https://github.com/OmniSharp/omnisharp-vscode/issues/3009#issuecomment-484772057 could you please try with the solution explained in that comment? thanks!
I’m a similar (if not the same) issue. Upgrading to the
1.32.19-rc25
build of Omnisharp didn’t fix it for me. Instead, I installed the1.19.0
version ofomnisharp-vscode
from the Marketplace, and downgradedomnisharp.path
to1.32.11
, which I believe is the version ofomnisharp-roslyn
baked into1.18.0
ofomnisharp-vscode
.The change to
omnisharp.path
is the only setting I’ve changed from the default, latest install.