Shaun Rowland
Shaun Rowland

Reputation: 411

Getting "Error: Failed to connect to OmniSharp"

I'm trying to get VSCode working with my Unity projects, and every time I select the Project icon (the little fire at the bottom) I get the following error:

Error: Failed to connect to OmniSharp

Is anyone else getting this?

Upvotes: 5

Views: 3436

Answers (4)

NovaDev
NovaDev

Reputation: 2971

I have a completely different answer: it's the runtime that VSCode is using. It doesn't match up with what it thinks it needs. I have to remember that we're still in beta and that things are changing rapidly. I had my dnvm running beta 7, but VSCode (and OmniSharp, by extension) is looking for beta 6, so it was failing. I updated my runtime using this this post as a clue. Now I have VSCode 0.7.0 using the beta 6 runtime. I have no idea how to tell what it's looking for...I just guessed based on when they were both released. HTH

Upvotes: 1

Rakka Rage
Rakka Rage

Reputation: 19399

i get this on windows when my project directory has a space in it

i removed the space and removed the error

i expect it will be fixed soom

Upvotes: 1

tens0r
tens0r

Reputation: 31

You need to download the most recent version of "mono". Open up terminal and pass in brew install mono. Then "Pick a project" and select the ..-csharp.sln file and you should be up and running.

Upvotes: 3

Shaun Rowland
Shaun Rowland

Reputation: 411

Ok, made some progress and gotten a few Unity projects working. It seems that you need some prerequisites installed, a clean up of your Unity project folder, and possibly some hand editing of your .sln and .csproj files.

I posted a (possibly) better answer over on Reddit. Hope that's not breaking stack etiquitte.

http://www.reddit.com/r/Unity3D/comments/34d6gc/visual_studio_for_mac_help_us_vote_for_unity/

Upvotes: 2

Related Questions