vscode-csharp icon indicating copy to clipboard operation
vscode-csharp copied to clipboard

Server times out no matter how long I put (well only went to 10 minutes)

Open jefflindholm opened this issue 3 years ago • 4 comments

Issue Description

Omnisharp server fails to start timeout

Steps to Reproduce

just try starting the server

Expected Behavior

server would sart

Actual Behavior

Logs

OmniSharp log

OmniSharp server started with .NET 6.0.301 . Path: c:\Users\jeff\.vscode\extensions\ms-dotnettools.csharp-1.25.0-win32-x64\.omnisharp\1.39.0-net6.0\OmniSharp.dll PID: 59960

[ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute).

C# log

Post the output from Output-->C# here

Environment information

VSCode version: 1.68.1 C# Extension: 1.25.0

Dotnet Information .NET SDK (reflecting any global.json): Version: 6.0.301 Commit: 43f9b18481

Runtime Environment: OS Name: Windows OS Version: 10.0.22000 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\6.0.301\

Host (useful for support): Version: 6.0.6 Commit: 7cca709db2

.NET SDKs installed: 5.0.214 [C:\Program Files\dotnet\sdk] 6.0.301 [C:\Program Files\dotnet\sdk]

.NET runtimes installed: Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.26 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.1.26 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

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

Visual Studio Code Extensions
Extension Author Version
csharp ms-dotnettools 1.25.0
remote-containers ms-vscode-remote 0.238.2
vscode-docker ms-azuretools 1.22.0

jefflindholm avatar Jun 28 '22 14:06 jefflindholm

I'm also having this issue. Did you manage to find a solution?

spy653 avatar Aug 04 '22 15:08 spy653

Not yet

jefflindholm avatar Aug 04 '22 17:08 jefflindholm

I had the same issue; seems the problem is that OmniSharp is trying to execute \OmniSharp.dll If you go to settings Omnisharp:path and put the full path to OmniSharp.exe it works. In your example @jefflindholm it would be : ** c:\Users\jeff.vscode\extensions\ms-dotnettools.csharp-1.25.0-win32-x64.omnisharp\1.39.0-net6.0\OmniSharp.exe** So far its working for me, no idea how its going to handle an update

RDavis3000 avatar Aug 23 '22 03:08 RDavis3000

Similar problems reported on the following issues:

  • #5330
  • #5302

validide avatar Aug 26 '22 13:08 validide