Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Language Server process exits unexpectedly with ArgumentException: filePath : "Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server." #7679

Open
alauddinkurniawan opened this issue Oct 21, 2024 · 2 comments

Comments

@alauddinkurniawan
Copy link

alauddinkurniawan commented Oct 21, 2024

I've encountered a bug similar to previous issues, but I haven't quite found the solution to my case. I've tried erasing the csdevkit folder in my Temp, changing dotnet.server.trace, and unchecking dotnet.server.waitfordebugger. None of them have worked yet. Is there a solution for this?

Dotnet path: C:\Program Files\dotnet\dotnet.exe
Activating C# + C# Dev Kit + C# IntelliCode...
Starting server at c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.CodeAnalysis.LanguageServer.exe
Server arguments --logLevel Trace --razorSourceGenerator c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.razor\Microsoft.CodeAnalysis.Razor.Compiler.dll --razorDesignTimePath c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.razor\Targets\Microsoft.NET.Sdk.Razor.DesignTime.targets --starredCompletionComponentPath c:\Users\alaud\.vscode\extensions\ms-dotnettools.vscodeintellicode-csharp-2.1.11-win32-x64\components\starred-suggestions\platforms\win32-x64\node_modules\@vsintellicode\starred-suggestions-csharp.win32-x64 --devKitDependencyPath c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslynDevKit\Microsoft.VisualStudio.LanguageServices.DevKit.dll --sessionId b32db87b-6cb5-4c09-9b1c-5162904a85bc1729533185501 --extension c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools\Microsoft.VisualStudio.DesignTools.CodeAnalysis.dll --extension c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools\Microsoft.VisualStudio.DesignTools.CodeAnalysis.Diagnostics.dll --telemetryLevel all --extensionLogDirectory c:\Users\alaud\AppData\Roaming\Code\logs\20241022T005303\window1\exthost\ms-dotnettools.csharp
waiting for named pipe information from server...
[stdout] trce: Program[0]
      Server started with process ID 8144
trce: Program[0]
      .NET Runtime Version: .NET 8.0.10
[stdout] trce: Microsoft.CodeAnalysis.LanguageServer.ExportProviderBuilder[0]
      Creating c:\Users\alaud\.vscode\extensions\ms-dotnettools.vscodeintellicode-csharp-2.1.11-win32-x64\components\starred-suggestions\platforms\win32-x64\node_modules\@vsintellicode\starred-suggestions-csharp.win32-x64 load context for c:\Users\alaud\.vscode\extensions\ms-dotnettools.vscodeintellicode-csharp-2.1.11-win32-x64\components\starred-suggestions\platforms\win32-x64\node_modules\@vsintellicode\starred-suggestions-csharp.win32-x64\Microsoft.VisualStudio.IntelliCode.CSharp.dll
[stdout] trce: Microsoft.CodeAnalysis.LanguageServer.ExportProviderBuilder[0]
      Creating c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools load context for c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools\Microsoft.VisualStudio.DesignTools.CodeAnalysis.dll
