Omnisharp stopped working with a Failed to spawn 'dotnet --info' log
See original GitHub issueEnvironment data
dotnet --info
output: “Failed to spawn ‘dotnet --info’”
VS Code version: 1.8.1
C# Extension version: 1.6.2
Steps to reproduce
Starting vs code and change language to c#
Expected behavior
Omnisharp starting up and working
Actual behavior
Omnisharp simply disappeared.
As stated above, I started coding for unity with Omnisharp and vscode last week and everything is fine. However, after the new year break, when I returned this week, Omnisharp just stopped working for no reason. the little fire icon disappears, both c# and omnisharp log is empty, intellisense gone.
I tried to uninstall and reinstall the C# extension from vs code and when the extension tries to download and install omnisharp, it ended up with a “Failed to spawn ‘dotnet --info’” log after downloaded both omnisharp and the .NET Core Debugger. Uninstall vscode and deleting everything under both the extension folder and the appdata folder doesn’t help either. All I got now is an error message in C# log every time I start up vs code and it’s always this “Failed to spawn ‘dotnet --info’”
What should I do to locate the cause of the problem and bring back Omnisharp??
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (6 by maintainers)
Top GitHub Comments
The best answer I can provide is to fully remove the C# extension and reinstall it. However, the problem that you’re describing does not sound like it is related to the C# extension. I have a hard time believing that nothing has changed on your machine. 😄
To uninstall, try the following:
%UserProfile%\.vscode\extensions
and delete allms-vscode.csharp-*
extensions.Now, open Visual Studio Code and reinstall from the Extensions pane.
OMFG!!! I’m such a dumb-ass!! The .sln and project.json files under my project somehow disappeared and I didn’t noticed it!! Sorry for all the trouble @DustinCampbell @gregg-miskelly , I feel so dumb after finding out the cause. Also, Can you guys add a notification or something like “No .sln file found!” for dumb people like me?