Omnisharp not showing up despite reinstall of everything
See original GitHub issueEverything has been working great for several weeks, all of a sudden it doesn’t report errors anymore and Intellisense seems to only suggest hits from inside the current file.
Environment data
dotnet --info
output:
.NET Core SDK (reflecting any global.json): Version: 2.1.301 Commit: 59524873d6
Runtime Environment: OS Name: Mac OS X OS Version: 10.13 OS Platform: Darwin RID: osx.10.13-x64 Base Path: /usr/local/share/dotnet/sdk/2.1.301/
Host (useful for support): Version: 2.1.1 Commit: 6985b9f684
.NET Core SDKs installed: 2.1.301 [/usr/local/share/dotnet/sdk]
.NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.1.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download
VS Code version: 1.24.1 C# Extension version: 1.15.2
Steps to reproduce
I reinstalled the C#-extension several times and it seems to succeed:
Installing C# dependencies… Platform: darwin, x86_64
Downloading package ‘OmniSharp for OSX’ (25614 KB)… Done! Installing package ‘OmniSharp for OSX’
Downloading package ‘.NET Core Debugger (macOS / x64)’ (45653 KB)… Done! Installing package ‘.NET Core Debugger (macOS / x64)’
Finished
I also installed dotnet CLI-tools, which I don’t think I had before, I think I just added the setting to ignore it. I also installed MonoFramework-MDK-5.10.1.47.
Expected behavior
The flame icon should show up in the status bar, and errors showing up/intellisense working.
Actual behavior
Omnisharp doesn’t seem to load.
I’m not sure if it autoupdated or something, cause it just stopped working from one day to another. If it did, can you disable autoupdates to prevent this from happening again?
Thankful for any tips!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:9
- Comments:27 (7 by maintainers)
Top GitHub Comments
Same issue for me. I launched a new VS Code window, created a new file, pasted some C# code into it, set the language to C#, and tried to format it. No “Format” option in the context menu, and selecting “Format Document” from the command palette produces the follow error:
There is no document formatter for 'csharp'-files installed.
Please label this as a bug.
The latest version of the C# extension - 1.16.0 is out. We have added the support to edit csharp files without the projects. Please let us know if that resolves the problem.