[stdout] trce: Microsoft.CodeAnalysis.LanguageServer.ExportProviderBuilder[0]
      Composing MEF catalog using:
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.CodeAnalysis.AnalyzerUtilities.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.CodeAnalysis.CSharp.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.CodeAnalysis.CSharp.Features.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.CodeAnalysis.CSharp.Workspaces.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.CodeAnalysis.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.CodeAnalysis.Elfie.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.CodeAnalysis.ExternalAccess.AspNetCore.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.CodeAnalysis.ExternalAccess.CompilerDeveloperSDK.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.CodeAnalysis.ExternalAccess.VisualDiagnostics.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.CodeAnalysis.ExternalAccess.Xaml.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.CodeAnalysis.Features.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.CodeAnalysis.LanguageServer.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.CodeAnalysis.LanguageServer.Protocol.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.CodeAnalysis.Razor.Compiler.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.CodeAnalysis.Remote.Workspaces.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.CodeAnalysis.Scripting.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.CodeAnalysis.Workspaces.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.CodeAnalysis.Workspaces.MSBuild.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.ServiceHub.Client.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.ServiceHub.Framework.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslyn\Microsoft.ServiceHub.Resources.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.roslynDevKit\Microsoft.VisualStudio.LanguageServices.DevKit.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools\Microsoft.VisualStudio.DesignTools.CodeAnalysis.dll    
      c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools\Microsoft.VisualStudio.DesignTools.CodeAnalysis.Diagnostics.dll.
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.ExternalAccess.AspNetCore, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
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.CSharp, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] 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.CodeAnalysis.ExternalAccess.CompilerDeveloperSDK, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Workspaces, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.ExternalAccess.Xaml, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.ExternalAccess.VisualDiagnostics, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Razor.Compiler, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Remote.Workspaces, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Scripting, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Workspaces, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Workspaces.MSBuild, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.ServiceHub.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.ServiceHub.Framework, Version=4.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
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.VisualStudio.LanguageServices.DevKit, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stdout] trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.VisualStudio.DesignTools.CodeAnalysis, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.VisualStudio.DesignTools.CodeAnalysis.Diagnostics, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
[stdout] trce: DevKitAssemblyResolver[0]
      Loading Microsoft.VisualStudio.LanguageServices.DevKit from DevKit directory
[stdout] trce: MEF Assembly Loader[0]
      Microsoft.VisualStudio.DesignTools.CodeAnalysis, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a with code base c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools\Microsoft.VisualStudio.DesignTools.CodeAnalysis.dll found in extension context.
[stdout] trce: MEF Assembly Loader[0]
      Microsoft.VisualStudio.DesignTools.CodeAnalysis.Diagnostics, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a with code base c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools\Microsoft.VisualStudio.DesignTools.CodeAnalysis.Diagnostics.dll found in extension context.
