Skip to content
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

Failed to start OmniSharp #655

Closed
jrieken opened this issue Aug 12, 2016 · 7 comments
Closed

Failed to start OmniSharp #655

jrieken opened this issue Aug 12, 2016 · 7 comments
Assignees
Milestone

Comments

@jrieken
Copy link
Contributor

jrieken commented Aug 12, 2016

From @mm75 on August 11, 2016 18:26

  • VSCode Version: Code 1.4.0 (6276dcb0ae497766056b4c09ea75be1d76a8b679, 2016-08-04T16:49:32.489Z)
  • OS Version: Linux x64 4.2.0-42-generic

[INFO] Starting OmniSharp at '/home/jhondoe/www/hwapp'...
[INFO] Started OmniSharp from '/home/jhondoe/.vscode/extensions/ms-vscode.csharp-1.3.0/out/.omnisharp-coreclr/OmniSharp' with process id 15200...
Failed to initialize CoreCLR, HRESULT: 0x80131500
[ERROR] Error: Failed to start OmniSharp

Copied from original issue: microsoft/vscode#10442

@DustinCampbell
Copy link
Member

@mm75: what Linux distro are you running?

@mm75
Copy link

mm75 commented Aug 15, 2016

@DustinCampbell
Plataform: Ubuntu 15.10 wily
Desktop: Mate

@DustinCampbell
Copy link
Member

Ubuntu 15.10? OmniSharp should only install and run on 14 or 16. I'll install that distro and see why (https://github.com/OmniSharp/omnisharp-vscode/blob/master/src/platform.ts#L61-L69) is allowing 15.10.

@DustinCampbell DustinCampbell self-assigned this Aug 24, 2016
@DustinCampbell
Copy link
Member

Now that I step through the code, I see why it isn't working. It's a rookie mistake: case fall through. 😄 Since, the "ubuntu" case only checks for versions 14 or 16, version 15 is unhandled. However, there's no break statement, so it just falls through to the "centos" case.

Unfortunately, Ubuntu 15.10 is not a supported Linux distro today. You can get things working with the Mono version of OmniSharp by using the following steps though:

  1. Install Mono
  2. Download and untar the mono flavor of OmniSharp here.
  3. In Visual Studio Code, select Preferences -> User Settings.
  4. In settings.json, add the following:
"csharp.omnisharp": "/path/to/the/OmniSharp/executable/you/just/untarred",
"csharp.omnisharpUsesMono": true

Note: In the next release of the C# Extension, we're changing these values to:

"omnisharp.path": "/path/to/the/OmniSharp/executable/you/just/untarred",
"omnisharp.usesMono": true

@DustinCampbell DustinCampbell added this to the 1.4 milestone Aug 25, 2016
@DustinCampbell
Copy link
Member

Note: We intend to make the process of acquiring the mono version of OmniSharp easier on any Linux distro. #593

@mm75
Copy link

mm75 commented Aug 25, 2016

Thank you for your attention!!!

I will follow your suggestions

2016-08-25 12:18 GMT-03:00 Dustin Campbell notifications@github.com:

Note: We intend to make the process of acquiring the mono version of
OmniSharp easier on any Linux distro. #593
#593


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#655 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOGv3pWL8BGmhYgEdSq8Dhxn5BYsVtbfks5qjbJNgaJpZM4Ji2FV
.

@DustinCampbell
Copy link
Member

Excellent! Let me know how it goes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants