-
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
OmniSharp stopped working after update to 1.19.0 #2996
Comments
Can you please try setting |
In the detailed debug log it seems to be a FAILURE in the MSBuild locator.
|
The same issue. |
@iSazonov FYI. I was able to downgrade using the built-in option in VSCode, right click on extension and "Install another version..." |
I have same issue with OmniSharp 1.19.0 & 1.18.0, I can't run unit test writing by MSTest from IDE. After I downgrade to 1.17.1, it works as before. My VSCode version is 1.32.3. |
Ditto. Had to downgrade to 1.17.1 to get things working again. |
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...) |
Same problem here, had to downgrade to 1.18.0. It seems like the cs files are not being loaded as part of the project. Every time I open a cs file is says
|
This looks very similar to this #3009 (comment) could you please try with the solution explained in that comment? thanks! |
The fix mentioned in #3009 (comment) ( No error logs in the Omnisharp Logs window. |
Me too have to confirm that the fix mentioned in #3009 (comment) ("omnisharp.path": "1.32.19-beta.25") does not solve the problem.
Re-installing the previous version of the "C#" extension (1.18.0) made it working again... |
OmniSharp Logs using extension C# 1.19.0 (original project name has been replaced for anonymity):
|
Thanks a lot for the log! Could you please double check if you have
It should be something like this:
If you navigate to One other thing worth trying out (if Hope this helps. |
Using |
That's great to hear - thanks for taking your time to do this 👍 One word of caution for the future - However, once the next version of the extension is released (let's say, 1.19.1 or 1.20.0, this is not certain yet) it will come with an even newer version of OmniSharp than Therefore my advice is to remove any Hopefully it all makes sense 😇 |
Changing (for me INCLUDING) |
Using "omnisharp.path": "1.32.19-beta.25", and reloading VsCode seems to have worked for me as well, while inspecting the debug log, there are still some
|
these can be ignored for now, that's why they are at debug level only |
I'm a similar (if not the same) issue. Upgrading to the The change to |
if you could post the OmniSharp log from version The build specifically addressed the wildcard issue which affected quite a lot lf people. Therefore I suspect it is something else in your case but we'd need a log to be able to say anything. Thanks. |
This has been resolved with #3009 |
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
Expected Behavior
Actual Behavior
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)
info: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
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"
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: Visual Studio Professional 2017 15.8.28010.2026 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
info: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in 'c:\Users\xxx\Projects\xxx'.
info: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
info: OmniSharp.WorkspaceInitializer
Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
info: OmniSharp.MSBuild.ProjectSystem
No solution files found in 'c:\Users\xxx\Projects\xxx'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\Users\xxx\Projects\xxx\src\Mod1\Mod1.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\Users\xxx\Projects\xxx\src\Mod2\Mod2.csproj'
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in 'c:\Users\xxx\Projects\xxx'.
info: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
info: OmniSharp.MSBuild.ProjectManager
Loading project: c:\Users\xxx\Projects\xxx\src\Mod1\Mod1.csproj
info: OmniSharp.WorkspaceInitializer
Configuration finished.
info: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location 'c:\Users\xxx\Projects\xxx' on host 19060.
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\Users\xxx\Projects\xxx\src\Mod1\Mod1.csproj'.
info: OmniSharp.MSBuild.ProjectManager
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
Thanks
The text was updated successfully, but these errors were encountered: