Skip to content

[ERROR] Error: spawn cmd ENOENT #4388

@CepheidVariable

Description

@CepheidVariable

Issue Description

No Intellisense features present
[ERROR] Error: spawn cmd ENOENT in the OmniSharp output log

I've tried adding "C:\Windows\System32" to environment path, but then I get an error in VSCode that OmniSharp needs .NET framework 4.7.2.

I tried adding "C:\Program Files\dotnet\sdk" to my path so OmniSharp would see my path to the .NET framework, but it has no effect.

Steps to Reproduce

open any C# project folder within VSCode from the File > Open Folder option.

Expected Behavior

Intellisense features present with no errors in output.

Actual Behavior

Intellisense features missing, error in output.

Logs

OmniSharp log

Starting OmniSharp server at 2/8/2021, 3:15:15 PM Target: d:\Users\Cepheid Variable\Documents\c_sharp\test

[ERROR] Error: spawn cmd ENOENT

C# log

dotnet --info .NET Core SDK (reflecting any global.json): Version: 3.1.302 Commit: 41faccf259

Runtime Environment:
OS Name: Windows
OS Version: 6.2.9200
OS Platform: Windows
RID: win8-x64
Base Path: C:\Program Files\dotnet\sdk\3.1.302\

Host (useful for support):
Version: 3.1.6
Commit: 3acd9b0cd1

.NET Core SDKs installed:
3.1.302 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

Environment information

VSCode version: 1.53.0
C# Extension: 1.23.9

Dotnet Information .NET Core SDK (reflecting any global.json): Version: 3.1.302 Commit: 41faccf259

Runtime Environment:
OS Name: Windows
OS Version: 6.2.9200
OS Platform: Windows
RID: win8-x64
Base Path: C:\Program Files\dotnet\sdk\3.1.302\

Host (useful for support):
Version: 3.1.6
Commit: 3acd9b0cd1

.NET Core SDKs installed:
3.1.302 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

Visual Studio Code Extensions
Extension Author Version
code-runner formulahendry 0.11.2
csharp ms-dotnettools 1.23.9
indent-rainbow oderwat 7.5.0
jupyter ms-toolsai 2020.12.414227025
material-icon-theme PKief 4.5.0
path-intellisense christian-kohler 2.3.0
powershell ms-vscode 2020.6.0
python ms-python 2021.1.502429796
rainbow-brackets 2gua 0.0.6
rainbow-csv mechatroner 1.8.1
vscode-color anseki 0.4.5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions