microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
221 stars 10 forks source link

Intellisense and syntrax highlighting intermittent when C# Dev Kit is installed #210

Closed dibarbet closed 1 year ago

dibarbet commented 1 year ago

From vscode-csharp created by jesperkristensen: dotnet/vscode-csharp#5853

Type: Bug

After installing the new C# Dev Kit extension, the intellisense, go to definition and syntax highlighting is very intermittent, often only working for types defined in my own project, but not types defined by nuget packages or the framework.

image

It seems related to issue #5849 to me, but sine it was asked there to file new issues, I am filing a new one.

Dotnet Server Trace log [LanguageServerHost]workspace/diagnostic - Canceled [LanguageServerHost][08:09:06.678][End]workspace/diagnostic [LanguageServerHost]Shutting down [Info - 10.09.06] Shutting down Dotnet path: c:\Users\Administrator\.vscode-server\data\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\7.0.8\dotnet.exe Activating C# + C# Dev Kit + C# IntelliCode... Starting server at c:\Users\Administrator\.vscode-server\extensions\ms-dotnettools.csharp-2.0.238-win32-x64\.roslyn\Microsoft.CodeAnalysis.LanguageServer.exe dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\Administrator\.vscode-server\extensions\ms-dotnettools.csharp-2.0.238-win32-x64\.roslyn\Microsoft.CodeAnalysis.AnalyzerUtilities.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\Administrator\.vscode-server\extensions\ms-dotnettools.csharp-2.0.238-win32-x64\.roslyn\Microsoft.CodeAnalysis.CSharp.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\Administrator\.vscode-server\extensions\ms-dotnettools.csharp-2.0.238-win32-x64\.roslyn\Microsoft.CodeAnalysis.CSharp.Features.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\Administrator\.vscode-server\extensions\ms-dotnettools.csharp-2.0.238-win32-x64\.roslyn\Microsoft.CodeAnalysis.CSharp.Workspaces.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\Administrator\.vscode-server\extensions\ms-dotnettools.csharp-2.0.238-win32-x64\.roslyn\Microsoft.CodeAnalysis.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\Administrator\.vscode-server\extensions\ms-dotnettools.csharp-2.0.238-win32-x64\.roslyn\Microsoft.CodeAnalysis.Elfie.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\Administrator\.vscode-server\extensions\ms-dotnettools.csharp-2.0.238-win32-x64\.roslyn\Microsoft.CodeAnalysis.Features.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\Administrator\.vscode-server\extensions\ms-dotnettools.csharp-2.0.238-win32-x64\.roslyn\Microsoft.CodeAnalysis.Razor.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\Administrator\.vscode-server\extensions\ms-dotnettools.csharp-2.0.238-win32-x64\.roslyn\Microsoft.CodeAnalysis.Remote.Workspaces.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\Administrator\.vscode-server\extensions\ms-dotnettools.csharp-2.0.238-win32-x64\.roslyn\Microsoft.CodeAnalysis.Scripting.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\Administrator\.vscode-server\extensions\ms-dotnettools.csharp-2.0.238-win32-x64\.roslyn\Microsoft.CodeAnalysis.Workspaces.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at c:\Users\Administrator\.vscode-server\extensions\ms-dotnettools.csharp-2.0.238-win32-x64\.roslyn\Microsoft.CodeAnalysis.Workspaces.MSBuild.dll added to workspace. info: LanguageServerHost[0] Starting server... [LanguageServerHost][08:09:07.907][Start]initialize [LanguageServerHost][08:09:07.925][Start]Initialize [LanguageServerHost][08:09:07.989][End]Initialize [LanguageServerHost][08:09:08.009][End]initialize [LanguageServerHost][08:09:08.013][Start]initialized [LanguageServerHost][08:09:08.091][End]initialized [LanguageServerHost][08:09:08.093][Start]serviceBroker/connect [LanguageServerHost][08:09:08.093][Start]textDocument/didOpen [LanguageServerHost]didOpen for file:///c:/home/tester/TesterProj/Program.cs [LanguageServerHost][08:09:08.102][End]textDocument/didOpen [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]Could not find 'file:///c:/home/tester/TesterProj/Program.cs'. Searched Host [BrokeredServiceTraceListener]ServiceBroker Information: 1 : [BrokeredServiceTraceListener]SameProcess proffered brokered service(s): Microsoft.VisualStudio.Server.IBrokeredServiceBridgeManifest (0.1), Microsoft.VisualStudio.LanguageServices.WorkspaceProjectFactoryService, Microsoft.CodeAnalysis.LanguageServer.IHelloWorld (0.1). [Microsoft.CodeAnalysis.LanguageServer.BrokeredServices.BrokeredServiceBridgeProvider]Setting up brokered service bridge [BrokeredServiceTraceListener]ServiceBroker Start: 0 : [BrokeredServiceTraceListener]Requesting proxy to "helloServiceHubDotNetHost (0.1)" [BrokeredServiceTraceListener]ServiceBroker Warning: 3 : [BrokeredServiceTraceListener]Brokered service "helloServiceHubDotNetHost (0.1)" has no proffering source and no package registered to load. [BrokeredServiceTraceListener]ServiceBroker Warning: 2 : [BrokeredServiceTraceListener]Request for proxy to "helloServiceHubDotNetHost (0.1)" is declined: ServiceFactoryNotProffered. [BrokeredServiceTraceListener]ServiceBroker Stop: 0 : [BrokeredServiceTraceListener]Requesting proxy to "helloServiceHubDotNetHost (0.1)" [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.8" } } ] } [BrokeredServiceTraceListener]ServiceBroker Information: 6 : [BrokeredServiceTraceListener]Received request "2" for method "handshake". [LanguageServerHost][08:09:08.237][Start]textDocument/diagnostic [LanguageServerHost]PublicDocumentPullDiagnosticsHandler(category: ) started getting diagnostics [LanguageServerHost]previousResults.Length=0 [LanguageServerHost]Processing 1 documents [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: 0 : [BrokeredServiceTraceListener]Added local RPC method "availabilityChanged" -> _proxy_Microsoft.ServiceHub.Framework.IRemoteServiceBroker_bdc3252c-0884-4e3c-b8f2-b39db72fd96e.OnAvailabilityChanged(BrokeredServicesChangedEventArgs) (_proxy_Microsoft.ServiceHub.Framework.IRemoteServiceBroker_bdc3252c-0884-4e3c-b8f2-b39db72fd96e) [BrokeredServiceTraceListener]ServiceBroker Information: 1 : [BrokeredServiceTraceListener]IRemoteServiceBroker proffered from remote source: OtherProcessOnSameMachine. [BrokeredServiceTraceListener]ServiceBroker Information: 1 : [LanguageServerHost]c:\home\tester\TesterProj\Program.cs found in workspace MiscellaneousFiles [BrokeredServiceTraceListener]OtherProcessOnSameMachine proffered brokered service(s): Microsoft.VisualStudio.ProjectSystem.ProjectInitializationStatusService (0.1), Microsoft.VisualStudio.Debugger.ManagedHotReloadService (0.1), vs-intellicode-base-models (0.1), helloServiceHubDotNetHost (0.1), Microsoft.CodeAnalysis.LanguageClient.SolutionSnapshotProvider (0.1). [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", "clientUICulture": "en" } ] } [BrokeredServiceTraceListener]ServiceBroker Information: 6 : [BrokeredServiceTraceListener]Received request "3" for method "requestServiceChannel". [LanguageServerHost]c:\home\tester\TesterProj\Program.cs found in workspace MiscellaneousFiles [LanguageServerHost]c:\home\tester\TesterProj\Program.cs found in workspace MiscellaneousFiles [LanguageServerHost][08:09:08.283][Start]textDocument/foldingRange [BrokeredServiceTraceListener]ServiceBroker Information: 3 : [BrokeredServiceTraceListener]Listening started. [BrokeredServiceTraceListener]ServiceBroker Information: 2 : [BrokeredServiceTraceListener]Request for "helloServiceHubDotNetHost (0.1)" will be fulfilled by OtherProcessOnSameMachine [BrokeredServiceTraceListener]ServiceBroker Start: 0 : [BrokeredServiceTraceListener]Requesting proxy to "helloServiceHubDotNetHost (0.1)" [BrokeredServiceTraceListener]ServiceBroker Information: 2 : [BrokeredServiceTraceListener]Request for "helloServiceHubDotNetHost (0.1)" will be fulfilled by OtherProcessOnSameMachine [BrokeredServiceTraceListener]ServiceBroker Information: 9 : [BrokeredServiceTraceListener]Invoking Microsoft.ServiceHub.Framework.IpcRelayServiceBroker.RequestServiceChannelAsync(ServiceMoniker, ServiceActivationOptions, CancellationToken) [BrokeredServiceTraceListener]ServiceBroker Start: 0 : [BrokeredServiceTraceListener]requestServiceChannel [LanguageServerHost]c:\home\tester\TesterProj\Program.cs found in workspace MiscellaneousFiles [LanguageServerHost][08:09:08.312][Start]textDocument/codeLens [BrokeredServiceTraceListener]ServiceBroker Transfer: 0 : [BrokeredServiceTraceListener]Transfer, relatedActivityId=d5ecfe08-526b-4b1c-ae93-d0c59a935483 [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 Information: 8 : [BrokeredServiceTraceListener]{"id":2,"method":"handshake"} [BrokeredServiceTraceListener]ServiceBroker Verbose: 8 : [BrokeredServiceTraceListener]Sent: { "traceparent": "00-90db45690983c0448b98af98c854aa3a-d265046b9a3e554a-01", "jsonrpc": "2.0", "id": 2, "method": "handshake", "params": [ { "supportedConnections": "Multiplexing, IpcPipe", "localServiceHost": { "operatingSystem": 0, "processArchitecture": 1, "runtime": 2, "runtimeVersion": "7.0.8" } } ] } [LanguageServerHost][08:09:08.328][Start]textDocument/inlayHint [BrokeredServiceTraceListener]ServiceBroker Transfer: 0 : [BrokeredServiceTraceListener]Transfer, relatedActivityId=1fe2c8bf-3c13-4006-b9f7-b92627989d55 [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 [LanguageServerHost][08:09:08.370][Start]workspace/diagnostic [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=d5ecfe08-526b-4b1c-ae93-d0c59a935483 [LanguageServerHost][08:09:08.374][End]textDocument/inlayHint [LanguageServerHost][08:09:08.374][Start]textDocument/documentSymbol [LanguageServerHost]PublicWorkspacePullDiagnosticsHandler(category: ) started getting diagnostics [LanguageServerHost]previousResults.Length=0 [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=1369abde-61fa-43f2-bb20-e462e5bc34d1 [LanguageServerHost]Processing 0 documents [LanguageServerHost]Closing workspace/diagnostics request [LanguageServerHost]Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicWorkspacePullDiagnosticsHandler finished getting diagnostics [LanguageServerHost][08:09:08.386][End]workspace/diagnostic [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 Stop: 0 : [BrokeredServiceTraceListener]requestServiceChannel [LanguageServerHost]c:\home\tester\TesterProj\Program.cs found in workspace MiscellaneousFiles [LanguageServerHost][08:09:08.397][Start]textDocument/semanticTokens/range [BrokeredServiceTraceListener]ServiceBroker Information: 8 : [BrokeredServiceTraceListener]{"id":3} [BrokeredServiceTraceListener]ServiceBroker Verbose: 8 : [BrokeredServiceTraceListener]Sent: { "jsonrpc": "2.0", "id": 3, "result": { "requestId": "f1be7027-9a46-4b7e-8f16-233b3f69435d", "pipeName": "8852a413a3ba42d0be0a503b7ab34ffd", "isEmpty": false } } [BrokeredServiceTraceListener]ServiceBroker Information: 8 : [BrokeredServiceTraceListener]{"id":3,"method":"requestServiceChannel"} [BrokeredServiceTraceListener]ServiceBroker Verbose: 8 : [BrokeredServiceTraceListener]Sent: { "traceparent": "00-90db45690983c0448b98af98c854aa3a-3023a9b97f362b4b-01", "jsonrpc": "2.0", "id": 3, "method": "requestServiceChannel", "params": [ { "name": "helloServiceHubDotNetHost", "version": "0.1" }, { "clientCredentials": {}, "clientCulture": "da-DK", "clientUICulture": "en-US" } ] } [Microsoft.CodeAnalysis.LanguageServer.BrokeredServices.Services.BrokeredServiceBridgeManifest.BrokeredServiceBridgeManifest]Proffered services: Microsoft.VisualStudio.LanguageServices.WorkspaceProjectFactoryService,Microsoft.CodeAnalysis.LanguageServer.IHelloWorld (0.1) [LanguageServerHost]Found 0 diagnostics for DocumentDiagnosticSource: c:\home\tester\TesterProj\Program.cs in Miscellaneous Files [LanguageServerHost]Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicDocumentPullDiagnosticsHandler finished getting diagnostics [BrokeredServiceTraceListener]ServiceBroker Information: 13 : [BrokeredServiceTraceListener]Connection closing (RemotePartyTerminated: Reached end of stream.). [BrokeredServiceTraceListener]ServiceBroker Information: 7 : [BrokeredServiceTraceListener]{"id":3} [BrokeredServiceTraceListener]ServiceBroker Verbose: 7 : [BrokeredServiceTraceListener]Received: { "jsonrpc": "2.0", "id": 3, "result": { "requestId": "fcb1356d-2fd2-4527-8b9d-3d067fdb8a4e", "multiplexingChannelId": 4, "isEmpty": false } } [BrokeredServiceTraceListener]ServiceBroker Information: 11 : [BrokeredServiceTraceListener]Received result for request "3". [LanguageServerHost][08:09:08.449][End]textDocument/diagnostic [BrokeredServiceTraceListener]ServiceBroker Information: 2 : [BrokeredServiceTraceListener]Request for proxy to "helloServiceHubDotNetHost (0.1)" is Fulfilled by OtherProcessOnSameMachine: NoExplanation. [BrokeredServiceTraceListener]ServiceBroker Stop: 0 : [BrokeredServiceTraceListener]Requesting proxy to "helloServiceHubDotNetHost (0.1)" [Microsoft.CodeAnalysis.LanguageServer.BrokeredServices.Services.HelloWorld.RemoteHelloWorldProvider]Response from remote: Hello, C#! - with love from ServiceHub running on .NET [LanguageServerHost][08:09:08.466][End]serviceBroker/connect [LanguageServerHost][08:09:08.475][End]textDocument/codeLens [LanguageServerHost][08:09:08.490][End]textDocument/foldingRange [LanguageServerHost][08:09:08.564][End]textDocument/documentSymbol [LanguageServerHost][08:09:08.779][End]textDocument/semanticTokens/range [LanguageServerHost]c:\home\tester\TesterProj\Program.cs found in workspace MiscellaneousFiles [LanguageServerHost][08:09:10.271][Start]textDocument/diagnostic [LanguageServerHost]PublicDocumentPullDiagnosticsHandler(category: ) started getting diagnostics [LanguageServerHost]previousResults.Length=1 [LanguageServerHost]Processing 1 documents [LanguageServerHost]Diagnostics were unchanged for DocumentDiagnosticSource: c:\home\tester\TesterProj\Program.cs in Miscellaneous Files [LanguageServerHost]Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicDocumentPullDiagnosticsHandler finished getting diagnostics [LanguageServerHost][08:09:10.280][End]textDocument/diagnostic [LanguageServerHost][08:09:10.404][Start]workspace/diagnostic [LanguageServerHost]PublicWorkspacePullDiagnosticsHandler(category: ) started getting diagnostics [LanguageServerHost]previousResults.Length=0 [LanguageServerHost]Processing 0 documents [LanguageServerHost]c:\home\tester\TesterProj\Program.cs found in workspace MiscellaneousFiles [LanguageServerHost][08:09:10.537][Start]textDocument/codeLens [LanguageServerHost][08:09:10.538][End]textDocument/codeLens [LanguageServerHost]c:\home\tester\TesterProj\Program.cs found in workspace MiscellaneousFiles [LanguageServerHost][08:09:18.108][Start]textDocument/hover [LanguageServerHost][08:09:18.133][End]textDocument/hover [LanguageServerHost]c:\home\tester\TesterProj\Program.cs found in workspace MiscellaneousFiles [LanguageServerHost][08:09:18.329][Start]textDocument/hover [LanguageServerHost][08:09:18.331][End]textDocument/hover [LanguageServerHost]c:\home\tester\TesterProj\Program.cs found in workspace MiscellaneousFiles [LanguageServerHost][08:09:18.550][Start]textDocument/hover [LanguageServerHost][08:09:18.550][End]textDocument/hover [LanguageServerHost]c:\home\tester\TesterProj\Program.cs found in workspace MiscellaneousFiles [LanguageServerHost][08:09:20.173][Start]textDocument/documentHighlight [LanguageServerHost][08:09:20.201][End]textDocument/documentHighlight [LanguageServerHost]c:\home\tester\TesterProj\Program.cs found in workspace MiscellaneousFiles [LanguageServerHost][08:09:20.433][Start]textDocument/codeAction [LanguageServerHost][08:09:20.754][End]textDocument/codeAction [LanguageServerHost]c:\home\tester\TesterProj\Program.cs found in workspace MiscellaneousFiles [LanguageServerHost][08:09:21.538][Start]textDocument/definition [LanguageServerHost][08:09:21.578][End]textDocument/definition [LanguageServerHost]c:\home\tester\TesterProj\Program.cs found in workspace MiscellaneousFiles [LanguageServerHost][08:09:23.664][Start]textDocument/diagnostic [LanguageServerHost]PublicDocumentPullDiagnosticsHandler(category: ) started getting diagnostics [LanguageServerHost]previousResults.Length=1 [LanguageServerHost]Processing 1 documents [LanguageServerHost]Diagnostics were unchanged for DocumentDiagnosticSource: c:\home\tester\TesterProj\Program.cs in Miscellaneous Files [LanguageServerHost]Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicDocumentPullDiagnosticsHandler finished getting diagnostics [LanguageServerHost][08:09:23.665][End]textDocument/diagnostic

