question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Omnisharp not showing up despite reinstall of everything

See original GitHub issue

Everything 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:open
  • Created 5 years ago
  • Reactions:9
  • Comments:27 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
stamminatorcommented, Jun 29, 2018

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.

2reactions
akshita31commented, Sep 10, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Workaround for Omnisharp not downloading in VS Code issue
Open the download. · From the Omnisharp log under VS Code's output window you can pick up the file it tries to download...
Read more >
The Real Ultimate Guide to Fixing OmniSharp in VS Code | Blog
There are times when OmniSharp does not start up at all, in which case you can run a command to restart it. In...
Read more >
Intellisense no longer works - Stack Overflow
The Omnisharp log is either empty or completely missing (not sure why this behaviour is not always the same).
Read more >
Visual Studio Code - ArchWiki
Warning: Though Microsoft has not directly commented on this issue, ... NET (using the OmniSharp extension) then you need to install the ...
Read more >
OmniSharp Server not running & IntelliSense is also not working
I have a laptop with VS Code and .NET 5.0 on it, same as I have on my main PC. I compared the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found