vscode-csharp icon indicating copy to clipboard operation
vscode-csharp copied to clipboard

Omnisharp for new Linux distros supported by dotnet

Open rajkumar42 opened this issue 10 years ago • 13 comments

@DustinCampbell dotnet has added support for couple of new Linux distros (https://www.microsoft.com/net/core) OpenSUSE, Fedora 23, Ubuntu 16. Can you please add support?

rajkumar42 avatar Jun 27 '16 20:06 rajkumar42

Wow, that's news to me. Note that we can only realistically support distros that VS Code supports.

Are you certain that Ubuntu 16 doesn't already work?

DustinCampbell avatar Jun 27 '16 20:06 DustinCampbell

VSCode installs and runs fine on Fedora 23 and Ubuntu 16. Installing the debugger fails at the publish stage, @caslan and @gregg-miskelly looking at fixing them. VSCode compressed zip had to be downloaded and extracted for OpenSuse. I think for the above three we need the right assests in method getOmnisharpAssetName().

For Oracle Linux, which is binary compatible with CentOS, I've sent a pull request https://github.com/OmniSharp/omnisharp-vscode/pull/470

rajkumar42 avatar Jun 27 '16 21:06 rajkumar42

But, does Ubuntu 16 require any work? My expectation is that Ubuntu 16 is the same. Does Ubuntu 16 have a different RID in .NET Core?

DustinCampbell avatar Jun 27 '16 21:06 DustinCampbell

Yep it is a different RID for Ubuntu 16. dotnet cli installers are not the same for Ubuntu 14 & 16, they are not binary compatible.

RID for 14: ubuntu.14.04-x64 RID for 16: ubuntu.16.04-x64

rajkumar42 avatar Jun 27 '16 21:06 rajkumar42

thanks @rajkumar42 -- that's helpful.

DustinCampbell avatar Jun 27 '16 21:06 DustinCampbell

@DustinCampbell you will need three new zip's. Here are the new RIDs -- ubuntu.16.04-x64, fedora.23-x64, opensuse.13.2-x64

gregg-miskelly avatar Jun 27 '16 21:06 gregg-miskelly

Thanks -- will take a look.

DustinCampbell avatar Jun 27 '16 21:06 DustinCampbell

Changes to create new OmniSharp builds that target the new RIDs is here: https://github.com/OmniSharp/omnisharp-roslyn/pull/596. I'm also updating OmniSharp to the .NET Core 1.0 packages.

DustinCampbell avatar Jun 28 '16 19:06 DustinCampbell

OmniSharp release with new distros is ready here: https://github.com/OmniSharp/omnisharp-roslyn/releases/tag/v1.9-beta11. I'll need to update our distro-sniffing OmniSharp download code next.

DustinCampbell avatar Jun 28 '16 20:06 DustinCampbell

Addressed with #500

DustinCampbell avatar Jun 29 '16 21:06 DustinCampbell

@DustinCampbell thanks very much!

I'm running on Fedora 23. Am I right to assume upgrading to Fedora 24 will result in OmniSharp no longer working? If so, is it a fix I could be directed to implement?

Thanks :)

damonmcminn avatar Jun 30 '16 06:06 damonmcminn

It might break. The extension will certainly download the Fedora-targeted OmniSharp. However, OmniSharp is dependent on .NET Core to run, which only supports Fedora 23 at the moment. So, if there are any changes in Fedora 24 that would break .NET Core, it would break OmniSharp. There isn't a simple fix.

DustinCampbell avatar Jun 30 '16 13:06 DustinCampbell

I'll put that unnecessary idea to bed then :)

On Thu, 30 Jun 2016, at 02:33 PM, Dustin Campbell wrote:

It might break. The extension will certainly download the Fedora- targeted OmniSharp. However, OmniSharp is dependent on .NET Core to run, which only supports Fedora 23 at the moment. So, if there are any changes in Fedora 24 that would break .NET Core, it would break OmniSharp. There isn't a simple fix. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub[1], or mute the thread[2].

Links:

  1. https://github.com/OmniSharp/omnisharp-vscode/issues/471#issuecomment-229658924
  2. https://github.com/notifications/unsubscribe/AFKj3MQRBv-FqmiXaoQYT2qM3IswuBYnks5qQ8WNgaJpZM4I_foz

damonmcminn avatar Jun 30 '16 16:06 damonmcminn