Omnisharp-vscode: Error occured in loading omnisharp from omnisharp.path Could not start the server due to Error: The system could not find the specified path

Created on 27 Mar 2019  ·  16Comments  ·  Source: OmniSharp/omnisharp-vscode

PS D:\work\netcorework> dotnet --info
.NET Core SDK(反映任何 global.json):
Version: 2.2.103
Commit: 8edbc2570a

运行时环境:
OS Name: Windows
OS Version: 10.0.17134
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.2.103\

Host (useful for support):
Version: 2.2.1
Commit: 878dd11e62

.NET Core SDKs installed:
2.2.103 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

omnisharp 1.18.0

Most helpful comment

@nczsl Same issue, In my case because I was setted Omnisharp.Path="absolute path" in vscode.
The problem was fixed after remove it.
VSCode->File->Preferences->Settings, Or press [Ctrl + ,] open settings panel,
search omnisharp.path, click [Edit in settings.json] edit json directly, remove "Omnisharp.Path":"xxx" if it exists. Or correct it.

All 16 comments

when i installed other version (1.17.1) then this issues is nothing

@nczsl Can you share your "C#" log?

omnisharp log only show:
Error occured in loading omnisharp from omnisharp.path
Could not start the server due to Error: The system could not find the specified path
when vscode start time, or use omnisharp command in command board

@nczsl C# log please:
image

that is empty, not exist any info

@nczsl Could you try uninstalling and then reinstalling the extension. When you reinstall you should see a C# log

that's no different, uninstall and install omnisharp C# log still no info

@nczsl Does the .omnisharp folder exists in your .vscode/extensions/ms-vscode.csharp folder?

Could you try setting "omnisharp.path": "latest" and restarting vscode ?

新建位图图像 (5)

新建位图图像 (6)

@nczsl Same issue, In my case because I was setted Omnisharp.Path="absolute path" in vscode.
The problem was fixed after remove it.
VSCode->File->Preferences->Settings, Or press [Ctrl + ,] open settings panel,
search omnisharp.path, click [Edit in settings.json] edit json directly, remove "Omnisharp.Path":"xxx" if it exists. Or correct it.

@nczsl Same issue, In my case because I was setted Omnisharp.Path="absolute path" in vscode.
The problem was fixed after remove it.
VSCode->File->Preferences->Settings, Or press [Ctrl + ,] open settings panel,
search omnisharp.path, click [Edit in settings.json] edit json directly, remove "Omnisharp.Path":"xxx" if it exists. Or correct it.

image
image

and restart vscode, then .. no use

hello can someone help me please im having this same issue

hello can someone help me please im having this same issue

I don't know how to solve this problem. Later, I didn't care about it, I didn't use vscode for C# development, and I didn't care about this problem ,because i use vs 2019. Now I've reinstalled the system for many times.I don't know if this problem still exists in my vscode, As a digression, I use vscode to do typescript, which is really great, very good :)

well i fixed my issue by going to extensions and actually enabling the c# extension and then boom everything started working lol

I spent a lot of time trying to solve this problem, and the solution for me turned out to be simple - revert _C#_ latest update:

  1. Open "Extensions" (_Ctrl+Shift+X_);
  2. Click on "gear" icon for the "_C#_" extension;
  3. Select "_Install Another Version..._"
  4. Select previous version ("_1.23.2_" - works for me)
    3
Was this page helpful?
0 / 5 - 0 ratings

Related issues

gregg-miskelly picture gregg-miskelly  ·  3Comments

tstivers1990 picture tstivers1990  ·  3Comments

ghost picture ghost  ·  3Comments

visten picture visten  ·  4Comments

slevengood picture slevengood  ·  3Comments