Closed Felx-B closed 1 month ago
I have the same issue, perhaps related or at least to #1448 and #1451?
The C# Language server crashes for me all the time. Really annoying since I also use MacOS (arm), and I have to restart constantly.
[stdout] fail: Microsoft.CodeAnalysis.LanguageServer.ExportProviderBuilder[0]
/Users/jonatannyqvist/.vscode/extensions/ms-dotnettools.csharp-2.45.20-darwin-arm64/.xamlTools/Microsoft.VisualStudio.DesignTools.CodeAnalysis.dll with assembly name Microsoft.VisualStudio.DesignTools.CodeAnalysis, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a conflicts with extension loaded from /Users/jonatannyqvist/.vscode/extensions/ms-dotnettools.csharp-2.45.20-darwin-arm64/.xamlTools
fail: Microsoft.CodeAnalysis.LanguageServer.ExportProviderBuilder[0]
/Users/jonatannyqvist/.vscode/extensions/ms-dotnettools.csharp-2.45.20-darwin-arm64/.xamlTools/Microsoft.VisualStudio.DesignTools.CodeAnalysis.Diagnostics.dll with assembly name Microsoft.VisualStudio.DesignTools.CodeAnalysis.Diagnostics, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a conflicts with extension loaded from /Users/jonatannyqvist/.vscode/extensions/ms-dotnettools.csharp-2.45.20-darwin-arm64/.xamlTools
fail: Microsoft.CodeAnalysis.LanguageServer.ExportProviderBuilder[0]
/Users/jonatannyqvist/.vscode/extensions/ms-dotnettools.csharp-2.45.20-darwin-arm64/.xamlTools/Microsoft.VisualStudio.DesignTools.CodeAnalysis.dll with assembly name Microsoft.VisualStudio.DesignTools.CodeAnalysis, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a conflicts with extension loaded from /Users/jonatannyqvist/.vscode/extensions/ms-dotnettools.csharp-2.45.20-darwin-arm64/.xamlTools
fail: Microsoft.CodeAnalysis.LanguageServer.ExportProviderBuilder[0]
/Users/jonatannyqvist/.vscode/extensions/ms-dotnettools.csharp-2.45.20-darwin-arm64/.xamlTools/Microsoft.VisualStudio.DesignTools.CodeAnalysis.Diagnostics.dll with assembly name Microsoft.VisualStudio.DesignTools.CodeAnalysis.Diagnostics, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a conflicts with extension loaded from /Users/jonatannyqvist/.vscode/extensions/ms-dotnettools.csharp-2.45.20-darwin-arm64/.xamlTools
fail: Microsoft.CodeAnalysis.LanguageServer.ExportProviderBuilder[0]
/Users/jonatannyqvist/.vscode/extensions/ms-dotnettools.csharp-2.45.20-darwin-arm64/.xamlTools/Microsoft.VisualStudio.DesignTools.CodeAnalysis.dll with assembly name Microsoft.VisualStudio.DesignTools.CodeAnalysis, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a conflicts with extension loaded from /Users/jonatannyqvist/.vscode/extensions/ms-dotnettools.csharp-2.45.20-darwin-arm64/.xamlTools
fail: Microsoft.CodeAnalysis.LanguageServer.ExportProviderBuilder[0]
/Users/jonatannyqvist/.vscode/extensions/ms-dotnettools.csharp-2.45.20-darwin-arm64/.xamlTools/Microsoft.VisualStudio.DesignTools.CodeAnalysis.Diagnostics.dll with assembly name Microsoft.VisualStudio.DesignTools.CodeAnalysis.Diagnostics, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a conflicts with extension loaded from /Users/jonatannyqvist/.vscode/extensions/ms-dotnettools.csharp-2.45.20-darwin-arm64/.xamlTools
fail: Microsoft.CodeAnalysis.LanguageServer.ExportProviderBuilder[0]
/Users/jonatannyqvist/.vscode/extensions/ms-dotnettools.csharp-2.45.20-darwin-arm64/.xamlTools/Microsoft.VisualStudio.DesignTools.CodeAnalysis.dll with assembly name Microsoft.VisualStudio.DesignTools.CodeAnalysis, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a conflicts with extension loaded from /Users/jonatannyqvist/.vscode/extensions/ms-dotnettools.csharp-2.45.20-darwin-arm64/.xamlTools
fail: Microsoft.CodeAnalysis.LanguageServer.ExportProviderBuilder[0]
/Users/jonatannyqvist/.vscode/extensions/ms-dotnettools.csharp-2.45.20-darwin-arm64/.xamlTools/Microsoft.VisualStudio.DesignTools.CodeAnalysis.Diagnostics.dll with assembly name Microsoft.VisualStudio.DesignTools.CodeAnalysis.Diagnostics, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a conflicts with extension loaded from /Users/jonatannyqvist/.vscode/extensions/ms-dotnettools.csharp-2.45.20-darwin-arm64/.xamlTools
[stdout] {"pipeName":"/var/folders/68/7gq77cbs4vjg20sdq_pc2vr80000gn/T/080d9cb3.sock"}
received named pipe information from server
attempting to connect client to server...
client has connected to server
[Info - 11:01:46] [Program] Language server initialized
I also seem to get these logs when the intelligence crashes the first time after restart:
[Error - 11:11:14] [LanguageServerHost] StreamJsonRpc.LocalRpcException: Resolve version '2024-09-10T09:11:13.7746290Z-10209-0' does not match current version '2024-09-10T09:11:14.0709070Z-10210-0'
at Microsoft.CodeAnalysis.LanguageServer.Handler.CodeLens.CodeLensResolveHandler.HandleRequestAsync(CodeLens request, RequestContext context, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/CodeLens/CodeLensResolveHandler.cs:line 55
at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken)
[Error - 11:11:14] [LanguageServerHost] StreamJsonRpc.LocalRpcException: Resolve version '2024-09-10T09:11:13.7746290Z-10209-0' does not match current version '2024-09-10T09:11:14.0709070Z-10210-0'
at Microsoft.CodeAnalysis.LanguageServer.Handler.CodeLens.CodeLensResolveHandler.HandleRequestAsync(CodeLens request, RequestContext context, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/CodeLens/CodeLensResolveHandler.cs:line 55
at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken)
[Error - 11:11:14] [LanguageServerHost] StreamJsonRpc.LocalRpcException: Resolve version '2024-09-10T09:11:13.7746290Z-10209-0' does not match current version '2024-09-10T09:11:14.0709070Z-10210-0'
at Microsoft.CodeAnalysis.LanguageServer.Handler.CodeLens.CodeLensResolveHandler.HandleRequestAsync(CodeLens request, RequestContext context, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/CodeLens/CodeLensResolveHandler.cs:line 55
at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken)
[Error - 11:11:14] [LanguageServerHost] StreamJsonRpc.LocalRpcException: Resolve version '2024-09-10T09:11:13.7746290Z-10209-0' does not match current version '2024-09-10T09:11:14.0709070Z-10210-0'
at Microsoft.CodeAnalysis.LanguageServer.Handler.CodeLens.CodeLensResolveHandler.HandleRequestAsync(CodeLens request, RequestContext context, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/CodeLens/CodeLensResolveHandler.cs:line 55
at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken)
[Warn - 11:11:14] [LanguageServerHost] Ignoring diagnostics request for untracked document: file:///Users/jonatannyqvist/Coding/myApp/backend/Models/Server/Question.cs
In the meantime, this is what I did. https://github.com/microsoft/vscode-dotnettools/issues/1451#issuecomment-2340175632
Looks like a duplicate of https://github.com/dotnet/vscode-csharp/issues/7514
Describe the Issue
Hi,
I often have the LanguageServerHost crashing, and when that happens, I lose IntelliSense. I have to restart VSCode for it to work again.
Here is C# console output
What am I missing ? Thank you
Steps To Reproduce
No response
Expected Behavior
No response
Environment Information
VSCode 1.93.0 C# Dev Kit 1.10.16 Macbook Pro M1 Pro