Comments (17)
I had this problem using Windows 10 and solved it by adding "C:\Windows\System32" in the PATH variable.
from vscode-csharp.
Add path to environment works
http://reddyinfosoft.blogspot.com/2017/07/cannot-start-omnisharp-error-error.html
from vscode-csharp.
@sorab2142, @Trenoid: Are either of you still experiencing this problem with the C# Extension for VS Code? This issue is pretty stale, so I'm going to go ahead and close it, but please let me know if you're still experiencing this problem.
from vscode-csharp.
@ChristianoKiss thank you that worked.
from vscode-csharp.
@DustinCampbell yes this problem still persists. Is there something I could do to help find out why this is happening?
from vscode-csharp.
I have the same error when I open a C# file. I'm not using Unity3d, it's just my web application.
from vscode-csharp.
@sorab2142 I'm not seeing this since I have upgraded to the latest VS Code and .NET Core. I also updated the C# extension in VS Code. I'm on Windows 10. My version of the C# extension is 1.3.0, VS Code 1.3.1 and .NET 1.0.0-preview2-003121
I don't know if that will help you but I'm not seeing this anymore.
from vscode-csharp.
@trendoid I'm seeing the issue on my machine using Windows 10, C# extension 1.3.0 and vs code 1.3.1 and .NET 1.0.0-preview2-003121. Is there any other information I can send that would be helpful in resolving this?
from vscode-csharp.
@matthewreily: Could you provide your OmniSharp log output?
from vscode-csharp.
I would love to, unfortunately I nuked my machine and reinstalled everything from the OS up. I had a tight deadline with a presentation I was doing on cross platform dev and .net core. I'll see if I can't recreate in my new environment and send the log if so. Thank you so much for following up!
from vscode-csharp.
The only thing i see in the vs code panel for Omnisharp Log is that one line (Cannot Start Omnisharp [ERROR] Error: spawn cmd ENOENT), is there some file that has more info?
from vscode-csharp.
I suspect that this may be addressed with the latest version of the extension (1.5.2). We've recently made a lot of changes under the hood to how OmniSharp is packaged and runs that should fix these issues. Please let me know if you run into these problems on the new release.
from vscode-csharp.
Having this problem 1 year later and the path solution worked... Seems strange that it wasn't already in the path. I recall that normally being there.
from vscode-csharp.
Hi,
Starting OmniSharp server at 2018-2-11 11:48:38
Target: c:\inWORK\UNITY Projects\Visockiy\Visockiy.sln
[ERROR] Error: spawn cmd ENOENT
VSC ver. 1.20.00 x64
ext: Unity Debugger, OmiSharp
Unity 2017.3.1f3
from vscode-csharp.
thank you so much at @ChristianoKiss
from vscode-csharp.
thanks, @ChristianoKiss :D
from vscode-csharp.
On Linux adding ~/.vscode/extensions to my path fixed it.
e.g. in your .bashrc
export PATH=$HOME/.vscode/extensions:$PATH
from vscode-csharp.
Related Issues (20)
- Provisional Completion in Razor should show full tooltip info
- [macOS 11 x64] Cannot compile or debug with VSCode for C# Program HOT 5
- getting error running/debugging dotnet application HOT 1
- False positive syntax errors for WPF HOT 4
- Blazor broken in newer versions (above v2.30.28) HOT 1
- Couldn't find .NET SDK HOT 4
- Cannot format .cshtml files (Razor logs an error) HOT 1
- Not all refactoring options available until C# Dev Kit disabled HOT 1
- C# DevKit suggests refactorings that break build/don't compile HOT 2
- Razor+C# Completion issues on particular Maui repo
- Error when Building C# Extension in VS Code on Windows with Node v20.14 HOT 2
- Language Server stops working HOT 6
- Accepting override method suggestion starting with "_" deletes part of method name HOT 1
- C# LSP failing suddenly on diagnostics HOT 4
- Combination of Omnisharp & MVC with Razor files, renders the extension unusable HOT 2
- System.CommandLine Not Found & Causes LSP Server to Crash HOT 4
- Unity asmdefs (assemblies) don't include method documentation in metadata HOT 6
- Identify and localize remaining display strings
- Ability to install the extension in https://vscode.dev HOT 1
- C# request textdocument/inlayhint failed. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-csharp.