Extension version: 2.0.238 VS Code version: Code 1.79.2 (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:57:04.379Z) OS version: Windows_NT x64 10.0.22621 Modes: Remote OS version: Windows_NT x64 10.0.20348

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i7-1265U (12 x 2688)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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)|47.67GB (15.63GB free)| |Process Argv|--file-uri vscode-remote://ssh-remote%2BREDACTED/c%3A/REDACTED.code-workspace --crash-reporter-id e1474425-8a00-4ec8-8364-fe51656c778f| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|SSH: REDACTED| |OS|Windows_NT x64 10.0.20348| |CPUs|12th Gen Intel(R) Core(TM) i7-1265U (6 x 2688)| |Memory (System)|19.53GB (9.51GB free)| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931cf:30280410 vshan820:30294714 vstes263:30335439 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263cf:30773604 vsclangdc:30486549 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 282f8724:30602487 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 a9j8j154:30646983 showlangstatbar:30737416 vsctsb:30748421 pythonms35:30701012 03d35959:30757346 pythonfmttext:30731395 pythoncmvfstrcf:30756944 fixshowwlkth:30771522 showindicator:30766890 pythongtdpath:30769146 i26e3531:30769768 dh2dc718:30770000 pythonidxpt:30772539 pythondjangotscf:30772537 pythonnocebcf:30773527 ```
dibarbet commented 1 year ago

