Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 691
Shaun Rowland Avatar asked Apr 30 '15 04:04

Shaun Rowland


People also ask

How do I fix Omnisharp server is not running?

Click f1 key or ctrl+shift+p to open the textbox to enter your command. Then type omnisharp server, and select the option 'Restart omnisharp server'. You can look at its status in the bottom left corner of the window, and if you click on it, the process's status will on be displayed on the terminal.

What is Omnisharp server?

OmniSharp is a set of tooling, editor integrations and libraries that together create an ecosystem that allows you to have a great programming experience no matter what your editor and operating system of choice may be.

How do I set Omnisharp global mono?

" In the extensions panel; select the C# extension, click on the cog icon, and then select 'Extension Settings'. This will open up an new window and you want to scroll down the list until you find “Omnisharp: Use Global Mono”. Then, change the dropdown to “always” and click on Restart Omnisharp from the popup window."


1 Answers

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.

like image 97
tens0r Avatar answered Nov 29 '22 17:11

tens0r