dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.87k stars 675 forks source link

Can`t find References #6689

Closed MrIhor closed 7 months ago

MrIhor commented 11 months ago

Type: Bug

Issue Description

Steps to Reproduce

Expected Behavior

Actual Behavior

Logs

C# log

Using dotnet configured on PATH Dotnet path: /usr/local/share/dotnet/dotnet Activating C# + C# Dev Kit + C# IntelliCode... Starting server at /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csharp-2.10.28-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.LanguageServer.dll Server arguments /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csharp-2.10.28-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.LanguageServer.dll --logLevel Trace --starredCompletionComponentPath /Users/ihormolchan/.vscode/extensions/ms-dotnettools.vscodeintellicode-csharp-0.1.26-darwin-arm64/components/starred-suggestions/node_modules/@vsintellicode/starred-suggestions-csharp --sharedDependencies /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csdevkit-1.0.14-darwin-arm64/components/vs-green-server/platforms/darwin-arm64/node_modules/@microsoft/visualstudio-server-shared.darwin-arm64 --extension /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csdevkit-1.0.14-darwin-arm64/components/roslyn-visualstudio-languageservices-devkit/node_modules/@microsoft/visualstudio-languageservices-devkit/Microsoft.VisualStudio.LanguageServices.DevKit.dll --sessionId 07444c95-bc19-4504-9d42-af2e470c9e741700569691474 --telemetryLevel all --extensionLogDirectory /Users/ihormolchan/Library/Application Support/Code/logs/20231121T135011/window2/exthost/ms-dotnettools.csharp waiting for named pipe information from server... [stdout] trce: Program[0] .NET Runtime Version: .NET 7.0.14 [stdout] dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csharp-2.10.28-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csharp-2.10.28-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.Mvc.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csharp-2.10.28-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Remote.Workspaces.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csharp-2.10.28-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.CSharp.Workspaces.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csharp-2.10.28-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.Mvc.Version2_X.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csharp-2.10.28-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.CSharp.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csharp-2.10.28-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csharp-2.10.28-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.Language.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csharp-2.10.28-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Scripting.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csharp-2.10.28-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.Mvc.Version1_X.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csharp-2.10.28-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Workspaces.MSBuild.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csharp-2.10.28-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Elfie.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csharp-2.10.28-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csharp-2.10.28-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.CSharp.Features.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csharp-2.10.28-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Workspaces.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csharp-2.10.28-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.CSharp.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csharp-2.10.28-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.AnalyzerUtilities.dll added to workspace. dbug: LanguageServerWorkspaceFactory[0] Solution-level analyzer at /Users/ihormolchan/.vscode/extensions/ms-dotnettools.csharp-2.10.28-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.Features.dll added to workspace. [stdout] {"pipeName":"/var/folders/2q/rbjljz056h52q_1ff1x5_vg00000gn/T/972618c3.sock"} received named pipe information from server attempting to connect client to server... client has connected to server [Info - 14:28:14] [Program] Language server initialized [LanguageServerHost] [12:28:14.080][Start]initialize [LanguageServerHost] [12:28:14.080][Start]Initialize [LanguageServerHost] [12:28:14.126][End]Initialize [LanguageServerHost] [12:28:14.139][End]initialize [LanguageServerHost] [12:28:14.147][Start]initialized [LanguageServerHost] [12:28:14.199][End]initialized [LanguageServerHost] [12:28:14.208][Start]workspace/diagnostic [LanguageServerHost] PublicWorkspacePullDiagnosticsHandler(category: , source: ) started getting diagnostics [LanguageServerHost] previousResults.Length=0 [LanguageServerHost] Processing 0 documents [LanguageServerHost] [12:28:14.250][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. [BrokeredServiceTraceListener] ServiceBroker Information: 1 : [BrokeredServiceTraceListener] SameProcess proffered brokered service(s): Microsoft.VisualStudio.Server.IBrokeredServiceBridgeManifest (0.1), Microsoft.VisualStudio.LanguageServices.WorkspaceProjectFactoryService, Microsoft.CodeAnalysis.LanguageServer.ManagedHotReloadLanguageService (0.1). [Microsoft.CodeAnalysis.LanguageServer.BrokeredServices.BrokeredServiceBridgeProvider] Setting up brokered service bridge [LanguageServerHost] [12:28:14.271][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: 0 : [BrokeredServiceTraceListener] Added local RPC method "availabilityChanged" -> _proxy_Microsoft.ServiceHub.Framework.IRemoteServiceBroker_f21e2752-f51f-4e4a-b4fe-5fee35473bcc.OnAvailabilityChanged(BrokeredServicesChangedEventArgs) (_proxy_Microsoft.ServiceHub.Framework.IRemoteServiceBroker_f21e2752-f51f-4e4a-b4fe-5fee35473bcc) [BrokeredServiceTraceListener] ServiceBroker Information: 1 : [BrokeredServiceTraceListener] IRemoteServiceBroker proffered from remote source: OtherProcessOnSameMachine. [BrokeredServiceTraceListener] ServiceBroker Information: 1 : [BrokeredServiceTraceListener] OtherProcessOnSameMachine proffered brokered service(s): Microsoft.CodeAnalysis.LanguageClient.SolutionSnapshotProvider (0.1), Microsoft.VisualStudio.ProjectSystem.ProjectInitializationStatusService (0.1), Microsoft.VisualStudio.Debugger.ManagedHotReloadService (0.1), vs-intellicode-base-models (0.1). [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":2,"processArchitecture":3,"runtime":2,"runtimeVersion":"7.0.14"}}]} [BrokeredServiceTraceListener] ServiceBroker Information: 6 : [BrokeredServiceTraceListener] Received request "2" for method "handshake". [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-GB","clientUICulture":"en-GB"}]} [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=fb7ffc5c-fb1b-4edb-9e2b-b170dee539f9 [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=a74f1ec9-18a5-4f36-9928-d984ca1008ae [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=fb7ffc5c-fb1b-4edb-9e2b-b170dee539f9 [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=5b6395fb-394e-4a27-a54b-8d3237ccd594 [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":"8e1d9595-bc84-4a0a-aaf4-78d5bd3b1813","pipeName":"/var/folders/2q/rbjljz056h52q_1ff1x5_vg00000gn/T/374adc5bb27642b5b19d6b26250e286a"}} [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-GB","clientUICulture":"en-GB"}],"traceparent":"00-b9c06adb559b9b4ea6925a1fe95fe64d-3584a3d161389443-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=f51f02ba-b934-4cd5-ac17-eff3999bd773 [BrokeredServiceTraceListener] ServiceBroker Start: 0 : [BrokeredServiceTraceListener] requestServiceChannel [BrokeredServiceTraceListener] ServiceBroker Transfer: 0 : [BrokeredServiceTraceListener] Transfer, relatedActivityId=66c7a253-0aed-4d25-bc05-b3eeda7ecc94 [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=4bda97b5-eee9-48a9-b457-77fe64f18b1e [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=66c7a253-0aed-4d25-bc05-b3eeda7ecc94 [BrokeredServiceTraceListener] ServiceBroker Transfer: 0 : [BrokeredServiceTraceListener] Transfer, relatedActivityId=b37da830-8d72-4c60-8e36-b1be74cc5640 [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":2,"processArchitecture":3,"runtime":2,"runtimeVersion":"7.0.14"}}],"traceparent":"00-30a87db3728d604c8e36b1be74cc5640-5faaffae56a81744-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-GB","clientUICulture":"en-GB"}],"traceparent":"00-30a87db3728d604c8e36b1be74cc5640-e022a8a7df3b464e-01"} [BrokeredServiceTraceListener] ServiceBroker Information: 7 : [BrokeredServiceTraceListener] {"id":3} [BrokeredServiceTraceListener] ServiceBroker Verbose: 7 : [BrokeredServiceTraceListener] Received: {"jsonrpc":"2.0","id":3,"result":{"requestId":"892fd4dd-daf9-4b44-9bf2-16ccc928d43c","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=66c7a253-0aed-4d25-bc05-b3eeda7ecc94 [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=f51f02ba-b934-4cd5-ac17-eff3999bd773 [BrokeredServiceTraceListener] ServiceBroker Stop: 0 : [BrokeredServiceTraceListener] requestServiceChannel [BrokeredServiceTraceListener] ServiceBroker Transfer: 0 : [BrokeredServiceTraceListener] Transfer, relatedActivityId=db6ac0b9-9b55-4e9b-a692-5a1fe95fe64d [BrokeredServiceTraceListener] ServiceBroker Information: 8 : [BrokeredServiceTraceListener] {"id":4} [BrokeredServiceTraceListener] ServiceBroker Verbose: 8 : [BrokeredServiceTraceListener] Sent: {"jsonrpc":"2.0","id":4,"result":{"requestId":"c9070567-13bb-40c6-b152-12a9d327a73a","pipeName":"/var/folders/2q/rbjljz056h52q_1ff1x5_vg00000gn/T/a40632c12ef948e183bd088a3612dcdb"}} [Info - 14:28:16] [WorkspaceProjectFactoryService] Project /Users/ihormolchan/Desktop/ConsoleApp/ConsoleApp/ConsoleApp.csproj loaded by C# Dev Kit [LanguageServerHost] Closing workspace/diagnostics request [LanguageServerHost] Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicWorkspacePullDiagnosticsHandler finished getting diagnostics [LanguageServerHost] [12:28:16.557][End]workspace/diagnostic [Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.ProjectInitializationHandler] Devkit project initialization completed [LanguageServerHost] [12:28:18.561][Start]workspace/diagnostic [LanguageServerHost] PublicWorkspacePullDiagnosticsHandler(category: , source: ) 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] [12:28:18.564][End]workspace/diagnostic [LanguageServerHost] [12:28:20.570][Start]workspace/diagnostic [LanguageServerHost] PublicWorkspacePullDiagnosticsHandler(category: , source: ) started getting diagnostics [LanguageServerHost] previousResults.Length=0 [LanguageServerHost] Processing 0 documents [LanguageServerHost] [12:28:32.470][Start]workspace/buildOnlyDiagnosticIds [LanguageServerHost] [12:28:32.563][End]workspace/buildOnlyDiagnosticIds [LanguageServerHost] [12:28:47.252][Start]workspace/buildOnlyDiagnosticIds [LanguageServerHost] [12:28:47.255][End]workspace/buildOnlyDiagnosticIds

C# LSP Trace Logs

Post the output from Output-->C# LSP Trace Logs here. Requires `dotnet.server.trace` to be set to `Trace`

Environment information

VSCode version: 1.84.2 C# Extension: 2.10.28 Using OmniSharp: false

Dotnet Information .NET SDK: Version: 7.0.311 Commit: 3d9518d885 Runtime Environment: OS Name: Mac OS X OS Version: 14.0 OS Platform: Darwin RID: osx-arm64 Base Path: /usr/local/share/dotnet/sdk/7.0.311/ Host: Version: 8.0.0-preview.3.23174.8 Architecture: arm64 Commit: 47bad717bd .NET SDKs installed: 6.0.402 [/usr/local/share/dotnet/sdk] 6.0.406 [/usr/local/share/dotnet/sdk] 6.0.407 [/usr/local/share/dotnet/sdk] 6.0.408 [/usr/local/share/dotnet/sdk] 6.0.410 [/usr/local/share/dotnet/sdk] 6.0.412 [/usr/local/share/dotnet/sdk] 6.0.413 [/usr/local/share/dotnet/sdk] 6.0.414 [/usr/local/share/dotnet/sdk] 6.0.415 [/usr/local/share/dotnet/sdk] 6.0.417 [/usr/local/share/dotnet/sdk] 7.0.202 [/usr/local/share/dotnet/sdk] 7.0.203 [/usr/local/share/dotnet/sdk] 7.0.302 [/usr/local/share/dotnet/sdk] 7.0.304 [/usr/local/share/dotnet/sdk] 7.0.306 [/usr/local/share/dotnet/sdk] 7.0.307 [/usr/local/share/dotnet/sdk] 7.0.308 [/usr/local/share/dotnet/sdk] 7.0.309 [/usr/local/share/dotnet/sdk] 7.0.311 [/usr/local/share/dotnet/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 6.0.10 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.14 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.15 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.16 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.18 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.20 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.21 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.22 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.23 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.25 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.10 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.11 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.12 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.14 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.0-preview.2.23153.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.0-preview.3.23177.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.10 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.14 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.15 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.16 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.18 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.20 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.21 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.22 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.23 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.25 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.7 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.9 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.10 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.11 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.12 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.14 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.0-preview.2.23128.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.0-preview.3.23174.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Other architectures found: x64 [/usr/local/share/dotnet/x64] registered at [/etc/dotnet/install_location_x64] 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| |---|---|---|---| |auto-close-tag|formulahendry|0.5.14|formulahendry.auto-close-tag-0.5.14| |auto-complete-tag|formulahendry|0.1.0|formulahendry.auto-complete-tag-0.1.0| |auto-rename-tag|formulahendry|0.1.10|formulahendry.auto-rename-tag-0.1.10| |binary-plist|dnicolson|0.11.3|dnicolson.binary-plist-0.11.3| |black-formatter|ms-python|2023.6.0|ms-python.black-formatter-2023.6.0| |csdevkit|ms-dotnettools|1.0.14|ms-dotnettools.csdevkit-1.0.14-darwin-arm64| |csharp|ms-dotnettools|2.10.28|ms-dotnettools.csharp-2.10.28-darwin-arm64| |csharpextensions|kreativ-software|1.7.3|kreativ-software.csharpextensions-1.7.3| |es7-react-js-snippets|dsznajder|4.4.3|dsznajder.es7-react-js-snippets-4.4.3| |graphql|mquandalle|0.1.2|mquandalle.graphql-0.1.2| |indent-rainbow|oderwat|8.3.1|oderwat.indent-rainbow-8.3.1| |intellicode-api-usage-examples|VisualStudioExptTeam|0.2.8|visualstudioexptteam.intellicode-api-usage-examples-0.2.8| |java|redhat|1.24.0|redhat.java-1.24.0-darwin-arm64| |JavaScriptSnippets|xabikos|1.8.0|xabikos.javascriptsnippets-1.8.0| |jsx-html-tags|angelorafael|1.0.1|angelorafael.jsx-html-tags-1.0.1| |LiveServer|ritwickdey|5.7.9|ritwickdey.liveserver-5.7.9| |markdown-all-in-one|yzhang|3.5.1|yzhang.markdown-all-in-one-3.5.1| |namespace|adrianwilczynski|1.1.2|adrianwilczynski.namespace-1.1.2| |open-in-browser|techer|2.0.0|techer.open-in-browser-2.0.0| |prettier-vscode|esbenp|10.1.0|esbenp.prettier-vscode-10.1.0| |prettyxml|PrateekMahendrakar|3.7.0|prateekmahendrakar.prettyxml-3.7.0| |python|ms-python|2023.20.0|ms-python.python-2023.20.0| |ReactSnippets|xabikos|2.4.0|xabikos.reactsnippets-2.4.0| |remote-containers|ms-vscode-remote|0.321.0|ms-vscode-remote.remote-containers-0.321.0| |syntax-project-pbxproj|mariomatheu|0.1.3|mariomatheu.syntax-project-pbxproj-0.1.3| |vscode-babel-coloring|dzannotti|0.0.4|dzannotti.vscode-babel-coloring-0.0.4| |vscode-csharp-snippets|jorgeserrano|1.1.0|jorgeserrano.vscode-csharp-snippets-1.1.0| |vscode-css-formatter|aeschli|1.0.2|aeschli.vscode-css-formatter-1.0.2| |vscode-docker|ms-azuretools|1.28.0|ms-azuretools.vscode-docker-1.28.0| |vscode-dotnet-runtime|ms-dotnettools|2.0.0|ms-dotnettools.vscode-dotnet-runtime-2.0.0| |vscode-eslint|dbaeumer|2.4.2|dbaeumer.vscode-eslint-2.4.2| |vscode-extension-auto-import|NuclleaR|1.4.3|nucllear.vscode-extension-auto-import-1.4.3| |vscode-html-css|ecmel|1.13.1|ecmel.vscode-html-css-1.13.1| |vscode-icons|vscode-icons-team|12.6.0|vscode-icons-team.vscode-icons-12.6.0| |vscode-java-debug|vscjava|0.55.0|vscjava.vscode-java-debug-0.55.0| |vscode-java-dependency|vscjava|0.23.2|vscjava.vscode-java-dependency-0.23.2| |vscode-java-pack|vscjava|0.25.15|vscjava.vscode-java-pack-0.25.15| |vscode-java-test|vscjava|0.40.1|vscjava.vscode-java-test-0.40.1| |vscode-maven|vscjava|0.43.0|vscjava.vscode-maven-0.43.0| |vscode-pylance|ms-python|2023.11.10|ms-python.vscode-pylance-2023.11.10| |vscode-snazzy-operator|aaronthomas|1.1.3|aaronthomas.vscode-snazzy-operator-1.1.3| |vscode-styled-components|styled-components|1.7.8|styled-components.vscode-styled-components-1.7.8| |vscodeintellicode|VisualStudioExptTeam|1.2.30|visualstudioexptteam.vscodeintellicode-1.2.30| |vscodeintellicode-csharp|ms-dotnettools|0.1.26|ms-dotnettools.vscodeintellicode-csharp-0.1.26-darwin-arm64|;

Extension version: 2.10.28 VS Code version: Code 1.84.2 (Universal) (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:52:33.687Z) OS version: Darwin arm64 23.0.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 (8 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|2, 1, 2| |Memory (System)|8.00GB (0.02GB free)| |Process Argv|--crash-reporter-id 916582c7-18ce-4cf4-81d3-be34967b38fb| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263:30880072 vscaac:30438847 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 282f8724:30602487 f6dab269:30613381 a9j8j154:30646983 showlangstatbar:30737416 pythonfmttext:30731395 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 pythonnosmt12:30797651 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30869155 dsvsc013:30795093 dsvsc014:30804076 dsvsc015:30845448 pythontestfixt:30871694 pythonregdiag2:30871582 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 accentitlementsc:30887149 dsvsc016cf:30886111 dsvsc017:30886112 dsvsc018:30886114 aa_t_chat:30882232 ```
dibarbet commented 11 months ago