Thanks!

It does look like something is going wrong here - the project information isn't making it to the language server, so there is no real semantic information. E.g. from the logs

[LanguageServerHost]c:\home\tester\TesterProj\Program.cs found in workspace MiscellaneousFiles [LanguageServerHost]

I do notice this at the beginning of the logs

[LanguageServerHost]Shutting down
[Info - 10.09.06] Shutting down
Dotnet path: c:\Users\Administrator\.vscode-server\data\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\7.0.8\dotnet.exe
Activating C# + C# Dev Kit + C# IntelliCode... 
Starting server at c:\Users\Administrator\.vscode-server\extensions\ms-dotnettools.csharp-2.0.238-win32-x64\.roslyn\Microsoft.CodeAnalysis.LanguageServer.exe

which seems to indicate that the server restarted for some reason. However the logs before that are missing, so I don't know exactly why the server shutdown in the first place.

I definitely can repro this bug manually though -

  1. Open any C# solution with C#+devkit.
  2. Wait for the project to load
  3. Trigger the .NET Restart Language Server command
  4. Wait a bit and note how all the project information is lost in the editor and logs show files in misc workspace.

I'm pretty sure the cause here is fairly straightforward - basically if the C# server stops, the project information goes with it. When we start back up we're able to reconnect to the brokered services in devkit, but devkit currently doesn't realize that C# has restarted and does not re-send the project information. So now the lsp server thinks everything is in misc.

Unfortunately, the language server restarting without devkit knowing is something that can happen. There are three main scenarios for this

  1. A launch option for the language server changes (for example path to the executable, trace settings, dotnet path, etc). We offer a prompt to restart the server. We could instead offer to reload the window which would cause devkit to restart too.
  2. The generic restart language server command. We could potentially remove this.
  3. The LSP server encounters an unrecoverable error (rarer). We can't easily change this scenario to not restart the language server - that is controlled by the client.

Tagging @tmeschter for his thoughts here. One option we have here is for the project system to listen to the availability changed event on the brokered service. When devkit notices that the service drops, then comes back it would know it needs to re-send project information. Not sure how viable that is.

A couple followups for @jesperkristensen

  1. Do you remember if there was an error causing the server to restart or if it was manually restarted?
  2. If you do a reload window command in vscode, does the issue go away?
dibarbet commented 1 year ago

I don't remember seeing any error. I tried the restart language server command after the problem occurred, but it only seemed to make the problem worse.

I have between 10 and 15 solutions in my workspace, and using the open solution command to switch between them also seems to make the problem worse.

The reload window command did not seem to help by itself. Only restarting the remote VM while using the reload window command at the same time seemed to help. (I am using the Remote SSH extension.)

I had some more logs involving other solutions, but I was not sure how to redact the confidential information in them, so I posted as much of the logs as I could verify did not contain confidential information.

dibarbet commented 1 year ago

This is happening always here:

Basically unusable. I switched back to omni sharp, but there we have similar problems with false error hint so on..

Here are some c# extension logs from Trace mode:

Logs

Dotnet path: /root/.vscode-server/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/7.0.8/dotnet Activating C# + C# Dev Kit + C# IntelliCode... Starting server at /root/.vscode-server/extensions/ms-dotnettools.csharp-2.0.238-linux-x64/.roslyn/Microsoft.CodeAnalysis.LanguageServer dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /root/.vscode-server/extensions/ms-dotnettools.csharp-2.0.238-linux-x64/.roslyn/Microsoft.CodeAnalysis.Features.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /root/.vscode-server/extensions/ms-dotnettools.csharp-2.0.238-linux-x64/.roslyn/Microsoft.CodeAnalysis.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /root/.vscode-server/extensions/ms-dotnettools.csharp-2.0.238-linux-x64/.roslyn/Microsoft.CodeAnalysis.CSharp.Workspaces.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /root/.vscode-server/extensions/ms-dotnettools.csharp-2.0.238-linux-x64/.roslyn/Microsoft.CodeAnalysis.Remote.Workspaces.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /root/.vscode-server/extensions/ms-dotnettools.csharp-2.0.238-linux-x64/.roslyn/Microsoft.CodeAnalysis.Workspaces.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /root/.vscode-server/extensions/ms-dotnettools.csharp-2.0.238-linux-x64/.roslyn/Microsoft.CodeAnalysis.AnalyzerUtilities.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /root/.vscode-server/extensions/ms-dotnettools.csharp-2.0.238-linux-x64/.roslyn/Microsoft.CodeAnalysis.CSharp.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /root/.vscode-server/extensions/ms-dotnettools.csharp-2.0.238-linux-x64/.roslyn/Microsoft.CodeAnalysis.CSharp.Features.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /root/.vscode-server/extensions/ms-dotnettools.csharp-2.0.238-linux-x64/.roslyn/Microsoft.CodeAnalysis.Razor.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /root/.vscode-server/extensions/ms-dotnettools.csharp-2.0.238-linux-x64/.roslyn/Microsoft.CodeAnalysis.Workspaces.MSBuild.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /root/.vscode-server/extensions/ms-dotnettools.csharp-2.0.238-linux-x64/.roslyn/Microsoft.CodeAnalysis.Scripting.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /root/.vscode-server/extensions/ms-dotnettools.csharp-2.0.238-linux-x64/.roslyn/Microsoft.CodeAnalysis.Elfie.dll added to workspace. info: LanguageServerHost[0] Starting server... [LanguageServerHost][05:39:58.675][Start]initialize [LanguageServerHost][05:39:58.721][Start]Initialize [LanguageServerHost][05:39:58.850][End]Initialize [LanguageServerHost][05:39:58.884][End]initialize [LanguageServerHost][05:39:58.892][Start]initialized [LanguageServerHost][05:39:59.010][End]initialized [LanguageServerHost][05:39:59.013][Start]serviceBroker/connect [LanguageServerHost][05:39:59.015][Start]textDocument/didOpen [LanguageServerHost]didOpen for file://confidential/path/file.cs [LanguageServerHost][05:39:59.029][End]textDocument/didOpen [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]Could not find 'file://confidential/path/file.cs'. Searched Host [BrokeredServiceTraceListener]ServiceBroker Information: 1 : [BrokeredServiceTraceListener]SameProcess proffered brokered service(s): Microsoft.VisualStudio.LanguageServices.WorkspaceProjectFactoryService, Microsoft.CodeAnalysis.LanguageServer.IHelloWorld (0.1), Microsoft.VisualStudio.Server.IBrokeredServiceBridgeManifest (0.1). [Microsoft.CodeAnalysis.LanguageServer.BrokeredServices.BrokeredServiceBridgeProvider]Setting up brokered service bridge [BrokeredServiceTraceListener]ServiceBroker Start: 0 : [BrokeredServiceTraceListener]Requesting proxy to "helloServiceHubDotNetHost (0.1)" [BrokeredServiceTraceListener]ServiceBroker Warning: 3 : [BrokeredServiceTraceListener]Brokered service "helloServiceHubDotNetHost (0.1)" has no proffering source and no package registered to load. [BrokeredServiceTraceListener]ServiceBroker Warning: 2 : [BrokeredServiceTraceListener]Request for proxy to "helloServiceHubDotNetHost (0.1)" is declined: ServiceFactoryNotProffered. [BrokeredServiceTraceListener]ServiceBroker Stop: 0 : [BrokeredServiceTraceListener]Requesting proxy to "helloServiceHubDotNetHost (0.1)" [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": 1, "processArchitecture": 1, "runtime": 2, "runtimeVersion": "7.0.8" } } ] } [BrokeredServiceTraceListener]ServiceBroker Information: 6 : [BrokeredServiceTraceListener]Received request "2" for method "handshake". [LanguageServerHost][05:39:59.236][Start]textDocument/diagnostic [LanguageServerHost]PublicDocumentPullDiagnosticsHandler(category: ) started getting diagnostics [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", "clientUICulture": "en" } ] } [BrokeredServiceTraceListener]ServiceBroker Information: 6 : [BrokeredServiceTraceListener]Received request "3" for method "requestServiceChannel". [LanguageServerHost]previousResults.Length=0 [LanguageServerHost]Processing 1 documents [BrokeredServiceTraceListener]ServiceBroker Information: 9 : [BrokeredServiceTraceListener]Invoking Microsoft.ServiceHub.Framework.IpcRelayServiceBroker.RequestServiceChannelAsync(ServiceMoniker, ServiceActivationOptions, CancellationToken) [BrokeredServiceTraceListener]ServiceBroker Start: 0 : [BrokeredServiceTraceListener]requestServiceChannel [BrokeredServiceTraceListener]ServiceBroker Information: 0 : [BrokeredServiceTraceListener]Added local RPC method "availabilityChanged" -> _proxy_Microsoft.ServiceHub.Framework.IRemoteServiceBroker_eab23324-d0cd-42b1-8778-c566477b1dc1.OnAvailabilityChanged(BrokeredServicesChangedEventArgs) (_proxy_Microsoft.ServiceHub.Framework.IRemoteServiceBroker_eab23324-d0cd-42b1-8778-c566477b1dc1) [BrokeredServiceTraceListener]ServiceBroker Information: 3 : [BrokeredServiceTraceListener]Listening started. [BrokeredServiceTraceListener]ServiceBroker Information: 1 : [BrokeredServiceTraceListener]IRemoteServiceBroker proffered from remote source: OtherProcessOnSameMachine. [BrokeredServiceTraceListener]ServiceBroker Transfer: 0 : [BrokeredServiceTraceListener]Transfer, relatedActivityId=fe3ed2a9-c660-4779-9944-a64d5fc9bef8 [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 Information: 1 : [BrokeredServiceTraceListener]OtherProcessOnSameMachine proffered brokered service(s): helloServiceHubDotNetHost (0.1), Microsoft.CodeAnalysis.LanguageClient.SolutionSnapshotProvider (0.1), vs-intellicode-base-models (0.1), Microsoft.VisualStudio.ProjectSystem.ProjectInitializationStatusService (0.1), Microsoft.VisualStudio.Debugger.ManagedHotReloadService (0.1). [BrokeredServiceTraceListener]ServiceBroker Information: 2 : [BrokeredServiceTraceListener]Request for "helloServiceHubDotNetHost (0.1)" will be fulfilled by OtherProcessOnSameMachine [BrokeredServiceTraceListener]ServiceBroker Transfer: 0 : [BrokeredServiceTraceListener]Transfer, relatedActivityId=2c6c620d-6e50-435f-ba26-195ee27b21ec [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 Start: 0 : [BrokeredServiceTraceListener]Requesting proxy to "helloServiceHubDotNetHost (0.1)" [BrokeredServiceTraceListener]ServiceBroker Information: 2 : [BrokeredServiceTraceListener]Request for "helloServiceHubDotNetHost (0.1)" will be fulfilled by OtherProcessOnSameMachine [LanguageServerHost][05:39:59.339][Start]workspace/diagnostic [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost][05:39:59.347][Start]textDocument/documentSymbol [LanguageServerHost]PublicWorkspacePullDiagnosticsHandler(category: ) started getting diagnostics [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost][05:39:59.356][Start]textDocument/codeAction [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost][05:39:59.360][Start]textDocument/inlayHint [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost][05:39:59.365][Start]textDocument/foldingRange [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost][05:39:59.368][Start]textDocument/documentSymbol [LanguageServerHost][05:39:59.371][Start]textDocument/codeLens [LanguageServerHost]previousResults.Length=0 [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost][05:39:59.379][Start]textDocument/semanticTokens/range [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=fe3ed2a9-c660-4779-9944-a64d5fc9bef8 [BrokeredServiceTraceListener]ServiceBroker Information: 8 : [BrokeredServiceTraceListener]{"id":2,"method":"handshake"} [BrokeredServiceTraceListener]ServiceBroker Verbose: 8 : [BrokeredServiceTraceListener]Sent: { "traceparent": "00-f9dde0d2adf3da46ad7ca3b15a3e0367-e0aceaa3c1967642-01", "jsonrpc": "2.0", "id": 2, "method": "handshake", "params": [ { "supportedConnections": "Multiplexing, IpcPipe", "localServiceHost": { "operatingSystem": 1, "processArchitecture": 1, "runtime": 2, "runtimeVersion": "7.0.8" } } ] } [LanguageServerHost]Processing 0 documents [LanguageServerHost]Closing workspace/diagnostics request [LanguageServerHost]Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicWorkspacePullDiagnosticsHandler finished getting diagnostics [LanguageServerHost][05:39:59.418][End]workspace/diagnostic [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=48a89309-5580-4e93-866b-17dfa8ad54da [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". [LanguageServerHost][05:39:59.496][End]textDocument/inlayHint [BrokeredServiceTraceListener]ServiceBroker Information: 8 : [BrokeredServiceTraceListener]{"id":3,"method":"requestServiceChannel"} [BrokeredServiceTraceListener]ServiceBroker Verbose: 8 : [BrokeredServiceTraceListener]Sent: { "traceparent": "00-f9dde0d2adf3da46ad7ca3b15a3e0367-d40eab129fc6e544-01", "jsonrpc": "2.0", "id": 3, "method": "requestServiceChannel", "params": [ { "name": "helloServiceHubDotNetHost", "version": "0.1" }, { "clientCredentials": {}, "clientCulture": "", "clientUICulture": "" } ] } [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": "4e3545f5-775e-40c1-8281-3a67789af40f", "pipeName": "/tmp/b9303785350349659ee704d4caefe039", "isEmpty": false } } [BrokeredServiceTraceListener]ServiceBroker Information: 7 : [BrokeredServiceTraceListener]{"id":3} [BrokeredServiceTraceListener]ServiceBroker Verbose: 7 : [BrokeredServiceTraceListener]Received: { "jsonrpc": "2.0", "id": 3, "result": { "requestId": "18ea1593-2605-4785-a034-d9c482e37803", "multiplexingChannelId": 3, "isEmpty": false } } [BrokeredServiceTraceListener]ServiceBroker Information: 11 : [BrokeredServiceTraceListener]Received result for request "3". [BrokeredServiceTraceListener]ServiceBroker Information: 2 : [BrokeredServiceTraceListener]Request for proxy to "helloServiceHubDotNetHost (0.1)" is Fulfilled by OtherProcessOnSameMachine: NoExplanation. [BrokeredServiceTraceListener]ServiceBroker Stop: 0 : [BrokeredServiceTraceListener]Requesting proxy to "helloServiceHubDotNetHost (0.1)" [Microsoft.CodeAnalysis.LanguageServer.BrokeredServices.Services.HelloWorld.RemoteHelloWorldProvider]Response from remote: Hello, C#! - with love from ServiceHub running on .NET [Microsoft.CodeAnalysis.LanguageServer.BrokeredServices.Services.BrokeredServiceBridgeManifest.BrokeredServiceBridgeManifest]Proffered services: Microsoft.VisualStudio.LanguageServices.WorkspaceProjectFactoryService,Microsoft.CodeAnalysis.LanguageServer.IHelloWorld (0.1) [LanguageServerHost][05:39:59.576][End]serviceBroker/connect [LanguageServerHost]Found 0 diagnostics for DocumentDiagnosticSource: confidential/path/file.cs in Miscellaneous Files [LanguageServerHost]Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicDocumentPullDiagnosticsHandler finished getting diagnostics [LanguageServerHost][05:39:59.852][End]textDocument/diagnostic [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost][05:39:59.894][Start]textDocument/codeAction [LanguageServerHost][05:40:00.188][End]textDocument/codeLens [LanguageServerHost][05:40:00.407][End]textDocument/foldingRange [LanguageServerHost]textDocument/codeAction - Canceled [LanguageServerHost][05:40:00.529][End]textDocument/codeAction [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost][05:40:00.551][Start]textDocument/semanticTokens/range [LanguageServerHost][05:40:00.659][End]textDocument/codeAction [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost][05:40:00.846][Start]textDocument/inlayHint [LanguageServerHost][05:40:00.848][End]textDocument/inlayHint [LanguageServerHost][05:40:00.963][End]textDocument/documentSymbol [LanguageServerHost][05:40:00.978][End]textDocument/documentSymbol [LanguageServerHost][05:40:01.224][End]textDocument/semanticTokens/range [LanguageServerHost][05:40:01.229][End]textDocument/semanticTokens/range [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost][05:40:01.301][Start]textDocument/semanticTokens/range [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost][05:40:01.303][Start]textDocument/inlayHint [LanguageServerHost][05:40:01.304][End]textDocument/inlayHint [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost][05:40:01.315][Start]textDocument/diagnostic [LanguageServerHost]PublicDocumentPullDiagnosticsHandler(category: ) started getting diagnostics [LanguageServerHost]previousResults.Length=1 [LanguageServerHost][05:40:01.321][End]textDocument/semanticTokens/range [LanguageServerHost]Processing 1 documents [LanguageServerHost]Diagnostics were unchanged for DocumentDiagnosticSource: confidential/path/file.cs in Miscellaneous Files [LanguageServerHost]Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicDocumentPullDiagnosticsHandler finished getting diagnostics [LanguageServerHost][05:40:01.331][End]textDocument/diagnostic [LanguageServerHost][05:40:01.423][Start]workspace/diagnostic [LanguageServerHost]PublicWorkspacePullDiagnosticsHandler(category: ) started getting diagnostics [LanguageServerHost]previousResults.Length=0 [LanguageServerHost]Processing 0 documents [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost][05:40:01.479][Start]textDocument/definition [LanguageServerHost][05:40:01.502][End]textDocument/definition [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost][05:40:01.571][Start]codeLens/resolve [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost][05:40:01.622][Start]textDocument/hover [LanguageServerHost][05:40:01.656][End]textDocument/hover [BrokeredServiceTraceListener]ServiceBroker Information: 7 : [BrokeredServiceTraceListener]{"id":4,"method":"requestServiceChannel"} [BrokeredServiceTraceListener]ServiceBroker Verbose: 7 : [BrokeredServiceTraceListener]Received: { "traceparent": "00-c0f9ce0c7138c94b9a1b99479d5914f7-fbc419677a40ce48-00", "jsonrpc": "2.0", "id": 4, "method": "requestServiceChannel", "params": [ { "name": "Microsoft.VisualStudio.LanguageServices.WorkspaceProjectFactoryService" }, { "clientCredentials": {}, "clientCulture": "en", "clientUICulture": "en" } ] } [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=61c34741-ec59-4b59-9f32-4c5239aec9e3 [BrokeredServiceTraceListener]ServiceBroker Start: 0 : [BrokeredServiceTraceListener]requestServiceChannel [BrokeredServiceTraceListener]ServiceBroker Transfer: 0 : [BrokeredServiceTraceListener]Transfer, relatedActivityId=ef51f06c-d611-47d2-af9f-24a70ddfbd56 [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=5739393a-6971-42c9-b369-cba5260f7edd [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=ef51f06c-d611-47d2-af9f-24a70ddfbd56 [BrokeredServiceTraceListener]ServiceBroker Transfer: 0 : [BrokeredServiceTraceListener]Transfer, relatedActivityId=dc411efe-32f1-472e-9787-2e43be1983a4 [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":4,"method":"requestServiceChannel"} [BrokeredServiceTraceListener]ServiceBroker Verbose: 8 : [BrokeredServiceTraceListener]Sent: { "traceparent": "00-fe1e41dcf1322e4797872e43be1983a4-20abdc737b049f43-01", "jsonrpc": "2.0", "id": 4, "method": "requestServiceChannel", "params": [ { "name": "Microsoft.VisualStudio.ProjectSystem.ProjectInitializationStatusService", "version": "0.1" }, { "clientCredentials": {}, "clientCulture": "", "clientUICulture": "" } ] } [BrokeredServiceTraceListener]ServiceBroker Information: 7 : [BrokeredServiceTraceListener]{"id":4} [BrokeredServiceTraceListener]ServiceBroker Verbose: 7 : [BrokeredServiceTraceListener]Received: { "jsonrpc": "2.0", "id": 4, "result": { "requestId": "7e3227e2-d95a-4adf-ba37-d926373a911a", "multiplexingChannelId": 5, "isEmpty": false } } [BrokeredServiceTraceListener]ServiceBroker Information: 11 : [BrokeredServiceTraceListener]Received result for request "4". [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=ef51f06c-d611-47d2-af9f-24a70ddfbd56 [LanguageServerHost][05:40:01.912][End]codeLens/resolve [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=61c34741-ec59-4b59-9f32-4c5239aec9e3 [BrokeredServiceTraceListener]ServiceBroker Stop: 0 : [BrokeredServiceTraceListener]requestServiceChannel [BrokeredServiceTraceListener]ServiceBroker Transfer: 0 : [BrokeredServiceTraceListener]Transfer, relatedActivityId=0ccef9c0-3871-4bc9-9a1b-99479d5914f7 [BrokeredServiceTraceListener]ServiceBroker Information: 8 : [BrokeredServiceTraceListener]{"id":4} [BrokeredServiceTraceListener]ServiceBroker Verbose: 8 : [BrokeredServiceTraceListener]Sent: { "jsonrpc": "2.0", "id": 4, "result": { "requestId": "07f7f2cb-801b-4310-bd95-f9255b49e397", "pipeName": "/tmp/18babe37468c48ca98b1da05d67be51a", "isEmpty": false } } [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost][05:40:02.203][Start]textDocument/hover [LanguageServerHost][05:40:02.206][End]textDocument/hover [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost][05:40:02.299][Start]textDocument/documentHighlight [LanguageServerHost][05:40:02.363][End]textDocument/documentHighlight [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost][05:40:02.409][Start]textDocument/definition [LanguageServerHost][05:40:02.411][End]textDocument/definition [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost][05:40:02.550][Start]textDocument/codeAction [LanguageServerHost]Closing workspace/diagnostics request [LanguageServerHost]Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicWorkspacePullDiagnosticsHandler finished getting diagnostics [LanguageServerHost][05:40:02.634][End]textDocument/codeAction [LanguageServerHost][05:40:02.637][End]workspace/diagnostic [LanguageServerHost][05:40:02.770][Start]workspace/didChangeWatchedFiles [LanguageServerHost][05:40:02.773][End]workspace/didChangeWatchedFiles [LanguageServerHost]confidential/path/file.cs found in workspace MiscellaneousFiles [LanguageServerHost][05:40:03.160][Start]textDocument/codeLens [LanguageServerHost][05:40:03.163][End]textDocument/codeLens [Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.ProjectInitializationHandler]Devkit project initialization completed [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:04.288][Start]codeLens/resolve [LanguageServerHost]Requested syntax version 2023-06-28T05:39:59.2561292Z-10005-0 does not match current version 2023-06-28T05:40:04.2732107Z-10222-0 [LanguageServerHost][05:40:04.290][End]codeLens/resolve [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:04.552][Start]textDocument/diagnostic [LanguageServerHost]PublicDocumentPullDiagnosticsHandler(category: ) started getting diagnostics [LanguageServerHost]previousResults.Length=1 [LanguageServerHost]Processing 1 documents [LanguageServerHost][05:40:04.639][Start]workspace/diagnostic [LanguageServerHost]PublicWorkspacePullDiagnosticsHandler(category: ) started getting diagnostics [LanguageServerHost]previousResults.Length=0 [LanguageServerHost]Processing 0 documents [LanguageServerHost]Closing workspace/diagnostics request [LanguageServerHost]Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicWorkspacePullDiagnosticsHandler finished getting diagnostics [LanguageServerHost][05:40:04.647][End]workspace/diagnostic [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:05.301][Start]textDocument/codeLens [LanguageServerHost][05:40:05.302][End]textDocument/codeLens [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:05.873][Start]codeLens/resolve [LanguageServerHost][05:40:06.127][End]codeLens/resolve [LanguageServerHost]Found 15 diagnostics for DocumentDiagnosticSource: confidential/path/file.cs in PublishingService [LanguageServerHost]Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicDocumentPullDiagnosticsHandler finished getting diagnostics [LanguageServerHost][05:40:06.285][End]textDocument/diagnostic [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:06.562][Start]textDocument/codeAction [LanguageServerHost][05:40:06.647][End]textDocument/codeAction [LanguageServerHost][05:40:06.650][Start]workspace/diagnostic [LanguageServerHost]PublicWorkspacePullDiagnosticsHandler(category: ) started getting diagnostics [LanguageServerHost]previousResults.Length=0 [LanguageServerHost]Processing 0 documents [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:16.136][Start]textDocument/definition [LanguageServerHost][05:40:16.136][End]textDocument/definition [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:16.290][Start]textDocument/hover [LanguageServerHost][05:40:16.291][End]textDocument/hover [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:16.779][Start]textDocument/definition [LanguageServerHost][05:40:16.779][End]textDocument/definition [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:16.946][Start]textDocument/codeAction [LanguageServerHost][05:40:16.959][End]textDocument/codeAction [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:17.145][Start]textDocument/codeLens [LanguageServerHost][05:40:17.146][End]textDocument/codeLens [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:17.252][Start]textDocument/hover [LanguageServerHost][05:40:17.253][End]textDocument/hover [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:17.580][Start]codeLens/resolve [LanguageServerHost][05:40:17.584][End]codeLens/resolve [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:17.684][Start]textDocument/definition [LanguageServerHost][05:40:17.707][End]textDocument/definition [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:17.900][Start]textDocument/hover [LanguageServerHost][05:40:17.960][End]textDocument/hover [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:18.107][Start]textDocument/documentHighlight [LanguageServerHost][05:40:18.160][End]textDocument/documentHighlight [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:18.173][Start]textDocument/definition [LanguageServerHost][05:40:18.175][End]textDocument/definition [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:18.301][Start]textDocument/codeAction [LanguageServerHost][05:40:18.301][Start]textDocument/inlayHint [LanguageServerHost][05:40:18.302][End]textDocument/inlayHint [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:18.358][Start]textDocument/codeAction [LanguageServerHost][05:40:18.362][End]textDocument/codeAction [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:18.405][Start]textDocument/inlayHint [LanguageServerHost][05:40:18.405][End]textDocument/inlayHint [LanguageServerHost][05:40:18.484][End]textDocument/codeAction [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:18.535][Start]textDocument/codeLens [LanguageServerHost][05:40:18.536][End]textDocument/codeLens [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:18.563][Start]textDocument/documentSymbol [LanguageServerHost][05:40:18.565][End]textDocument/documentSymbol [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:18.697][Start]textDocument/semanticTokens/range [LanguageServerHost][05:40:18.716][End]textDocument/semanticTokens/range [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:18.766][Start]textDocument/semanticTokens/range [LanguageServerHost][05:40:18.772][End]textDocument/semanticTokens/range [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:18.823][Start]codeLens/resolve [LanguageServerHost][05:40:18.823][Start]codeLens/resolve [LanguageServerHost][05:40:18.863][End]codeLens/resolve [LanguageServerHost]codeLens/resolve - Canceled [LanguageServerHost][05:40:18.910][End]codeLens/resolve [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:19.004][Start]textDocument/inlayHint [LanguageServerHost][05:40:19.005][End]textDocument/inlayHint [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:19.371][Start]textDocument/semanticTokens/range [LanguageServerHost][05:40:19.387][End]textDocument/semanticTokens/range [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:19.451][Start]textDocument/definition [LanguageServerHost][05:40:19.452][End]textDocument/definition [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:19.606][Start]textDocument/hover [LanguageServerHost][05:40:19.607][End]textDocument/hover [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:19.653][Start]textDocument/documentHighlight [LanguageServerHost][05:40:19.654][End]textDocument/documentHighlight [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:19.734][Start]textDocument/definition [LanguageServerHost][05:40:19.735][End]textDocument/definition [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:19.886][Start]textDocument/codeAction [LanguageServerHost][05:40:19.888][End]textDocument/codeAction [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:46.216][Start]textDocument/diagnostic [LanguageServerHost]PublicDocumentPullDiagnosticsHandler(category: ) started getting diagnostics [LanguageServerHost]previousResults.Length=1 [LanguageServerHost]Processing 1 documents [LanguageServerHost]Diagnostics were unchanged for DocumentDiagnosticSource: confidential/path/file.cs in PublishingService [LanguageServerHost]Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicDocumentPullDiagnosticsHandler finished getting diagnostics [LanguageServerHost][05:40:46.217][End]textDocument/diagnostic [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:53.664][Start]textDocument/codeLens [LanguageServerHost][05:40:53.664][End]textDocument/codeLens [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:40:54.028][Start]textDocument/diagnostic [LanguageServerHost]PublicDocumentPullDiagnosticsHandler(category: ) started getting diagnostics [LanguageServerHost]previousResults.Length=1 [LanguageServerHost]Processing 1 documents [LanguageServerHost]Diagnostics were unchanged for DocumentDiagnosticSource: confidential/path/file.cs in PublishingService [LanguageServerHost]Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicDocumentPullDiagnosticsHandler finished getting diagnostics [LanguageServerHost][05:40:54.029][End]textDocument/diagnostic [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:42:35.798][Start]textDocument/codeAction [LanguageServerHost][05:42:35.831][End]textDocument/codeAction [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:42:35.836][Start]textDocument/inlayHint [LanguageServerHost][05:42:35.836][End]textDocument/inlayHint [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:42:35.954][Start]textDocument/codeAction [LanguageServerHost][05:42:35.957][End]textDocument/codeAction [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:42:35.962][Start]textDocument/codeLens [LanguageServerHost][05:42:35.963][End]textDocument/codeLens [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:42:36.016][Start]textDocument/documentSymbol [LanguageServerHost][05:42:36.018][End]textDocument/documentSymbol [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:42:36.254][Start]textDocument/semanticTokens/range [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:42:36.254][Start]codeLens/resolve [LanguageServerHost][05:42:36.257][End]codeLens/resolve [LanguageServerHost][05:42:36.267][End]textDocument/semanticTokens/range [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:42:36.756][Start]textDocument/diagnostic [LanguageServerHost]PublicDocumentPullDiagnosticsHandler(category: ) started getting diagnostics [LanguageServerHost]previousResults.Length=1 [LanguageServerHost]Processing 1 documents [LanguageServerHost]Diagnostics were unchanged for DocumentDiagnosticSource: confidential/path/file.cs in PublishingService [LanguageServerHost]Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicDocumentPullDiagnosticsHandler finished getting diagnostics [LanguageServerHost][05:42:36.757][End]textDocument/diagnostic [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:42:38.066][Start]textDocument/codeAction [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:42:38.067][Start]textDocument/inlayHint [LanguageServerHost][05:42:38.067][End]textDocument/inlayHint [LanguageServerHost][05:42:38.078][End]textDocument/codeAction [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:42:38.182][Start]textDocument/semanticTokens/range [LanguageServerHost][05:42:38.192][End]textDocument/semanticTokens/range [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:42:38.248][Start]textDocument/codeAction [LanguageServerHost][05:42:38.254][End]textDocument/codeAction [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:42:38.255][Start]textDocument/codeLens [LanguageServerHost][05:42:38.255][End]textDocument/codeLens [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:42:38.307][Start]textDocument/documentSymbol [LanguageServerHost][05:42:38.309][End]textDocument/documentSymbol [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:42:38.526][Start]codeLens/resolve [LanguageServerHost][05:42:38.529][End]codeLens/resolve [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:42:39.299][Start]textDocument/foldingRange [LanguageServerHost][05:42:39.304][End]textDocument/foldingRange [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:56:58.806][Start]textDocument/codeLens [LanguageServerHost][05:56:58.806][End]textDocument/codeLens [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:56:59.067][Start]codeLens/resolve [LanguageServerHost][05:56:59.069][End]codeLens/resolve [LanguageServerHost]confidential/path/file.cs found in workspace Host [LanguageServerHost][05:56:59.635][Start]textDocument/diagnostic [LanguageServerHost]PublicDocumentPullDiagnosticsHandler(category: ) started getting diagnostics [LanguageServerHost]previousResults.Length=1 [LanguageServerHost]Processing 1 documents [LanguageServerHost]Diagnostics were unchanged for DocumentDiagnosticSource: confidential/path/file.cs in PublishingService [LanguageServerHost]Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicDocumentPullDiagnosticsHandler finished getting diagnostics [LanguageServerHost][05:56:59.636][End]textDocument/diagnostic

