dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.84k stars 663 forks source link

Falha ao iniciar ominisharp.exe #5191

Open ajcolombini opened 2 years ago

ajcolombini commented 2 years ago

Environment data

dotnet --info output: VS Code version: C# Extension version:

OmniSharp log

Steps to reproduce

Expected behavior

Actual behavior

ajcolombini commented 2 years ago

OmniSharp server started. Path: c:\Users\ajcol.vscode\extensions\ms-dotnettools.csharp-1.24.4-win32-x64.omnisharp\1.38.2\OmniSharp.exe PID: 13668

'cmd' n�o � reconhecido como um comando interno ou externo, um programa oper�vel ou um arquivo em lotes. [ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute).

JoeRobich commented 2 years ago

It is very surprising that cmd would not be recognized on a Windows system. It could be the case that your Environment PATH variable does not include 'C:\Windows\System32\'. My suggestion would be to double check your System Environment PATH variable contains the System32 path.

egeres commented 1 year ago

I came across the same issue, and I have C:\Windows\system32 in my PATH (which I can verify by running echo %PATH%)

egeres commented 1 year ago

Ok, I had tried reopening VSCode many times, but restarting my computer solved the issue 🤷🏻‍♂️