vscode-csharp
vscode-csharp copied to clipboard
Project system ran into an unexpected problem warning
Issue Description
Everytime i open my vscode, this notification pops up ** Project system ran into an unexpected problem, please report it to the product team ** do not understand the message but i have placed log details in the log section.
Steps to Reproduce
Expected Behavior
Actual Behavior
Logs
C# log
=====================
10/25/2023 1:29:46 PM
LimitedFunctionality
System.AggregateException: Project system data flow 'Workspace update handler 19481099' closed because of an exception: The JSON-RPC connection with the remote party was lost before the request could complete.. (The JSON-RPC connection with the remote party was lost before the request could complete.)
---> (Inner Exception #0) StreamJsonRpc.RemoteInvocationException: The JSON-RPC connection with the remote party was lost before the request could complete.
at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Handlers.DynamicItemHandler.<>c__DisplayClass6_0.<<HandleProjectChangeAsync>g__ProcessAdditions|4>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Handlers.DynamicItemHandler.HandleProjectChangeAsync(IWorkspaceProject context, IComparable version, IProjectChangeDescription projectChange, ContextState state, ITelemetryOperation telemetryOperation, IManagedProjectDiagnosticOutputService logger)
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Handlers.DynamicItemHandler.HandleAsync(IWorkspaceProject context, IComparable version, IImmutableDictionary`2 projectChanges, ContextState state, ITelemetryOperation telemetryOperation, IManagedProjectDiagnosticOutputService logger)
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass43_1.<<OnEvaluationUpdateAsync>g__ProcessSourceItemsHandlersAsync|6>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass43_0.<<OnEvaluationUpdateAsync>g__ApplyProjectEvaluationAsync|2>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass46_1`1.<<OnProjectChangedAsync>g__ApplyInBatchAsync|1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.Threading.ReentrantSemaphore.StackSemaphore.<>c__DisplayClass3_0.<<ExecuteAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.Threading.ReentrantSemaphore.StackSemaphore.ExecuteAsync(Func`1 operation, CancellationToken cancellationToken)
at Microsoft.VisualStudio.ProjectSystem.OnceInitializedOnceDisposedUnderLockAsync.ExecuteUnderLockCoreAsync(Func`2 action, CancellationToken cancellationToken)
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.OnEvaluationUpdateAsync(IProjectVersionedValue`1 evaluationUpdate)
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass42_0.<<OnWorkspaceUpdateAsync>g__ApplyUpdateWithinLockAsync|1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass42_0.<<OnWorkspaceUpdateAsync>g__ApplyUpdateWithinLockAsync|1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass42_0.<<OnWorkspaceUpdateAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.Threading.ReentrantSemaphore.StackSemaphore.<>c__DisplayClass3_0.<<ExecuteAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.Threading.ReentrantSemaphore.StackSemaphore.ExecuteAsync(Func`1 operation, CancellationToken cancellationToken)
at Microsoft.VisualStudio.ProjectSystem.OnceInitializedOnceDisposedUnderLockAsync.ExecuteUnderLockCoreAsync(Func`2 action, CancellationToken cancellationToken)
at Microsoft.VisualStudio.ProjectSystem.DataReceivingBlockSlim`1.ProcessInputQueueAsync(InputDataBuffer inputQueue)
<--- (Inner Exception #0)
===================
C# LSP Trace Logs
Environment information
VSCode version: 1.83.1 C# Extension: 2.7.25 Using OmniSharp: false
Dotnet Information
.NET SDK: Version: 7.0.306 Commit: f500069cb7Runtime Environment: OS Name: Windows OS Version: 10.0.19044 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\7.0.306\
Host: Version: 7.0.9 Architecture: x64 Commit: 8e9a17b221
.NET SDKs installed: 7.0.306 [C:\Program Files\dotnet\sdk]
.NET runtimes installed: Microsoft.AspNetCore.App 7.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 7.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 7.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found: None
Environment variables: Not set
global.json file: Not found
Learn more: https://aka.ms/dotnet/info
Download .NET: https://aka.ms/dotnet/download
Visual Studio Code Extensions
| Extension | Author | Version | Folder Name |
|---|---|---|---|
| csdevkit | ms-dotnettools | 0.5.150 | ms-dotnettools.csdevkit-0.5.150-win32-x64 |
| csharp | ms-dotnettools | 2.7.25 | ms-dotnettools.csharp-2.7.25-win32-x64 |
| open-in-browser | techer | 2.0.0 | techer.open-in-browser-2.0.0 |
| vscodeintellicode-csharp | ms-dotnettools | 0.1.26 | ms-dotnettools.vscodeintellicode-csharp-0.1.26-win32-x64 |
System.AggregateException: Project system data flow 'Workspace update handler 19481099' closed because of an exception: The JSON-RPC connection with the remote party was lost before the request could complete.. (The JSON-RPC connection with the remote party was lost before the request could complete.)
---> (Inner Exception #0) StreamJsonRpc.RemoteInvocationException: The JSON-RPC connection with the remote party was lost before the request could complete.
at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Handlers.DynamicItemHandler.<>c__DisplayClass6_0.<g__ProcessAdditions|4>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Handlers.DynamicItemHandler.HandleProjectChangeAsync(IWorkspaceProject context, IComparable version, IProjectChangeDescription projectChange, ContextState state, ITelemetryOperation telemetryOperation, IManagedProjectDiagnosticOutputService logger)
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Handlers.DynamicItemHandler.HandleAsync(IWorkspaceProject context, IComparable version, IImmutableDictionary`2 projectChanges, ContextState state, ITelemetryOperation telemetryOperation, IManagedProjectDiagnosticOutputService logger)
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass43_1.<g__ProcessSourceItemsHandlersAsync|6>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass43_0.<g__ApplyProjectEvaluationAsync|2>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.VisualStudio.ProjectSystem.VSCode.LanguageServices.Workspace.<>c__DisplayClass46_1`1.<g__ApplyInBatchAsync|1>d.MoveNext()
--- End of stack trace from previous location
@tmeschter is devkit calling out to C# here - or is this an error talking to a different service?
Looks like devkit is losing the connection to the C# extension.
@Anurella would you mind changing the dotnet.server.trace configuration to Trace and posting the logs from the C# output window as well when you hit this issue?
Looks like devkit is losing the connection to the C# extension.
@Anurella would you mind changing the
dotnet.server.traceconfiguration toTraceand posting the logs from the C# output window as well when you hit this issue?
@dibarbet may I ask what the steps are to make the change? I would also look out for it once the change has been made.
@Anurella modify the value in vscode settings, then reload the window (cntrl+shift+p, type 'reload window')
Then share the contents of the C# output window. Thanks!
@dibarbet please see below content, tried to take the earlier bits as the output was a lot to paste on here
C# output after changing server config
Using dotnet configured on PATH
Dotnet path: C:\Program Files\dotnet\dotnet.exe
Activating C# + C# Dev Kit + C# IntelliCode...
Starting server at c:\Users\ndukwua\.vscode\extensions\ms-dotnettools.csharp-2.8.23-win32-x64\.roslyn\Microsoft.CodeAnalysis.LanguageServer.dll
Server arguments c:\Users\ndukwua\.vscode\extensions\ms-dotnettools.csharp-2.8.23-win32-x64\.roslyn\Microsoft.CodeAnalysis.LanguageServer.dll --logLevel Trace --starredCompletionComponentPath c:\Users\ndukwua\.vscode\extensions\ms-dotnettools.vscodeintellicode-csharp-0.1.26-win32-x64\components\starred-suggestions\node_modules\@vsintellicode\starred-suggestions-csharp --sharedDependencies c:\Users\ndukwua\.vscode\extensions\ms-dotnettools.csdevkit-0.5.150-win32-x64\components\vs-green-server\platforms\win32-x64\node_modules\@microsoft\visualstudio-server-shared.win32-x64 --extension c:\Users\ndukwua\.vscode\extensions\ms-dotnettools.csdevkit-0.5.150-win32-x64\components\roslyn-visualstudio-languageservices-devkit\node_modules\@microsoft\visualstudio-languageservices-devkit\Microsoft.VisualStudio.LanguageServices.DevKit.dll --sessionId fb3d43af-953b-4c58-9145-08ff7df16c3f1698397575556 --telemetryLevel all --extensionLogDirectory c:\Users\ndukwua\AppData\Roaming\Code\logs\20231027T092304\window1\exthost\ms-dotnettools.csharp
waiting for named pipe information from server...
[stdout] trce: Program[0]
.NET Runtime Version: .NET 7.0.9
[stdout] dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at c:\Users\ndukwua\.vscode\extensions\ms-dotnettools.csharp-2.8.23-win32-x64\.roslyn\Microsoft.CodeAnalysis.AnalyzerUtilities.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at c:\Users\ndukwua\.vscode\extensions\ms-dotnettools.csharp-2.8.23-win32-x64\.roslyn\Microsoft.CodeAnalysis.CSharp.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at c:\Users\ndukwua\.vscode\extensions\ms-dotnettools.csharp-2.8.23-win32-x64\.roslyn\Microsoft.CodeAnalysis.CSharp.Features.dll added to workspace.
[stdout] dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at c:\Users\ndukwua\.vscode\extensions\ms-dotnettools.csharp-2.8.23-win32-x64\.roslyn\Microsoft.CodeAnalysis.CSharp.Workspaces.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at c:\Users\ndukwua\.vscode\extensions\ms-dotnettools.csharp-2.8.23-win32-x64\.roslyn\Microsoft.CodeAnalysis.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at c:\Users\ndukwua\.vscode\extensions\ms-dotnettools.csharp-2.8.23-win32-x64\.roslyn\Microsoft.CodeAnalysis.Elfie.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at c:\Users\ndukwua\.vscode\extensions\ms-dotnettools.csharp-2.8.23-win32-x64\.roslyn\Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler.dll added to workspace.
[stdout] dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at c:\Users\ndukwua\.vscode\extensions\ms-dotnettools.csharp-2.8.23-win32-x64\.roslyn\Microsoft.CodeAnalysis.Features.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at c:\Users\ndukwua\.vscode\extensions\ms-dotnettools.csharp-2.8.23-win32-x64\.roslyn\Microsoft.CodeAnalysis.Razor.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at c:\Users\ndukwua\.vscode\extensions\ms-dotnettools.csharp-2.8.23-win32-x64\.roslyn\Microsoft.CodeAnalysis.Remote.Workspaces.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at c:\Users\ndukwua\.vscode\extensions\ms-dotnettools.csharp-2.8.23-win32-x64\.roslyn\Microsoft.CodeAnalysis.Scripting.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at c:\Users\ndukwua\.vscode\extensions\ms-dotnettools.csharp-2.8.23-win32-x64\.roslyn\Microsoft.CodeAnalysis.Workspaces.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at c:\Users\ndukwua\.vscode\extensions\ms-dotnettools.csharp-2.8.23-win32-x64\.roslyn\Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at c:\Users\ndukwua\.vscode\extensions\ms-dotnettools.csharp-2.8.23-win32-x64\.roslyn\Microsoft.CodeAnalysis.Workspaces.MSBuild.dll added to workspace.
[stdout] {"pipeName":"\\\\.\\pipe\\8dbe97f6-09e2-4e3b-9754-d2c6c7c518b5"}
received named pipe information from server
attempting to connect client to server...
client has connected to server
[Info - 10:06:18 AM] [Program] Language server initialized
[LanguageServerHost] [09:06:18.771][Start]initialize
[LanguageServerHost] [09:06:18.776][Start]Initialize
[LanguageServerHost] [09:06:18.831][End]Initialize
[LanguageServerHost] [09:06:18.854][End]initialize
[LanguageServerHost] [09:06:18.869][Start]initialized
[LanguageServerHost] [09:06:18.928][End]initialized
[LanguageServerHost] [09:06:18.930][Start]serviceBroker/connect
[BrokeredServiceTraceListener] ServiceBroker Information: 1 :
[BrokeredServiceTraceListener] SameProcess proffered brokered service(s): Microsoft.VisualStudio.RemoteBrokeredServiceManifest (0.2).
[BrokeredServiceTraceListener] ServiceBroker Information: 1 :
[BrokeredServiceTraceListener] SameProcess proffered brokered service(s): Microsoft.VisualStudio.GlobalBrokeredServiceContainer.MissingServiceDiagnostics (1.0).
[BrokeredServiceTraceListener] ServiceBroker Information: 1 :
[BrokeredServiceTraceListener] SameProcess proffered brokered service(s): Microsoft.ServiceHub.Framework.AuthorizationService.
[LanguageServerHost] [09:06:18.946][Start]workspace/diagnostic
[LanguageServerHost] PublicWorkspacePullDiagnosticsHandler(category: , source: ) started getting diagnostics
[LanguageServerHost] previousResults.Length=0
[LanguageServerHost] Processing 0 documents
[BrokeredServiceTraceListener] ServiceBroker Information: 1 :
[BrokeredServiceTraceListener] SameProcess proffered brokered service(s): Microsoft.VisualStudio.LanguageServices.WorkspaceProjectFactoryService, Microsoft.CodeAnalysis.LanguageServer.ManagedHotReloadLanguageService (0.1), Microsoft.VisualStudio.Server.IBrokeredServiceBridgeManifest (0.1).
[Microsoft.CodeAnalysis.LanguageServer.BrokeredServices.BrokeredServiceBridgeProvider] Setting up brokered service bridge
[LanguageServerHost] [09:06:18.969][End]serviceBroker/connect
[BrokeredServiceTraceListener] ServiceBroker Information: 0 :
[BrokeredServiceTraceListener] Added local RPC method "handshake" -> Microsoft.ServiceHub.Framework.IpcRelayServiceBroker.HandshakeAsync(ServiceBrokerClientMetadata, CancellationToken) (Microsoft.ServiceHub.Framework.IpcRelayServiceBroker)
[BrokeredServiceTraceListener] ServiceBroker Information: 0 :
[BrokeredServiceTraceListener] Added local RPC method "requestServiceChannel" -> Microsoft.ServiceHub.Framework.IpcRelayServiceBroker.RequestServiceChannelAsync(ServiceMoniker, ServiceActivationOptions, CancellationToken) (Microsoft.ServiceHub.Framework.IpcRelayServiceBroker)
[BrokeredServiceTraceListener] ServiceBroker Information: 0 :
[BrokeredServiceTraceListener] Added local RPC method "cancelServiceRequest" -> Microsoft.ServiceHub.Framework.IpcRelayServiceBroker.CancelServiceRequestAsync(Guid) (Microsoft.ServiceHub.Framework.IpcRelayServiceBroker)
[BrokeredServiceTraceListener] ServiceBroker Information: 0 :
[BrokeredServiceTraceListener] Added local RPC method "dispose" -> Microsoft.ServiceHub.Framework.IpcRelayServiceBroker.Dispose() (Microsoft.ServiceHub.Framework.IpcRelayServiceBroker)
[BrokeredServiceTraceListener] ServiceBroker Information: 0 :
[BrokeredServiceTraceListener] Added local RPC method "handshake" -> Microsoft.ServiceHub.Framework.IpcRelayServiceBroker.HandshakeAsync(ServiceBrokerClientMetadata, CancellationToken) (Microsoft.ServiceHub.Framework.IpcRelayServiceBroker)
[BrokeredServiceTraceListener] ServiceBroker Information: 0 :
[BrokeredServiceTraceListener] Added local RPC method "requestServiceChannel" -> Microsoft.ServiceHub.Framework.IpcRelayServiceBroker.RequestServiceChannelAsync(ServiceMoniker, ServiceActivationOptions, CancellationToken) (Microsoft.ServiceHub.Framework.IpcRelayServiceBroker)
[BrokeredServiceTraceListener] ServiceBroker Information: 0 :
[BrokeredServiceTraceListener] Added local RPC method "cancelServiceRequest" -> Microsoft.ServiceHub.Framework.IpcRelayServiceBroker.CancelServiceRequestAsync(Guid) (Microsoft.ServiceHub.Framework.IpcRelayServiceBroker)
[BrokeredServiceTraceListener] ServiceBroker Information: 2 :
[BrokeredServiceTraceListener] Listening for events from Microsoft.ServiceHub.Framework.IpcRelayServiceBroker.AvailabilityChanged to raise notification.
[BrokeredServiceTraceListener] ServiceBroker Information: 3 :
[BrokeredServiceTraceListener] Listening started.
[BrokeredServiceTraceListener] ServiceBroker Information: 7 :
[BrokeredServiceTraceListener] {"id":2,"method":"handshake"}
[BrokeredServiceTraceListener] ServiceBroker Verbose: 7 :
[BrokeredServiceTraceListener] Received: {"jsonrpc":"2.0","id":2,"method":"handshake","params":[{"supportedConnections":"IpcPipe","localServiceHost":{"operatingSystem":0,"processArchitecture":1,"runtime":2,"runtimeVersion":"7.0.9"}}]}
[BrokeredServiceTraceListener] ServiceBroker Information: 6 :
[BrokeredServiceTraceListener] Received request "2" for method "handshake".
[BrokeredServiceTraceListener] ServiceBroker Information: 0 :
[BrokeredServiceTraceListener] Added local RPC method "availabilityChanged" -> _proxy_Microsoft.ServiceHub.Framework.IRemoteServiceBroker_a17399c5-ebf1-4e55-940c-68acd0601360.OnAvailabilityChanged(BrokeredServicesChangedEventArgs) (_proxy_Microsoft.ServiceHub.Framework.IRemoteServiceBroker_a17399c5-ebf1-4e55-940c-68acd0601360)
[BrokeredServiceTraceListener] ServiceBroker Information: 3 :
[BrokeredServiceTraceListener] Listening started.
[BrokeredServiceTraceListener] ServiceBroker Information: 1 :
[BrokeredServiceTraceListener] IRemoteServiceBroker proffered from remote source: OtherProcessOnSameMachine.
[BrokeredServiceTraceListener] ServiceBroker Information: 1 :
[BrokeredServiceTraceListener] OtherProcessOnSameMachine proffered brokered service(s): vs-intellicode-base-models (0.1), Microsoft.VisualStudio.ProjectSystem.ProjectInitializationStatusService (0.1), Microsoft.CodeAnalysis.LanguageClient.SolutionSnapshotProvider (0.1), Microsoft.VisualStudio.Debugger.ManagedHotReloadService (0.1).
[BrokeredServiceTraceListener] ServiceBroker Information: 9 :
[BrokeredServiceTraceListener] Invoking Microsoft.ServiceHub.Framework.IpcRelayServiceBroker.HandshakeAsync(ServiceBrokerClientMetadata, CancellationToken)
[BrokeredServiceTraceListener] ServiceBroker Start: 0 :
[BrokeredServiceTraceListener] handshake
[BrokeredServiceTraceListener] ServiceBroker Stop: 0 :
[BrokeredServiceTraceListener] handshake
[BrokeredServiceTraceListener] ServiceBroker Information: 8 :
[BrokeredServiceTraceListener] {"id":2}
[BrokeredServiceTraceListener] ServiceBroker Verbose: 8 :
[BrokeredServiceTraceListener] Sent: {"jsonrpc":"2.0","id":2,"result":null}
[BrokeredServiceTraceListener] ServiceBroker Information: 7 :
[BrokeredServiceTraceListener] {"id":3,"method":"requestServiceChannel"}
[BrokeredServiceTraceListener] ServiceBroker Verbose: 7 :
[BrokeredServiceTraceListener] Received: {"jsonrpc":"2.0","id":3,"method":"requestServiceChannel","params":[{"name":"Microsoft.VisualStudio.Server.IBrokeredServiceBridgeManifest","version":"0.1"},{"clientCulture":"en-US","clientUICulture":"en-US"}]}
[BrokeredServiceTraceListener] ServiceBroker Information: 6 :
[BrokeredServiceTraceListener] Received request "3" for method "requestServiceChannel".
[BrokeredServiceTraceListener] ServiceBroker Information: 9 :
[BrokeredServiceTraceListener] Invoking Microsoft.ServiceHub.Framework.IpcRelayServiceBroker.RequestServiceChannelAsync(ServiceMoniker, ServiceActivationOptions, CancellationToken)
[BrokeredServiceTraceListener] ServiceBroker Start: 0 :
[BrokeredServiceTraceListener] requestServiceChannel
[BrokeredServiceTraceListener] ServiceBroker Transfer: 0 :
[BrokeredServiceTraceListener] Transfer, relatedActivityId=3a43fc7c-85ef-4d77-a823-12f802e05f50
[BrokeredServiceTraceListener] ServiceBroker Start: 0 :
[BrokeredServiceTraceListener] Requesting pipe to "Microsoft.VisualStudio.Server.IBrokeredServiceBridgeManifest (0.1)"
[BrokeredServiceTraceListener] ServiceBroker Information: 2 :
[BrokeredServiceTraceListener] Request for "Microsoft.VisualStudio.Server.IBrokeredServiceBridgeManifest (0.1)" will be fulfilled by SameProcess
[BrokeredServiceTraceListener] ServiceBroker Transfer: 0 :
[BrokeredServiceTraceListener] Transfer, relatedActivityId=263969ab-2d10-4f35-bd60-f05287ffa08a
[BrokeredServiceTraceListener] ServiceBroker Start: 0 :
[BrokeredServiceTraceListener] Requesting proxy to "Microsoft.ServiceHub.Framework.AuthorizationService"
[BrokeredServiceTraceListener] ServiceBroker Information: 2 :
[BrokeredServiceTraceListener] Request for "Microsoft.ServiceHub.Framework.AuthorizationService" will be fulfilled by SameProcess
[BrokeredServiceTraceListener] ServiceBroker Information: 2 :
[BrokeredServiceTraceListener] Request for proxy to "Microsoft.ServiceHub.Framework.AuthorizationService" is Fulfilled by SameProcess: NoExplanation.
[BrokeredServiceTraceListener] ServiceBroker Stop: 0 :
[BrokeredServiceTraceListener] Requesting proxy to "Microsoft.ServiceHub.Framework.AuthorizationService"
[BrokeredServiceTraceListener] ServiceBroker Transfer: 0 :
[BrokeredServiceTraceListener] Transfer, relatedActivityId=3a43fc7c-85ef-4d77-a823-12f802e05f50
[BrokeredServiceTraceListener] ServiceBroker Information: 2 :
[BrokeredServiceTraceListener] Request for pipe to "Microsoft.VisualStudio.Server.IBrokeredServiceBridgeManifest (0.1)" is Fulfilled by SameProcess: NoExplanation.
[BrokeredServiceTraceListener] ServiceBroker Stop: 0 :
[BrokeredServiceTraceListener] Requesting pipe to "Microsoft.VisualStudio.Server.IBrokeredServiceBridgeManifest (0.1)"
[BrokeredServiceTraceListener] ServiceBroker Transfer: 0 :
[BrokeredServiceTraceListener] Transfer, relatedActivityId=a0371d5f-8ef4-416a-b9ac-5016a4dcb818
[BrokeredServiceTraceListener] ServiceBroker Stop: 0 :
[BrokeredServiceTraceListener] requestServiceChannel
[BrokeredServiceTraceListener] ServiceBroker Information: 8 :
[BrokeredServiceTraceListener] {"id":3}
[BrokeredServiceTraceListener] ServiceBroker Verbose: 8 :
[BrokeredServiceTraceListener] Sent: {"jsonrpc":"2.0","id":3,"result":{"requestId":"21d56138-2215-4801-99e3-bae3f4212dca","pipeName":"3b459d28f931450ba5a061faafd709b8"}}
[Microsoft.CodeAnalysis.LanguageServer.BrokeredServices.Services.BrokeredServiceBridgeManifest.BrokeredServiceBridgeManifest] Proffered services: Microsoft.VisualStudio.LanguageServices.WorkspaceProjectFactoryService,Microsoft.CodeAnalysis.LanguageServer.ManagedHotReloadLanguageService (0.1)
[BrokeredServiceTraceListener] ServiceBroker Information: 7 :
[BrokeredServiceTraceListener] {"id":4,"method":"requestServiceChannel"}
[BrokeredServiceTraceListener] ServiceBroker Verbose: 7 :
[BrokeredServiceTraceListener] Received: {"jsonrpc":"2.0","id":4,"method":"requestServiceChannel","params":[{"name":"Microsoft.VisualStudio.LanguageServices.WorkspaceProjectFactoryService"},{"clientCredentials":{},"clientCulture":"en-US","clientUICulture":"en-US"}],"traceparent":"00-e3ce4b1c9101294b805f725b912ef1b8-ea78dfdf68b67c46-00"}
[BrokeredServiceTraceListener] ServiceBroker Information: 6 :
[BrokeredServiceTraceListener] Received request "4" for method "requestServiceChannel".
[BrokeredServiceTraceListener] ServiceBroker Information: 9 :
[BrokeredServiceTraceListener] Invoking Microsoft.ServiceHub.Framework.IpcRelayServiceBroker.RequestServiceChannelAsync(ServiceMoniker, ServiceActivationOptions, CancellationToken)
[BrokeredServiceTraceListener] ServiceBroker Transfer: 0 :
[BrokeredServiceTraceListener] Transfer, relatedActivityId=91cc2542-bbb4-4ccc-8f4d-aa02c8d83508
[BrokeredServiceTraceListener] ServiceBroker Start: 0 :
[BrokeredServiceTraceListener] requestServiceChannel
[BrokeredServiceTraceListener] ServiceBroker Transfer: 0 :
[BrokeredServiceTraceListener] Transfer, relatedActivityId=69f1c1d1-28ec-4ad6-bfa4-9ab560dd41b8
[BrokeredServiceTraceListener] ServiceBroker Start: 0 :
[BrokeredServiceTraceListener] Requesting pipe to "Microsoft.VisualStudio.LanguageServices.WorkspaceProjectFactoryService"
[BrokeredServiceTraceListener] ServiceBroker Information: 2 :
[BrokeredServiceTraceListener] Request for "Microsoft.VisualStudio.LanguageServices.WorkspaceProjectFactoryService" will be fulfilled by SameProcess
[BrokeredServiceTraceListener] ServiceBroker Transfer: 0 :
[BrokeredServiceTraceListener] Transfer, relatedActivityId=b30fef93-32df-48be-9785-dc72d0b3394e
[BrokeredServiceTraceListener] ServiceBroker Start: 0 :
[BrokeredServiceTraceListener] Requesting proxy to "Microsoft.ServiceHub.Framework.AuthorizationService"
[BrokeredServiceTraceListener] ServiceBroker Information: 2 :
[BrokeredServiceTraceListener] Request for "Microsoft.ServiceHub.Framework.AuthorizationService" will be fulfilled by SameProcess
[BrokeredServiceTraceListener] ServiceBroker Information: 2 :
[BrokeredServiceTraceListener] Request for proxy to "Microsoft.ServiceHub.Framework.AuthorizationService" is Fulfilled by SameProcess: NoExplanation.
[BrokeredServiceTraceListener] ServiceBroker Stop: 0 :
[BrokeredServiceTraceListener] Requesting proxy to "Microsoft.ServiceHub.Framework.AuthorizationService"
[BrokeredServiceTraceListener] ServiceBroker Transfer: 0 :
[BrokeredServiceTraceListener] Transfer, relatedActivityId=69f1c1d1-28ec-4ad6-bfa4-9ab560dd41b8
[BrokeredServiceTraceListener] ServiceBroker Transfer: 0 :
[BrokeredServiceTraceListener] Transfer, relatedActivityId=c9d6a1dd-8167-47b1-a1cf-37aac1c227eb
[BrokeredServiceTraceListener] ServiceBroker Start: 0 :
[BrokeredServiceTraceListener] Requesting proxy to "Microsoft.VisualStudio.ProjectSystem.ProjectInitializationStatusService (0.1)"
[BrokeredServiceTraceListener] ServiceBroker Information: 2 :
[BrokeredServiceTraceListener] Request for "Microsoft.VisualStudio.ProjectSystem.ProjectInitializationStatusService (0.1)" will be fulfilled by OtherProcessOnSameMachine
[BrokeredServiceTraceListener] ServiceBroker Information: 8 :
[BrokeredServiceTraceListener] {"id":2,"method":"handshake"}
[BrokeredServiceTraceListener] ServiceBroker Verbose: 8 :
[BrokeredServiceTraceListener] Sent: {"jsonrpc":"2.0","id":2,"method":"handshake","params":[{"supportedConnections":"Multiplexing, IpcPipe","localServiceHost":{"operatingSystem":0,"processArchitecture":1,"runtime":2,"runtimeVersion":"7.0.9"}}],"traceparent":"00-dda1d6c96781b147a1cf37aac1c227eb-483dd7f6a81d854d-01"}
[BrokeredServiceTraceListener] ServiceBroker Information: 7 :
[BrokeredServiceTraceListener] {"id":2}
[BrokeredServiceTraceListener] ServiceBroker Verbose: 7 :
[BrokeredServiceTraceListener] Received: {"jsonrpc":"2.0","id":2,"result":null}
[BrokeredServiceTraceListener] ServiceBroker Information: 11 :
[BrokeredServiceTraceListener] Received result for request "2".
[BrokeredServiceTraceListener] ServiceBroker Information: 8 :
[BrokeredServiceTraceListener] {"id":3,"method":"requestServiceChannel"}
[BrokeredServiceTraceListener] ServiceBroker Verbose: 8 :
[BrokeredServiceTraceListener] Sent: {"jsonrpc":"2.0","id":3,"method":"requestServiceChannel","params":[{"name":"Microsoft.VisualStudio.ProjectSystem.ProjectInitializationStatusService","version":"0.1"},{"clientCredentials":{},"clientCulture":"en-US","clientUICulture":"en-US"}],"traceparent":"00-dda1d6c96781b147a1cf37aac1c227eb-ff1462615b9ac644-01"}
[BrokeredServiceTraceListener] ServiceBroker Information: 7 :
[BrokeredServiceTraceListener] {"id":3}
[BrokeredServiceTraceListener] ServiceBroker Verbose: 7 :
[BrokeredServiceTraceListener] Received: {"jsonrpc":"2.0","id":3,"result":{"requestId":"a3db05eb-3639-43fd-a059-2a33bbca11de","multiplexingChannelId":3}}
[BrokeredServiceTraceListener] ServiceBroker Information: 11 :
[BrokeredServiceTraceListener] Received result for request "3".
[BrokeredServiceTraceListener] ServiceBroker Information: 2 :
[BrokeredServiceTraceListener] Request for proxy to "Microsoft.VisualStudio.ProjectSystem.ProjectInitializationStatusService (0.1)" is Fulfilled by OtherProcessOnSameMachine: NoExplanation.
[BrokeredServiceTraceListener] ServiceBroker Stop: 0 :
[BrokeredServiceTraceListener] Requesting proxy to "Microsoft.VisualStudio.ProjectSystem.ProjectInitializationStatusService (0.1)"
[BrokeredServiceTraceListener] ServiceBroker Transfer: 0 :
[BrokeredServiceTraceListener] Transfer, relatedActivityId=69f1c1d1-28ec-4ad6-bfa4-9ab560dd41b8
[BrokeredServiceTraceListener] ServiceBroker Information: 2 :
[BrokeredServiceTraceListener] Request for pipe to "Microsoft.VisualStudio.LanguageServices.WorkspaceProjectFactoryService" is Fulfilled by SameProcess: NoExplanation.
[BrokeredServiceTraceListener] ServiceBroker Stop: 0 :
[BrokeredServiceTraceListener] Requesting pipe to "Microsoft.VisualStudio.LanguageServices.WorkspaceProjectFactoryService"
[BrokeredServiceTraceListener] ServiceBroker Transfer: 0 :
[BrokeredServiceTraceListener] Transfer, relatedActivityId=91cc2542-bbb4-4ccc-8f4d-aa02c8d83508
[BrokeredServiceTraceListener] ServiceBroker Stop: 0 :
[BrokeredServiceTraceListener] requestServiceChannel
[BrokeredServiceTraceListener] ServiceBroker Transfer: 0 :
[BrokeredServiceTraceListener] Transfer, relatedActivityId=1c4bcee3-0191-4b29-805f-725b912ef1b8
[BrokeredServiceTraceListener] ServiceBroker Information: 8 :
[BrokeredServiceTraceListener] {"id":4}
[BrokeredServiceTraceListener] ServiceBroker Verbose: 8 :
[BrokeredServiceTraceListener] Sent: {"jsonrpc":"2.0","id":4,"result":{"requestId":"9209e3a0-9b45-4e11-9676-e3544527286b","pipeName":"15cfa9f99b25421d962a13fdc485f76c"}}
Thanks - based on those logs it doesn't appear as though anything is explicitly going wrong in the C# extension, it looks like it is still running.
A couple more things to confirm
- After you hit this error - is there still a process for the C# server? You can check by looking for a process with 'Microsoft.CodeAnalysis.LanguageServer.dll' in the command line. For example in powershell:
Will output something like this if it exists:Get-WmiObject Win32_Process -Filter "name = 'dotnet.exe'" | Select-Object Name,ProcessId,CommandLine | Select-String 'Microsoft.CodeAnalysis.LanguageServer' - Can you zip up and attach the contents of the extension logs folder? You can find it here:
Hello @dibarbet please find zipped folder. I hope it helps logsa.zip
@Anurella apologies for the delay, taking a look at the extension logs now, a bunch of logs appear to be missing. I'm not seeing any of the output window logging which is super important. Best way to get these
- Open VSCode, run the steps to reproduce the issue
- From that same VSCode instance, open that extensions log folder, and include everything inside it. If you'd rather not post it on a public github issue, feel free to send to my microsoft email ([email protected]).
Thanks!
Thank you @dibarbet. I have sent the email
Thank you @dibarbet. I have sent the email
Got it- thanks! Will take a look this week.
Aha - this log has the correct details - thanks!
The error:
[Error - 8:36:53 AM] [LanguageServerHost] System.InvalidOperationException: didOpen received for virtualcsharp-razor:///<file path>.cshtml__virtual.cs which is already open. - line 106
at Roslyn.Utilities.Contract.Fail(String message, Int32 lineNumber) in /_/src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/Utilities/Contract.cs:line 154
at Microsoft.CodeAnalysis.LanguageServer.LspWorkspaceManager.StartTrackingAsync(Uri uri, SourceText documentText, String languageId, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Protocol/Workspaces/LspWorkspaceManager.cs:line 106
at Microsoft.CodeAnalysis.LanguageServer.Handler.DocumentChanges.DidOpenHandler.HandleNotificationAsync(DidOpenTextDocumentParams request, RequestContext context, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Protocol/Handler/DocumentChanges/DidOpenHandler.cs:line 42
at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`3.StartRequestAsync(TRequestContext context, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CommonLanguageServerProtocol.Framework/QueueItem.cs:line 136
at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`3.StartRequestAsync(TRequestContext context, CancellationToken cancellationToken)
at Microsoft.CommonLanguageServerProtocol.Framework.RequestExecutionQueue`1.ProcessQueueAsync() in /_/src/Features/LanguageServer/Microsoft.CommonLanguageServerProtocol.Framework/RequestExecutionQueue.cs:line 239
This is potentially the same as https://github.com/dotnet/vscode-csharp/issues/6644, which will hopefully be fixed in this weeks release. However its hard to tell without the solution file.
@ryzngard would you mind taking a look here since this looks like an issue on the Razor side? I am seeing two entries for the same file in the Razor log:
Trying to create DocumentContext for textDocument/didClose for (no project context) for file:///<path>/SliderSection.cshtml
...
Trying to create DocumentContext for textDocument/didClose for (no project context) for file:///<path>/SliderSection.cshtml
Agree this looks the same. @Anurella can you confirm if there is a possible difference in casing somewhere in your csproj files and on disk naming?
@ryzngard there is no difference in the naming, only one file exists.
Or can you help clarify what you would need me to check specifically. Thank you
@Anurella is there a solution you can share? Either or on GitHub or private e-mailing me ? That would be the easiest way for me to verify
@Anurella , if you have a solution that repros this issue, can you share it with us so that we can diagnose the particular cause of the issue?
To be honest I am not sure I have. I sent the log files to @ryzngard when I encountered it.
Not worked on the file in a minute so I have not had to encounter the issue. But I think it might be a case of the razor formatter and prettier being active at the same time.
Let me double check my email, I have a few logs sent to me and for some reason thought this issue I didn't get them.
I apologize @Anurella but I can't seem to find the e-mail. Do you mind resending? I checked spam just in case as well but no luck.
I am sorry it was @dibarbet I sent it to initially, but I have sent it to you now. Do let me know if you get it.
@Anurella I don't see the initial error in the logs you sent, but I do see a lot of exceptions around SemanticTokensRange being incorrect on request. This looks like it might be similar to https://github.com/dotnet/razor/issues/9598 (and others that we haven't correlated yet, but I'm sure we have). Can you confirm you're seeing those exceptions normally?
The original exception I was looking for, Project system data flow 'Workspace update handler... was not contained in the logs