dibarbet commented 1 year ago

I tried the restart language server command after the problem occurred, but it only seemed to make the problem worse.

Yeah unfortunately currently restarting the language server (if you have devkit installed) won't help, it will only make the problem worse. That's a bug I need to work through. Typically a reload window will function better, but I think in the remote case it'll only reload the client window and you probably need to restart the server side instance (as you mentioned). I'll investigate.

I have between 10 and 15 solutions in my workspace, and using the open solution command to switch between them also seems to make the problem worse.

That is good information - thanks. In general that scenario should work, but that gives me a couple clues. This shouldn't trigger the error case in your logs (where the server restarted), but it's possible there is an error during the solution open that is causing it to restart.

I had some more logs involving other solutions, but I was not sure how to redact the confidential information in them, so I posted as much of the logs as I could verify did not contain confidential information.

If you encounter this again, and can share logs immediately above / near the lines indicating the server has restarted, that would be extremely useful. Basically the logs right before

[LanguageServerHost]Shutting down
[Info - 10.09.06] Shutting down
Dotnet path: c:\Users\Administrator\.vscode-server\data\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\7.0.8\dotnet.exe
Activating C# + C# Dev Kit + C# IntelliCode... 

which might help tell us why it is shutting down.

dibarbet commented 1 year ago