Can you provide more details on exactly what is going wrong? The logs aren't showing any specific find references errors

Octanoz commented 11 months ago

Same issue, Code Lens is enabled to show references in the settings but they are not displayed above the methods.

Right-click and Go to references / Peek references / Find all references work as expected.

Extension Version
.NET Install Tool v2.0.0
C# v2.13.10
C# Dev Kit v1.1.16
IntelliCode for C# Dev Kit v0.1.26

Correction: I do see references above methods in the code block in a Blazor project. In a console project I only see references above classes, records and structs.

michaelrp commented 10 months ago

I just opened a bug that may be the same problem?

6768

chrisonoo commented 10 months ago

I have a similar error. The problem is that the Blazor WebAssembly App project does not see references to the Class Library project. But the Console App project sees it in one solution. Interestingly, this video shows that about 2 months ago everything was working OK. Can you tell me @leslierichardson95 what versions of extension and VS Code you used when recording this video and whether the references still work correctly with the latest versions?

Extension Version
.NET Install Tool v2.0.0
C# v2.14.8
C# Dev Kit v1.1.16 & v1.2.5
IntelliCode for C# Dev Kit v0.1.26
VS Code (portable) v1.85.1

It is worth adding that when I open the same code in Visual Studio 2022, there are no problems and all references are visible.

The images show this exact project with an additional Console App project added for testing.

Shows reference with Console App Screenshot 2023-12-22 102657

Don't show reference with Blazor WebAssembly App Screenshot 2023-12-22 102712

dibarbet commented 7 months ago

Closing this issue - the original issue as filed doesn't have enough information, and it looks like the other comments may be tracked and resolved by a separate bug.

If anyone in this thread is still having issues on the latest version of the extension, please file a new issue (with the latest C# logs and repro description).