-
Notifications
You must be signed in to change notification settings - Fork 676
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 #5160
Comments
This error is coming from Roslynator which is en external component you must have installed, not part of this extension, which looks like is broken here. Find the file ~/.omnisharp/omnisharp.json and remove all references to Roslynator from there. |
@filipw Thanks for addressing this! I have not found a Edit: Oh, is this the configuration file for omnisharp? I have one in the project root which looks like this:
Removing all of the entries in Edit 2: I confirmed that the issue only occurs when any of the two Roslynator entries are present:
I tried updating them to the latest version, resulting in this new
But the issue still occurs:
Edit 3: This seems to be the same issue as #5147. I have use global mono set to The final answer on that issue does not seem correct:
If this were a Roslynator issue, it wouldn't show up for me as I am using a fixed version of the analyzers, which I only now updated manually. The analyzers worked before and did not change, so this means something else must have changed - likely Omnisharp, unless it could be a Unity VSCode package change? Edit 4: Managed to trace the issue down to the update of VSCode's C# extension from 1.24.1 to 1.24.2. Rolling back to 1.24.1 fixes the issue, while updating to 1.24.2 reintroduces it. This update is where Omnisharp was updated from 1.38.1 to 1.38.2. |
A lot has changed with O# code analysis since this issue was opened. If you are still having problems, please open a new issue at https://github.com/omnisharp/omnisharp-roslyn/issues |
Issue Description
I'm using VSCode with Unity. Everything had been working properly for a long time, but today getting back to the project Omnisharp is not starting correctly. I believe a recent update to VSCode, Unity's VSCode package, or Omnisharp itself may be the culprit.
I have tried downgrading Unity's VSCode package, doing a clean install of VSCode (including deleting
.vscode
folder), and a clean install of Mono, to no avail.I am grateful for any help in figuring this out!
Steps to Reproduce
Open VSCode
Expected Behavior
Omnisharp starts
Actual Behavior
Omnisharp no starts
Logs
OmniSharp log
C# log
(Empty)
Environment information
VSCode version: 1.66.1
C# Extension: 1.24.3
Mono Information
OmniSharp using global mono :6.12.0Dotnet Information
.NET SDK (reflecting any global.json): Version: 6.0.201 Commit: ef40e6aa06Runtime Environment:
OS Name: Mac OS X
OS Version: 12.1
OS Platform: Darwin
RID: osx.12-x64
Base Path: /usr/local/share/dotnet/sdk/6.0.201/
Host (useful for support):
Version: 6.0.3
Commit: c24d9a9c91
.NET SDKs installed:
5.0.302 [/usr/local/share/dotnet/sdk]
6.0.201 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Code Extensions
The text was updated successfully, but these errors were encountered: