vscode-csharp: omnisharp server not found
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-preview2-003131)
Product Information: Version: 1.0.0-preview2-003131 Commit SHA-1 hash: 635cf40e58
Runtime Environment: OS Name: Windows OS Version: 10.0.14393 OS Platform: Windows RID: win10-x64
VS Code version: 1.7.1 C# Extension version: 1.5.1
Steps to reproduce
starting vsCode
Expected behavior
server started.
Actual behavior
OmniSharp server started Path: C:\Users\julio.vscode\extensions\ms-vscode.csharp-1.5.1\bin\omnisharp\OmniSharp.exe PID: 6572
The system can not find the path specified.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 4
- Comments: 26 (14 by maintainers)
I solved the problem! Inside vsCode I needed to go to my settings. ctrl+shift+p > and then type user settings. This brought up settings.json
Inside the json the path looked like this:
“omnisharp.path”: “C:\Users\Drew\.vscode\extensions\ms-vscode.csharp-1.10.0\bin\omnisharp\OmniSharp.exe”,
I changed it to this:
“omnisharp.path”: “C:\\Users\\Drew\\.vscode\\extensions\\ms-vscode.csharp-1.10.0\\bin\\omnisharp\\OmniSharp.exe”,
The \ were not being escaped and causing an error in the json. Also note that capitilization is important.
the output is
Updating C# dependencies… Platform: win32, 64 bits
Finished