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)
- Support switching target frameworks
- Indentation doesn't seem to take the braces into account HOT 2
- Brace completion doesn't take existing end brace into account
- Parameter help doesn't work inside of lamdas
- Reordering classes, methods and so on using Outline window
- C# Dev Kit LSP "'end' must not be less than 'start'"
- Option to disable implicitly adding `using` directives HOT 4
- C# code analysis fails to initialize with error `System.ArgumentException: filePath` HOT 1
- Request codeLens/resolve failed in git diff HOT 2
- Auto doc comment generation and other formatOnType features broken HOT 9
- Request textDocument/foo failed HOT 10
- Creating a new class under a folder in Solution Explorer does not give the class correct namespace HOT 2
- Iteration Plan for June 2024
- Please default to P2P reference HOT 1
- Standardize UI Navigation with `workbench.action.navigate` HOT 1
- test HOT 1
- If your .NET version is too old, you get no intellisense and an unhelpful error. HOT 1
- Project system ran into an unexcepted error HOT 1
- Various missing features in RazorPages in 2.31.19 HOT 1
- LSP server fails to initialize with: "Failed to find all versions of .NET Core MSBuild. Call to hostfxr_resolve_sdk2." 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.