This is happening always here:

  • We have project running in docker devcontainer
  • Initial create the container, install the extensions - everything works
  • Rebuild the solution
  • c# extension features stops working. No highlight in most areas, cannot go to references so on.
  • .NET Restart LSP doesn't help
  • Reload window deosn't help

Thanks - this scenario is also helpful. Seems like a potentially similar issue with the extension in vscode-server. I'll get back to you when I've done some more digging.

dibarbet commented 1 year ago

This seems to be a project system issue - after some amount of reloading / rebuilding, the project system no longer passes metadata references to us. See my comment here for details https://github.com/dotnet/vscode-csharp/issues/5853#issuecomment-1613587381

I have a repo that shows the issue (can't upload it to github for some reason right now), so ping me and I'll send it.

lukedays commented 1 year ago

Hi, I'm facing exactly the same issue. After a fresh install of C# + C# Dev Kit, intellisense/go to definition works. But after a full rebuild of the project, it stops working. Uninstalling C# Dev Kit makes it working again. Let me know what additional info I can provide to help solving the issue.

C# Dev Kit Extension version: 0.2.99 C# Extension version: 2.0.248

VS Code version: Code 1.79.1 (4cb974a7aed77a74c7813bdccd99ee0d04901215, 2023-06-12T16:14:05.102Z)

OS version: Windows_NT x64 10.0.19044

Modes:

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 1805)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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)|31.74GB (11.73GB free)| |Process Argv|--crash-reporter-id e7047775-f488-49db-8379-55cbe3ea5c6f| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492:30256859 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931:30280409 vshan820:30294714 vstes263cf:30335440 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 py29gd2263:30776702 vscaac:30438847 vsclangdc:30486549 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 282f8724:30602487 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 2i9eh265:30646982 showlangstatbar:30737416 vsctsb:30748421 pythonms35:30701012 03d35959:30757346 pythonfmttext:30731395 pythoncmvfstrcf:30756944 fixshowwlkth:30771522 pythongtdpath:30769146 i26e3531:30780429 pythonnosmt12:30779714 pythonidxpt:30772539 pythonnoceb:30776495 cmakesidepanelv2:30779593 ```
dibarbet commented 1 year ago

In https://github.com/dotnet/vscode-csharp/issues/5849#issuecomment-1614294170 it was mentioned that deleting the obj and bin directories and then re-opening the solution appeared to workaround the problem.

I confirmed this on my local repro as well - with the folder closed I deleted obj/ and bin/, re-opened the solution and it was back to working.
And like the others mentioned, to get it into a broken state I just had to trigger a rebuild on the project, then reload the window.

SheedGuy commented 1 year ago

I am experiencing the same issue. When I open us VSCode and my current workspace reopens, I can see the semantic coloring working correctly for about half a second, then it disappears and I get this issue in my "Projects" output:

"2023-07-02 16:06:48.768 [info] Could not execute because the specified command or file was not found. Possible reasons for this include:

2023-07-02 16:06:50.756 [info] Project system initialization finished. 0 project(s) are loaded, and 1 failed to load."

@dibarbet you mentioned above that this seems to be a Project System Issue and I am inclined to agree. I tried the "reload window" command and I get the same result, the semantic coloring is there for about half a second, then disappears and I get the error from above.

I just tried closing everything, deleting the bin and obj directories, then restarting, but have essentially had the same issue. This time I got the error mentioned above before even opening one of the files. When I opened Program.cs I immediately saw the semantic coloring, only for it to disappear again about half a second later. Almost seems like something is blocking it from working properly.

I would love to help out and test things if need be, but I am currently a student and this is my first github issue so I am not entirely familiar with the ins and outs of how to be helpful here. I am more than happy to provide any details or try things that might help find a conclusion, just let me know what needs to be done. In any case, I will be tinkering trying to figure out how to get it to work while keeping a close eye on this thread.

mkvlrn commented 1 year ago

Was working fine for 2 days straight and then it just won't work anymore. Deleting bin/obj, cleaning, rebuilding, reloading language server, reloading window, restarting: NOTHING works.

I thought at first it had something to do with working in a project inside a WSL environment, but I cloned it in Windows and it's the same.

tmeschter commented 1 year ago

@dibarbet Is the fundamental issue here that the Language Service is reloading? The Project System doesn't handle that right now--it won't notice that the LS has gone away, and it has no ability to resend the complete state the LS needs. There is a design for how to address this, but we haven't focused on implementing that yet on the assumption that LS reloads are both rare and the result of a bug in the LS.

Or is the fundamental issue some other problem that occurs even if the LS only loads once and stays up?

dibarbet commented 1 year ago

@tmeschter the language server restarting is a separate issue. In this case we get no metadata references when you first start up (without a reload).

tmeschter commented 1 year ago

@dibarbet Ah, ok. I just realized this was copied from https://github.com/dotnet/vscode-csharp/issues/5853.

tmeschter commented 1 year ago

Fixed in version 0.3.2.

jesperkristensen commented 1 year ago

I tried installing the 0.3.2 preview but I still see the issue. I have made an updated description in #256.

ekaradzha-qb commented 1 year ago

+1 Same

vunder commented 1 year ago

I had the same after updating to It is working, but unstable After updating to 0.3.2 preview (even restarting VSCode) there was no highlight. After selecting "solution to open" - it was working. However, restarting VSCode - it may or may not work

ekaradzha-qb commented 1 year ago

I also start getting an error: An error occurred while installing .NET: The "file" argument must be of type string. Received an instance of Object, but this maybe be different plugin.

vunder commented 1 year ago

I've discovered that the issue is fixed in general but could appear in an unusual way I'm using v0.3.18. After starting VSCode, is may happen that the highlight is not working: right after start highlight present, after loading extensions - it disappears. But switching to another tab or reopening file - highlight appears back

image image

kjq commented 1 year ago

I switched to the preview (v0.3.18) because this was driving me nuts. It "seems" the tab approach above helps at least for now but its been two days of it works/it doesnt work so we will see.

...And it stopped working again. Switching tabs, the usually resetting, nothing works.

pinkli commented 10 months ago

disable the C# Dev Kit extension solved my issue.

ajwells128 commented 6 months ago

For the record I'm still getting this issue (devkit v1.3.10). I have to reload my window multiple times a day, which is frustrating.

I've also noticed a probably related issue where new files don't get picked up by the language server either: they become miscellaneous files. I created an issue about that here, but it's received no attention: https://github.com/microsoft/vscode-dotnettools/issues/897

elgendy commented 4 months ago

For the record I'm still getting this issue, the only way to get rid of it is to unfortunately uninstall C# Dev Kit extension.