[stdout] trce: DevKitAssemblyResolver[0]
      Loading Microsoft.VisualStudio.Debugger.Contracts from DevKit directory
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      netstandard not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.ExternalAccess.Xaml not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.LanguageServer.Protocol not found in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Loading Microsoft.VisualStudio.DesignTools.XamlLanguageServiceBase in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      netstandard not found in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      netstandard not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Loading Microsoft.VisualStudio.DesignTools.DesignerContractBase in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.ExternalAccess.VisualDiagnostics not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.Workspaces not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.ServiceHub.Framework not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.VisualStudio.Debugger.Contracts not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      netstandard not found in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      System.Collections.Immutable not found in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis not found in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.Workspaces not found in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Loading Microsoft.VisualStudio.DesignTools.DiagnosticsBase in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Loading Microsoft.VisualStudio.DesignTools.RuntimeHostBase in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      netstandard not found in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Loading Microsoft.VisualStudio.DesignTools.UtilityBase in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Loading Microsoft.VisualStudio.DesignTools.UtilityBase in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      netstandard not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      netstandard not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Loading Microsoft.VisualStudio.DesignTools.Markup in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      netstandard not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      System.Threading.Tasks.Extensions not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      System.Collections.Immutable not found in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.Workspaces not found in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis not found in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.VisualStudio.Debugger.Contracts not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      System.Threading.Tasks.Extensions not found in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.VisualStudio.Threading not found in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis not found in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      StreamJsonRpc not found in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      System.ComponentModel.Composition not found in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.Features not found in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      System.Threading.Tasks.Extensions not found in this load context
[stdout] trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      System.Composition.AttributedModel not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      System.Text.Json not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      System.Composition.AttributedModel not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      System.Composition.AttributedModel not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.ExternalAccess.Xaml not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.ExternalAccess.Xaml not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.LanguageServer.Protocol not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.LanguageServer.Protocol not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.ExternalAccess.Xaml not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.ExternalAccess.Xaml not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.ExternalAccess.Xaml not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.ExternalAccess.Xaml not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.Workspaces not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.ExternalAccess.Xaml not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.Workspaces not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.ExternalAccess.Xaml not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.Workspaces not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.LanguageServer.Protocol not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.LanguageServer.Protocol not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.ExternalAccess.Xaml not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.LanguageServer.Protocol not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.LanguageServer.Protocol not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      MessagePack.Annotations not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      MessagePack.Annotations not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      MessagePack.Annotations not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      MessagePack.Annotations not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.ExternalAccess.VisualDiagnostics not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      System.Composition.AttributedModel not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.ExternalAccess.VisualDiagnostics not found in this load context
trce: ALC-c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools[0]
      Microsoft.CodeAnalysis.ExternalAccess.VisualDiagnostics not found in this load context
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Workspaces, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.VisualStudio.DesignTools.CodeAnalysis, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
trce: MEF Assembly Loader[0]
      Microsoft.VisualStudio.DesignTools.CodeAnalysis, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a with code base c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\.xamlTools\Microsoft.VisualStudio.DesignTools.CodeAnalysis.dll found in extension context.
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Workspaces, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Workspaces, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.LanguageServer, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.CSharp.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
trce: MEF Assembly Loader[0]
      Loading assembly Microsoft.CodeAnalysis.Features, Version=4.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[stderr] Unhandled exception: [stderr] System.ArgumentException: filePath
   at Microsoft.VisualStudio.Telemetry.CommonProperty.CommonPropertyParserFactory.GetCommonPropertyParser(TelemetrySessionInternalBase session)
   at Microsoft.VisualStudio.Telemetry.TelemetrySessionInternalBase.LoadCommonProperties()
   at Microsoft.CodeAnalysis.LanguageServer.Logging.VSCodeTelemetryLogger.InitializeSession(String telemetryLevel, String sessionId, Boolean isDefaultSession)
   at Microsoft.CodeAnalysis.LanguageServer.Logging.RoslynLogger.Initialize(ITelemetryReporter reporter, String telemetryLevel, String sessionId) in /_/src/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/Logging/RoslynLogger.cs:line 41
   at Program.<<Main>$>g__RunAsync|0_0(ServerConfiguration serverConfiguration, CancellationToken cancellationToken) in /_/src/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/Program.cs:line 100
   at System.CommandLine.CliCommand.<>c__DisplayClass32_0.<<SetAction>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Invocation.InvocationPipeline.InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken)
Language server process exited with 1
[Error - 12:53:23 AM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
Error: Language server process exited unexpectedly
	at ChildProcess.<anonymous> (c:\Users\alaud\.vscode\extensions\ms-dotnettools.csharp-2.50.27-win32-x64\dist\extension.js:2:1175957)
	at ChildProcess.emit (node:events:531:35)
	at ChildProcess.emit (node:domain:488:12)
	at ChildProcess._handle.onexit (node:internal/child_process:294:12)

#Environment

  • OS: Windows 11 64-bit
  • VS Code Version: 1.9
  • C# Dev Kit Extension Version: v1.11.14
  • .NET SDK Version: 8.0.110

Steps to reproduce

Open VS Code.
Install the C# Dev Kit and .NET SDK.
Open a C# file and observe the error output.

Expected behavior

Editor to show errors in C# codes
The language server should start without throwing an exception and enable IntelliSense and other C# features.

Actual behavior

No errors are shown every time even with obvious ones.

Additional context

I've tried reinstalling the C# extension and .NET SDK, running VS Code as administrator, and disabling telemetry. None of these steps resolved the issue.

@dibarbet
Copy link
Member

@alauddinkurniawan seems to be similar to microsoft/vscode-dotnettools#1354

Does deleting the temp directory described in this comment help at all? - microsoft/vscode-dotnettools#1354 (comment)

@alauddinkurniawan
Copy link
Author

Thanks for the reply.

I'm not sure it did. I did delete the temp files as the comment said before. I tried deleting only the csdevkit temp files and emptying the whole folder. However, the same problem still persists even when I did either of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants