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.

Keeps downloading Omnisharp

See original GitHub issue

Environment data

dotnet --info output:

.NET Core SDK (reflecting any global.json): Version: 3.1.101 Commit: b377529961

Runtime Environment: OS Name: ubuntu OS Version: 18.04 OS Platform: Linux RID: ubuntu.18.04-x64 Base Path: /usr/share/dotnet/sdk/3.1.101/

Host (useful for support): Version: 3.1.1 Commit: a1388f194c

.NET Core SDKs installed: 2.1.300-rc1-008673 [/usr/share/dotnet/sdk] 2.1.804 [/usr/share/dotnet/sdk] 3.1.101 [/usr/share/dotnet/sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.0-rc1-final [/usr/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.16 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.0-rc1-final [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.16 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.1.0-rc1 [/usr/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.16 [/usr/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

VS Code version: 1.46.1 C# Extension version: v1.22.1

OmniSharp log

Steps to reproduce

  • (re)Start VSC
  • Open a .cs file

Expected behavior

  • allowing me to edit/run/debug with all features enabled.

Actual behavior

  • It starts download omnisharp/debugger etc.

This issue has been reported here before but the ‘fixes’ there did not help. I’m not behind a proxy (I am reporting this on another connection than my home connection for instance and it happens here too) and it happens on win/lin/mac (all the same VSC version and dotnet runtime; I develop on all 3).

My connection is fast enough so it’s not a real bother, but it seems a bug as it definitely did download before and it works fine once downloaded, so why does it download again?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
filipwcommented, Jun 21, 2020

This is by design. 1.35.4-beta.18 in your log suggests that you have opted into beta builds of OmniSharp by setting "omnisharp.path": "latest" in your VS Code settings. There is a new prerelease build on every merge to master, which can be multiple times a day (not to mention it is highly likely that these CI builds are unstable, as by definition they are not always ready for the release, so your experience can be very poor).

It is not recommended to use this setting for longer than a short while (e.g. to verify a specific bug fix). Please remove that setting to prevent OmniSharp beta builds to be constantly downloaded.

1reaction
nGolinecommented, Jun 22, 2020

Thank you @filipw, it worked despite the fact that I don’t remember setting this before. But indeed I was using "omnisharp.path": "latest". Nonetheless, it’s confusing that “latest” subscribes to beta channels. IMO it should have another flag for this.

It also bothers me that the extension tries to download it several times if I open another instance while it’s still downloading. It should have a lock file to instruct new instances that a download is in place.

Read more comments on GitHub >

github_iconTop Results From Across the Web

My vs code installation keeps downloading omnisharp for ...
VS code keeps on dowloading this C# dependency very often , again and again. problem is i never use C# and idk where...
Read more >
VS Code can't find Mono for OmniSharp - Stack Overflow
The most common solution is to make sure Mono is fully updated on your machine (https://mono-project.com/download/) and that you are running the ...
Read more >
Getting Started – COGS 300 - UBC Blogs
"omnisharp.path": "latest",. Windows tips: Download the .NET framework 4.7.1 Developer pack here. Restart VS code. Mac tips: VSCode errors where .
Read more >
C# for Visual Studio Code download | SourceForge.net
json and csproj projects on Windows, macOS and Linux. .NET Framework builds of OmniSharp no longer ship with Mono or the MSBuild tooling...
Read more >
Writing C# in Neovim - Aaron Bos
Setting up OmniSharp. Before we think about configuring anything in Neovim we need to download the OmniSharp language server. This particular ...
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