dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.85k stars 666 forks source link

Timeout. Named pipe information not received from server #6842

Closed Dan33-W closed 4 months ago

Dan33-W commented 7 months ago

Type: Bug

got this error in my output

Using dotnet configured on PATH Dotnet path: C:\Program Files\dotnet\dotnet.exe Activating C# + C# Dev Kit + C# IntelliCode... waiting for named pipe information from server... [Error - 12:10:20 PM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server. Error: Timeout. Named pipe information not received from server. at q. (c:\Users\Dan.vscode\extensions\ms-dotnettools.csharp-2.15.30-win32-x64\dist\extension.js:2:1290803) at Generator.next () at s (c:\Users\Dan.vscode\extensions\ms-dotnettools.csharp-2.15.30-win32-x64\dist\extension.js:2:1280740) [stdout] {"pipeName":"\\.\pipe\4568f666"} received named pipe information from server

Extension version: 2.15.30 VS Code version: Code 1.85.2 (8b3775030ed1a69b13e4f4c628c612102e30a681, 2024-01-18T06:40:10.514Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz (4 x 2904)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|7.90GB (2.00GB free)| |Process Argv|--crash-reporter-id 08eefc6f-246f-433b-9dd6-668bc473749e| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstes627:30244334 vscorecescf:30445987 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 vscaac:30438847 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30951796 f8hc8238:30694864 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 accentitlementst:30887150 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 dsvsc019bcf:30953938 7j2b6412:30949929 ```
Dabosa commented 7 months ago

I have the same issue along with some other devs. Were you able to resolve?

Tarendoholmen commented 7 months ago

Same issue here

Dabosa commented 7 months ago

In my case it was due to local admin access on computer that was removed which resulted in this error.

Tarendoholmen commented 7 months ago

In my case it was due to local admin access on computer that was removed which resulted in this error.

Did you find any solution without taking back local admin?

Dabosa commented 7 months ago

In my case it was due to local admin access on computer that was removed which resulted in this error.

Did you find any solution without taking back local admin?

No. I spent two days of updating or doing rollbacks of SDK's, extensions and you name it. Once local admin was back, all was fine.

dkflRus commented 7 months ago

Same :c

Error: Timeout. Named pipe information not received from server. at q.<anonymous> (/home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.17.7/dist/extension.js:2:1291052) at Generator.next (<anonymous>) at s (/home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.17.7/dist/extension.js:2:1280530)

dibarbet commented 6 months ago

Similar to https://github.com/dotnet/vscode-csharp/issues/6865 and https://github.com/dotnet/vscode-csharp/issues/6870

Interesting issue - we seem to be getting the pipe name back, but we aren't able to connect to it. We haven't modified this code in a while either.

To anyone hitting this please

  1. Update dotnet.server.startTimeout to something longer (for example 60000)
  2. Set the dotnet.server.trace configuration in vscode settings to Trace
  3. Reload the window
  4. If it still times out, please attach the logs with the new log level here.
  5. Check if the the language server process is running after it times out (e.g. ps -ef | grep 'Microsoft.CodeAnalysis.LanguageServer.exe')
  6. Check if reverting to an older version of the extension fixes

Thanks!

dkflRus commented 6 months ago
Using dotnet configured on PATH
Dotnet path: /usr/share/dotnet/dotnet
Activating C# standalone...
Starting server at /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.17.7/.roslyn/Microsoft.CodeAnalysis.LanguageServer.dll
Server arguments /home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.17.7/.roslyn/Microsoft.CodeAnalysis.LanguageServer.dll --logLevel Trace --telemetryLevel off --extensionLogDirectory /home/dkfl/.config/Code - OSS/logs/20240218T102340/window1/exthost/ms-dotnettools.csharp
waiting for named pipe information from server...
[stderr] Unhandled exception. [stderr] System.BadImageFormatException: An attempt was made to load a program with an incorrect format.
 (0x8007000B)
[Error - 10:25:01 AM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
Error: Timeout. Named pipe information not received from server.
    at q.<anonymous> (/home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.17.7/dist/extension.js:2:1291052)
    at Generator.next (<anonymous>)
    at s (/home/dkfl/.vscode-oss/extensions/ms-dotnettools.csharp-2.17.7/dist/extension.js:2:1280530)
ps -ef | grep 'Microsoft.CodeAnalysis.LanguageServer.exe'
dkfl       10978   10431  0 10:27 pts/0    00:00:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox Microsoft.CodeAnalysis.LanguageServer.exe
sebrk commented 6 months ago

Same/similar issue. My environment is a remote vscode server:

Dotnet path: /home/xxxyyy/.vscode-server/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/7.0.16~x64/dotnet Activating C# + C# Dev Kit + C# IntelliCode... waiting for named pipe information from server... [Error - 2:57:40 PM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server. Error: Timeout. Named pipe information not received from server. at q.<anonymous> (/home/xxxyyy/.vscode-server/extensions/ms-dotnettools.csharp-2.18.16-linux-x64/dist/extension.js:2:1291159) at Generator.next (<anonymous>) at s (/home/xxxyyy/.vscode-server/extensions/ms-dotnettools.csharp-2.18.16-linux-x64/dist/extension.js:2:1281031) [stdout] {"pipeName":"/tmp/a8a92ff9.sock"} received named pipe information from server

dibarbet commented 6 months ago

We've just uploaded a new prerelease version (2.19.13) which will hopefully provide more details if the client is unable to connect to the pipe - @sebrk would you mind trying it out and attaching the latest logs here

@dkflRus your issue is a bit different - here the server is entirely failing to start. I filed https://github.com/dotnet/vscode-csharp/issues/6919 - we can continue the conversation there.

BloodZero0 commented 6 months ago

We've just uploaded a new prerelease version (2.19.13) which will hopefully provide more details if the client is unable to connect to the pipe - @sebrk would you mind trying it out and attaching the latest logs here

@dkflRus your issue is a bit different - here the server is entirely failing to start. I filed #6919 - we can continue the conversation there.

I was having this issue with version 2.18.16 but switching to pre-release version 2.22.2 seems to have fixed it. I will still attach the logs to be sure.

4-C#.log

ZJKung commented 5 months ago

same here

Dotnet path: /usr/local/share/dotnet/dotnet
Activating C# + C# Dev Kit...
Starting server at /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.LanguageServer.dll
Server arguments /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.LanguageServer.dll --debug --logLevel Trace --devKitDependencyPath /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslynDevKit/Microsoft.VisualStudio.LanguageServices.DevKit.dll --sessionId 82f4e1be-a302-4036-a45c-1fd89afeb3221710501316691 --telemetryLevel all --extensionLogDirectory /Users/ryankung/Library/Application Support/Code/logs/20240315T145506/window6/exthost/ms-dotnettools.csharp
waiting for named pipe information from server...
[stdout] crit: Program[0]
      Server started with process ID 13247
[stdout] crit: Program[0]
      Waiting 0:01:00 for a debugger to attach
[Error - 7:15:48 PM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
Error: Timeout. Named pipe information not received from server.
    at Function.<anonymous> (/Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/dist/extension.js:2:1291663)
    at Generator.next (<anonymous>)
    at s (/Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/dist/extension.js:2:1281535)
[stdout] trce: Program[0]
      .NET Runtime Version: .NET 8.0.3
[stdout] trce: Microsoft.CodeAnalysis.LanguageServer.ExportProviderBuilder[0]
      Composing MEF catalog using:
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.Mvc.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Remote.Workspaces.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.CSharp.Workspaces.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.Mvc.Version2_X.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.CSharp.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.LanguageServer.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.Language.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Scripting.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.Mvc.Version1_X.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.ExternalAccess.Xaml.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Workspaces.MSBuild.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Elfie.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.LanguageServer.Protocol.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.ExternalAccess.AspNetCore.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.CSharp.Features.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Workspaces.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.CSharp.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.AnalyzerUtilities.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Features.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.ServiceHub.Client.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.ServiceHub.Resources.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.ServiceHub.Framework.dll    
      /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslynDevKit/Microsoft.VisualStudio.LanguageServices.DevKit.dll.
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Razor.Compiler.Mvc.Version2_X, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Razor.Compiler.Language, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Workspaces, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Razor.Compiler.Mvc, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Remote.Workspaces, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Scripting, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Razor.Compiler.Mvc.Version1_X, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Elfie, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.ExternalAccess.Xaml, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Workspaces.MSBuild, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.ExternalAccess.AspNetCore, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Workspaces, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Razor.Compiler.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.ServiceHub.Resources, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Features, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.ServiceHub.Framework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.AnalyzerUtilities, Version=3.3.2.30504, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.VisualStudio.LanguageServices.DevKit, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.ServiceHub.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
trce: DevKitAssemblyResolver[0]
      Loading Microsoft.VisualStudio.LanguageServices.DevKit from DevKit directory
[stdout] trce: DevKitAssemblyResolver[0]
      Loading Microsoft.VisualStudio.Debugger.Contracts from DevKit directory
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Features, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Workspaces, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Workspaces, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Features, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Workspaces, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Features, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Features, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Features, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Features, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Features, Version=4.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: Microsoft.CodeAnalysis.LanguageServer.Logging.VSCodeTelemetryLogger[0]
      Telemetry session started with sessionID: 82f4e1be-a302-4036-a45c-1fd89afeb3221710501316691
[stdout] dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.Mvc.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Remote.Workspaces.dll added to workspace.
[stdout] dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.CSharp.Workspaces.dll added to workspace.
[stdout] dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.Mvc.Version2_X.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.CSharp.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.Language.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Scripting.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.Mvc.Version1_X.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.ExternalAccess.Xaml.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Workspaces.MSBuild.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Elfie.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.ExternalAccess.AspNetCore.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.CSharp.Features.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Workspaces.dll added to workspace.
[stdout] dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.CSharp.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.AnalyzerUtilities.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users/ryankung/.vscode/extensions/ms-dotnettools.csharp-2.23.2-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Features.dll added to workspace.
[stdout] {"pipeName":"/var/folders/nw/zlqj15zs7qs9msjn_mt66_wc0000gp/T/fba76341.sock"}
received named pipe information from server

ps -ef | grep 'Microsoft.CodeAnalysis.LanguageServer.exe' 502 13949 10780 0 7:16PM ttys031 0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox Microsoft.CodeAnalysis.LanguageServer.exe

dibarbet commented 5 months ago

@ZJKung - it looks like you have the dotnet.server.waitForDebugger option set - try unchecking it and reload the window.

Generally that setting is only used if you need to debug the C# extension itself - the connection will timeout if you do not attach a debugger to the server process.

ZJKung commented 5 months ago

@ZJKung - it looks like you have the dotnet.server.waitForDebugger option set - try unchecking it and reload the window.

Generally that setting is only used if you need to debug the C# extension itself - the connection will timeout if you do not attach a debugger to the server process.

@dibarbet Thank you so much for your response! I really appreciate your help. I'll try unchecking it on Monday and see if it resolves the issue.

ZJKung commented 5 months ago

after I unchecked dotnet.server.waitForDebugger option it works fine!

dibarbet commented 4 months ago

Haven't heard of any further issues and there are reports of this working as expected on more recent versions of the extension. Going to close this issue, if anyone hits it in the latest versions, please file a new issue with the logs as above.

Meligy commented 3 months ago

@dibarbet, actually, it's happening for me:

Using dotnet configured on PATH
Dotnet path: /usr/local/share/dotnet/dotnet
Activating C# + C# Dev Kit...
waiting for named pipe information from server...
[Error - 01:29:42] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
Error: Timeout. Client cound not connect to server via named pipe
    at H.<anonymous> (/Users/meligy/.vscode-insiders/extensions/ms-dotnettools.csharp-2.33.13-darwin-arm64/dist/extension.js:2:1295226)
    at Generator.next (<anonymous>)
    at s (/Users/meligy/.vscode-insiders/extensions/ms-dotnettools.csharp-2.33.13-darwin-arm64/dist/extension.js:2:1284321)
[stdout] {"pipeName":"/var/folders/6z/cxls7zh91cbcxvn4g53c1t_80000gn/T/527c60b7.sock"}
received named pipe information from server
attempting to connect client to server...
client has connected to server

C# is working as expected other than this error.

Version information:

.NET SDK:
 Version:           8.0.204
 Commit:            c338c7548c
 Workload version:  8.0.200-manifests.4b097a37

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  14.5
 OS Platform: Darwin
 RID:         osx-arm64
 Base Path:   /usr/local/share/dotnet/sdk/8.0.204/

.NET workloads installed:
There are no installed workloads to display.

Host:
  Version:      8.0.4
  Architecture: arm64
  Commit:       2d7eea2529

.NET SDKs installed:
  6.0.303 [/usr/local/share/dotnet/sdk]
  7.0.408 [/usr/local/share/dotnet/sdk]
  8.0.204 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.18 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.18 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  DOTNET_ROOT       [/usr/local/share/dotnet]

From VS Code, for extension ms-dotnettools (this repo):

Extension version: 2.33.13 VS Code version: Code - Insiders 1.91.0-insider (6facfe23b300eb448c35d07291cad7ad98625302, 2024-06-07T08:38:32.379Z) OS version: Darwin arm64 23.5.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M3 Max (16 x 2400)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|9, 36, 32| |Memory (System)|48.00GB (0.05GB free)| |Process Argv|--crash-reporter-id a54a822f-22f2-499e-9c5a-8849f0a02513| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 vsaa593:30376534 py29gd2263:31024238 c4g48928:30535728 962ge761:30841072 pythongtdpath:30726887 welcomedialogc:30812479 pythonidxpt:30768918 pythonnoceb:30776497 asynctok:30898717 dsvsc013:30777762 dsvsc014:30777825 dsvsc015:30821418 pythontestfixt:30866404 pythonregdiag2:30926734 pythonmypyd1:30859725 pythoncet0:30859736 2e7ec940:31000449 pythontbext0:30879054 accentitlementst:30870582 dsvsc016:30879898 dsvsc017:30880771 dsvsc018:30880772 cppperfnew:30980852 pythonait:30973460 jchc7451:31067543 showvideot:31016890 chatpanelt:31014475 9c06g630:31013171 a69g1124:31018687 dvdeprecation:31040973 pythonprt:31036556 dwnewjupyter:31046869 nb_pkg_only:31057982 26j00206:31048877 nativerepl2:31063928 ```