Giter VIP home page Giter VIP logo

Comments (17)

ChristianoKiss avatar ChristianoKiss commented on June 18, 2024 34

I had this problem using Windows 10 and solved it by adding "C:\Windows\System32" in the PATH variable.

from vscode-csharp.

BedmanGit avatar BedmanGit commented on June 18, 2024 4

Add path to environment works
http://reddyinfosoft.blogspot.com/2017/07/cannot-start-omnisharp-error-error.html

from vscode-csharp.

DustinCampbell avatar DustinCampbell commented on June 18, 2024 2

@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.

sorab2142 avatar sorab2142 commented on June 18, 2024 2

@ChristianoKiss thank you that worked.

from vscode-csharp.

sorab2142 avatar sorab2142 commented on June 18, 2024 1

@DustinCampbell yes this problem still persists. Is there something I could do to help find out why this is happening?

from vscode-csharp.

trendoid avatar trendoid commented on June 18, 2024

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.

trendoid avatar trendoid commented on June 18, 2024

@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.

matthewreily avatar matthewreily commented on June 18, 2024

@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.

DustinCampbell avatar DustinCampbell commented on June 18, 2024

@matthewreily: Could you provide your OmniSharp log output?

from vscode-csharp.

matthewreily avatar matthewreily commented on June 18, 2024

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.

sorab2142 avatar sorab2142 commented on June 18, 2024

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.

DustinCampbell avatar DustinCampbell commented on June 18, 2024

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.

insominx avatar insominx commented on June 18, 2024

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.

Gazenvagin avatar Gazenvagin commented on June 18, 2024

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.

genesis-1 avatar genesis-1 commented on June 18, 2024

thank you so much at @ChristianoKiss

from vscode-csharp.

imsuck avatar imsuck commented on June 18, 2024

thanks, @ChristianoKiss :D

from vscode-csharp.

connormulcahey avatar connormulcahey commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.