dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.88k stars 676 forks source link

C# Intellisense crashing with Unity in Code #6235

Closed unleashed7 closed 1 year ago

unleashed7 commented 1 year ago

Type: Bug

Issue Description

Quick fix for IDE0090 keeps crashing IntelliSense.

Steps to Reproduce

  1. Create new Unity project
  2. Create new C# script
  3. Open C# Project
  4. Declare a List in a way to trigger IDE0090 error ( e.g. public List strs = new List(); )
  5. Hover cursor over "List" to trigger quick fix
  6. Press Ctrl (no need for . as Ctrl aready crashes it)

Actual Behavior

  1. Crash
  2. Restarts automatically
  3. Connection to Unity (snippets, fixes, etc.) not working

Logs

20230826T193755.zip

Note: Log shortened because of character limit.

C# LSP Trace Logs

Dotnet path: C:\Program Files\dotnet\dotnet.exe
Activating C# + C# Dev Kit + C# IntelliCode...
Starting server at c:\Users\Devvie\.vscode\extensions\ms-dotnettools.csharp-2.0.413-win32-x64\.roslyn\Microsoft.CodeAnalysis.LanguageServer.exe
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at c:\Users\Devvie\.vscode\extensions\ms-dotnettools.csharp-2.0.413-win32-x64\.roslyn\Microsoft.CodeAnalysis.AnalyzerUtilities.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at c:\Users\Devvie\.vscode\extensions\ms-dotnettools.csharp-2.0.413-win32-x64\.roslyn\Microsoft.CodeAnalysis.CSharp.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at c:\Users\Devvie\.vscode\extensions\ms-dotnettools.csharp-2.0.413-win32-x64\.roslyn\Microsoft.CodeAnalysis.CSharp.Features.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at c:\Users\Devvie\.vscode\extensions\ms-dotnettools.csharp-2.0.413-win32-x64\.roslyn\Microsoft.CodeAnalysis.CSharp.Workspaces.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at c:\Users\Devvie\.vscode\extensions\ms-dotnettools.csharp-2.0.413-win32-x64\.roslyn\Microsoft.CodeAnalysis.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at c:\Users\Devvie\.vscode\extensions\ms-dotnettools.csharp-2.0.413-win32-x64\.roslyn\Microsoft.CodeAnalysis.Elfie.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at c:\Users\Devvie\.vscode\extensions\ms-dotnettools.csharp-2.0.413-win32-x64\.roslyn\Microsoft.CodeAnalysis.Features.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at c:\Users\Devvie\.vscode\extensions\ms-dotnettools.csharp-2.0.413-win32-x64\.roslyn\Microsoft.CodeAnalysis.Razor.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at c:\Users\Devvie\.vscode\extensions\ms-dotnettools.csharp-2.0.413-win32-x64\.roslyn\Microsoft.CodeAnalysis.Remote.Workspaces.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at c:\Users\Devvie\.vscode\extensions\ms-dotnettools.csharp-2.0.413-win32-x64\.roslyn\Microsoft.CodeAnalysis.Scripting.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at c:\Users\Devvie\.vscode\extensions\ms-dotnettools.csharp-2.0.413-win32-x64\.roslyn\Microsoft.CodeAnalysis.Workspaces.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at c:\Users\Devvie\.vscode\extensions\ms-dotnettools.csharp-2.0.413-win32-x64\.roslyn\Microsoft.CodeAnalysis.Workspaces.MSBuild.dll added to workspace.
[Info  - 7:38:01 PM] [Program]Language server initialized
[LanguageServerHost][06:38:01.269][Start]initialize
[LanguageServerHost][06:38:01.275][Start]Initialize
[LanguageServerHost][06:38:01.401][End]Initialize
[LanguageServerHost][06:38:01.434][End]initialize
[LanguageServerHost][06:38:01.438][Start]initialized
[LanguageServerHost][06:38:01.551][End]initialized
[LanguageServerHost][06:38:01.554][Start]serviceBroker/connect
[LanguageServerHost][06:38:01.554][Start]textDocument/didOpen
[LanguageServerHost]didOpen for file:///k:/Unity/My project (1)/Assets/NewBehaviourScript.cs
[LanguageServerHost][06:38:01.564][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:///k:/Unity/My project (1)/Assets/NewBehaviourScript.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.ManagedHotReloadLanguageService (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)
[LanguageServerHost][06:38:01.654][Start]textDocument/diagnostic
[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 : 
[LanguageServerHost]PublicDocumentPullDiagnosticsHandler(category: ) started getting diagnostics
[BrokeredServiceTraceListener]Listening started.
[BrokeredServiceTraceListener]ServiceBroker Information: 7 : 
[BrokeredServiceTraceListener]{"id":2,"method":"handshake"}
[LanguageServerHost]previousResults.Length=0
[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.10"
      }
    }
  ]
}
[BrokeredServiceTraceListener]ServiceBroker Information: 6 : 
[BrokeredServiceTraceListener]Received request "2" for method "handshake".
[LanguageServerHost]Processing 1 documents
[LanguageServerHost][06:38:01.680][Start]workspace/diagnostic
[BrokeredServiceTraceListener]ServiceBroker Information: 9 : 
[BrokeredServiceTraceListener]Invoking Microsoft.ServiceHub.Framework.IpcRelayServiceBroker.HandshakeAsync(ServiceBrokerClientMetadata, CancellationToken)
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace MiscellaneousFiles
[BrokeredServiceTraceListener]ServiceBroker Start: 0 : 
[BrokeredServiceTraceListener]handshake
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace MiscellaneousFiles
[BrokeredServiceTraceListener]ServiceBroker Stop: 0 : 
[BrokeredServiceTraceListener]handshake
[LanguageServerHost][06:38:01.682][Start]textDocument/documentSymbol
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace MiscellaneousFiles
[LanguageServerHost][06:38:01.682][Start]textDocument/inlayHint
[LanguageServerHost][06:38:01.683][Start]textDocument/codeAction
[LanguageServerHost]PublicWorkspacePullDiagnosticsHandler(category: ) started getting diagnostics
[BrokeredServiceTraceListener]ServiceBroker Information: 8 : 
[BrokeredServiceTraceListener]{"id":2}
[BrokeredServiceTraceListener]ServiceBroker Verbose: 8 : 
[BrokeredServiceTraceListener]Sent: {
  "jsonrpc": "2.0",
  "id": 2,
  "result": null
}
[LanguageServerHost]previousResults.Length=0
[BrokeredServiceTraceListener]ServiceBroker Information: 0 : 
[BrokeredServiceTraceListener]Added local RPC method "availabilityChanged" -> _proxy_Microsoft.ServiceHub.Framework.IRemoteServiceBroker_ebd08de7-a5cf-43bf-8030-16a9f9c522d4.OnAvailabilityChanged(BrokeredServicesChangedEventArgs) (_proxy_Microsoft.ServiceHub.Framework.IRemoteServiceBroker_ebd08de7-a5cf-43bf-8030-16a9f9c522d4)
[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), vs-intellicode-base-models (0.1), Microsoft.VisualStudio.Debugger.ManagedHotReloadService (0.1), helloServiceHubDotNetHost (0.1), Microsoft.VisualStudio.ProjectSystem.ProjectInitializationStatusService (0.1).
[BrokeredServiceTraceListener]ServiceBroker Information: 3 : 
[BrokeredServiceTraceListener]Listening started.
[BrokeredServiceTraceListener]ServiceBroker Information: 7 : 
[BrokeredServiceTraceListener]{"id":3,"method":"requestServiceChannel"}
[BrokeredServiceTraceListener]ServiceBroker Verbose: 7 : 
[BrokeredServiceTraceListener]Received: {
  "jsonrpc": "2.0",
  "id": 3,
  "method": "requestServiceChannel",
  "params": [
    {
      "name": "Microsoft.VisualStudio.Server.IBrokeredServiceBridgeManifest",
      "version": "0.1"
    },
    {
      "clientCulture": "en-US",
      "clientUICulture": "en-US"
    }
  ]
}
[BrokeredServiceTraceListener]ServiceBroker Information: 6 : 
[BrokeredServiceTraceListener]Received request "3" for method "requestServiceChannel".
[BrokeredServiceTraceListener]ServiceBroker Information: 2 : 
[BrokeredServiceTraceListener]Request for "helloServiceHubDotNetHost (0.1)" will be fulfilled by OtherProcessOnSameMachine
[BrokeredServiceTraceListener]ServiceBroker Start: 0 : 
[LanguageServerHost]Processing 0 documents
[BrokeredServiceTraceListener]Requesting proxy to "helloServiceHubDotNetHost (0.1)"
[BrokeredServiceTraceListener]ServiceBroker Information: 2 : 
[BrokeredServiceTraceListener]Request for "helloServiceHubDotNetHost (0.1)" will be fulfilled by OtherProcessOnSameMachine
[LanguageServerHost]Closing workspace/diagnostics request
[LanguageServerHost]Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicWorkspacePullDiagnosticsHandler finished getting diagnostics
[LanguageServerHost][06:38:01.702][End]workspace/diagnostic
[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=f1b914b0-029a-488b-a5ab-da44f7b8505e
[BrokeredServiceTraceListener]ServiceBroker Start: 0 : 
[BrokeredServiceTraceListener]Requesting pipe to "Microsoft.VisualStudio.Server.IBrokeredServiceBridgeManifest (0.1)"
[LanguageServerHost][06:38:01.707][End]textDocument/inlayHint
[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-36b9ad714baf47428df085db13e2c5a8-cd551bab2d349942-01",
  "jsonrpc": "2.0",
  "id": 2,
  "method": "handshake",
  "params": [
    {
      "supportedConnections": "Multiplexing, IpcPipe",
      "localServiceHost": {
        "operatingSystem": 0,
        "processArchitecture": 1,
        "runtime": 2,
        "runtimeVersion": "7.0.10"
      }
    }
  ]
}
[BrokeredServiceTraceListener]ServiceBroker Transfer: 0 : 
[BrokeredServiceTraceListener]Transfer, relatedActivityId=9ad895c7-792e-4979-9eae-42601dc3058d
[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: 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: 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=f1b914b0-029a-488b-a5ab-da44f7b8505e
[BrokeredServiceTraceListener]ServiceBroker Information: 8 : 
[BrokeredServiceTraceListener]{"id":3,"method":"requestServiceChannel"}
[BrokeredServiceTraceListener]ServiceBroker Verbose: 8 : 
[BrokeredServiceTraceListener]Sent: {
  "traceparent": "00-36b9ad714baf47428df085db13e2c5a8-65d4f7e26155e247-01",
  "jsonrpc": "2.0",
  "id": 3,
  "method": "requestServiceChannel",
  "params": [
    {
      "name": "helloServiceHubDotNetHost",
      "version": "0.1"
    },
    {
      "clientCredentials": {},
      "clientCulture": "en-US",
      "clientUICulture": "en-US"
    }
  ]
}
[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=a29bb97d-0cab-40a9-b09a-ea059221dbd6
[BrokeredServiceTraceListener]ServiceBroker Information: 7 : 
[BrokeredServiceTraceListener]{"id":3}
[BrokeredServiceTraceListener]ServiceBroker Verbose: 7 : 
[BrokeredServiceTraceListener]Received: {
  "jsonrpc": "2.0",
  "id": 3,
  "result": {
    "requestId": "965716ef-ef86-4796-a11e-3882c46645ac",
    "multiplexingChannelId": 3
  }
}
[BrokeredServiceTraceListener]ServiceBroker Information: 11 : 
[BrokeredServiceTraceListener]Received result for request "3".
[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": "8c36ac50-6628-4b58-bf7e-11b22d53dc51",
    "pipeName": "b4adf820f29f4c33a7199b7fbfa2bc34",
    "isEmpty": false
  }
}
[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)"
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace MiscellaneousFiles
[LanguageServerHost][06:38:01.768][Start]textDocument/foldingRange
[Microsoft.CodeAnalysis.LanguageServer.BrokeredServices.Services.HelloWorld.RemoteHelloWorldProvider]Response from remote: Hello, C#! - with love from ServiceHub running on .NET
[LanguageServerHost][06:38:01.777][End]serviceBroker/connect
[Microsoft.CodeAnalysis.LanguageServer.BrokeredServices.Services.BrokeredServiceBridgeManifest.BrokeredServiceBridgeManifest]Proffered services: Microsoft.VisualStudio.LanguageServices.WorkspaceProjectFactoryService,Microsoft.CodeAnalysis.LanguageServer.IHelloWorld (0.1),Microsoft.CodeAnalysis.LanguageServer.ManagedHotReloadLanguageService (0.1)
[LanguageServerHost]Found 0 diagnostics for DocumentDiagnosticSource: k:\Unity\My project (1)\Assets\NewBehaviourScript.cs in Miscellaneous Files
[LanguageServerHost]Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicDocumentPullDiagnosticsHandler finished getting diagnostics
[LanguageServerHost][06:38:01.801][End]textDocument/diagnostic
[LanguageServerHost][06:38:07.484][End]textDocument/foldingRange
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace MiscellaneousFiles
[LanguageServerHost][06:38:07.504][Start]textDocument/codeLens
[LanguageServerHost][06:38:07.532][End]textDocument/codeLens
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace MiscellaneousFiles
[LanguageServerHost][06:38:07.577][Start]workspace/diagnostic
[LanguageServerHost]PublicWorkspacePullDiagnosticsHandler(category: ) started getting diagnostics
[LanguageServerHost][06:38:07.578][Start]textDocument/diagnostic
[LanguageServerHost]PublicDocumentPullDiagnosticsHandler(category: ) started getting diagnostics
[LanguageServerHost]previousResults.Length=0
[LanguageServerHost]previousResults.Length=1
[LanguageServerHost]Processing 0 documents
[LanguageServerHost]Processing 1 documents
[LanguageServerHost]Diagnostics were unchanged for DocumentDiagnosticSource: k:\Unity\My project (1)\Assets\NewBehaviourScript.cs in Miscellaneous Files
[LanguageServerHost]Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicDocumentPullDiagnosticsHandler finished getting diagnostics
[LanguageServerHost][06:38:07.590][End]textDocument/diagnostic
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace MiscellaneousFiles
[LanguageServerHost][06:38:07.653][Start]textDocument/inlayHint
[LanguageServerHost][06:38:07.655][End]textDocument/inlayHint
[LanguageServerHost][06:38:07.722][End]textDocument/documentSymbol
[LanguageServerHost][06:38:07.761][End]textDocument/codeAction
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace MiscellaneousFiles
[LanguageServerHost][06:38:07.976][Start]textDocument/codeLens
[LanguageServerHost][06:38:07.977][End]textDocument/codeLens
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace MiscellaneousFiles
[LanguageServerHost][06:38:07.982][Start]codeLens/resolve
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace MiscellaneousFiles
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace MiscellaneousFiles
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace MiscellaneousFiles
[LanguageServerHost][06:38:07.983][Start]codeLens/resolve
[LanguageServerHost][06:38:07.983][Start]codeLens/resolve
[LanguageServerHost][06:38:07.983][Start]codeLens/resolve
[LanguageServerHost][06:38:08.128][End]codeLens/resolve
[LanguageServerHost][06:38:08.128][End]codeLens/resolve
[LanguageServerHost][06:38:08.131][End]codeLens/resolve
[LanguageServerHost][06:38:08.175][End]codeLens/resolve
[BrokeredServiceTraceListener]ServiceBroker Information: 7 : 
[BrokeredServiceTraceListener]{"id":4,"method":"requestServiceChannel"}
[BrokeredServiceTraceListener]ServiceBroker Verbose: 7 : 
[BrokeredServiceTraceListener]Received: {
  "jsonrpc": "2.0",
  "id": 4,
  "method": "requestServiceChannel",
  "params": [
    {
      "name": "Microsoft.VisualStudio.LanguageServices.WorkspaceProjectFactoryService"
    },
    {
      "clientCredentials": {},
      "clientCulture": "en-US",
      "clientUICulture": "en-US"
    }
  ],
  "traceparent": "00-cbc992fa7a5b5040b80aba9d4e15cf0f-74b4e92f0a4f1040-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=fad7f178-0ef4-4433-8de6-dd484b2ece14
[BrokeredServiceTraceListener]ServiceBroker Start: 0 : 
[BrokeredServiceTraceListener]requestServiceChannel
[BrokeredServiceTraceListener]ServiceBroker Transfer: 0 : 
[BrokeredServiceTraceListener]Transfer, relatedActivityId=6b3273eb-a079-4a13-9020-2a7265f334cb
[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=7a762b60-72cf-4b5c-bed9-726755e1c57a
[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=6b3273eb-a079-4a13-9020-2a7265f334cb
[BrokeredServiceTraceListener]ServiceBroker Transfer: 0 : 
[BrokeredServiceTraceListener]Transfer, relatedActivityId=38edfa5b-7182-4ed9-ba25-da0246cb37c5
[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-5bfaed388271d94eba25da0246cb37c5-9ae20618e9d8d24f-01",
  "jsonrpc": "2.0",
  "id": 4,
  "method": "requestServiceChannel",
  "params": [
    {
      "name": "Microsoft.VisualStudio.ProjectSystem.ProjectInitializationStatusService",
      "version": "0.1"
    },
    {
      "clientCredentials": {},
      "clientCulture": "en-US",
      "clientUICulture": "en-US"
    }
  ]
}
[BrokeredServiceTraceListener]ServiceBroker Information: 7 : 
[BrokeredServiceTraceListener]{"id":4}
[BrokeredServiceTraceListener]ServiceBroker Verbose: 7 : 
[BrokeredServiceTraceListener]Received: {
  "jsonrpc": "2.0",
  "id": 4,
  "result": {
    "requestId": "e91eb809-35bf-4aef-9ee9-e883a471c927",
    "multiplexingChannelId": 5
  }
}
[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=6b3273eb-a079-4a13-9020-2a7265f334cb
[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=fad7f178-0ef4-4433-8de6-dd484b2ece14
[BrokeredServiceTraceListener]ServiceBroker Stop: 0 : 
[BrokeredServiceTraceListener]requestServiceChannel
[BrokeredServiceTraceListener]ServiceBroker Transfer: 0 : 
[BrokeredServiceTraceListener]Transfer, relatedActivityId=fa92c9cb-5b7a-4050-b80a-ba9d4e15cf0f
[BrokeredServiceTraceListener]ServiceBroker Information: 8 : 
[BrokeredServiceTraceListener]{"id":4}
[BrokeredServiceTraceListener]ServiceBroker Verbose: 8 : 
[BrokeredServiceTraceListener]Sent: {
  "jsonrpc": "2.0",
  "id": 4,
  "result": {
    "requestId": "92f19997-14f9-4b85-97e7-d10955ff0e55",
    "pipeName": "6eaa16d3538f4546b499e755197f33e7",
    "isEmpty": false
  }
}
[LanguageServerHost]Closing workspace/diagnostics request
[LanguageServerHost]Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicWorkspacePullDiagnosticsHandler finished getting diagnostics
[LanguageServerHost][06:38:08.446][End]workspace/diagnostic
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace Host
[LanguageServerHost][06:38:08.604][Start]textDocument/hover
[LanguageServerHost][06:38:08.701][End]textDocument/hover
[Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.ProjectInitializationHandler]Devkit project initialization completed
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace Host
[LanguageServerHost][06:38:09.138][Start]textDocument/hover
[LanguageServerHost][06:38:09.655][End]textDocument/hover
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace Host
[LanguageServerHost][06:38:10.435][Start]textDocument/diagnostic
[LanguageServerHost]PublicDocumentPullDiagnosticsHandler(category: ) started getting diagnostics
[LanguageServerHost]previousResults.Length=1
[LanguageServerHost]Processing 1 documents
[LanguageServerHost][06:38:10.450][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][06:38:10.454][End]workspace/diagnostic
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace Host
[LanguageServerHost][06:38:10.823][Start]textDocument/codeLens
[LanguageServerHost][06:38:10.824][End]textDocument/codeLens
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace Host
[LanguageServerHost][06:38:11.210][Start]codeLens/resolve
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace Host
[LanguageServerHost][06:38:11.211][Start]codeLens/resolve
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace Host
[LanguageServerHost][06:38:11.211][Start]codeLens/resolve
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace Host
[LanguageServerHost][06:38:11.211][Start]codeLens/resolve
[LanguageServerHost][06:38:11.235][End]codeLens/resolve
[LanguageServerHost][06:38:11.235][End]codeLens/resolve
[LanguageServerHost][06:38:11.235][End]codeLens/resolve
[LanguageServerHost][06:38:11.238][End]codeLens/resolve
[LanguageServerHost]Found 15 diagnostics for DocumentDiagnosticSource: k:\Unity\My project (1)\Assets\NewBehaviourScript.cs in Assembly-CSharp
[LanguageServerHost]Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicDocumentPullDiagnosticsHandler finished getting diagnostics
[LanguageServerHost][06:38:11.266][End]textDocument/diagnostic
[LanguageServerHost][06:38:12.465][Start]workspace/diagnostic
[LanguageServerHost]PublicWorkspacePullDiagnosticsHandler(category: ) started getting diagnostics
[LanguageServerHost]previousResults.Length=0
[LanguageServerHost]Processing 0 documents
[LanguageServerHost]k:\Unity\My project (1)\Assets\NewBehaviourScript.cs found in workspace Host
[LanguageServerHost][06:38:16.968][Start]textDocument/definition
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Repeat 2 times:
--------------------------------
   at Microsoft.CodeAnalysis.ClrGlobalAssemblyCache.CreateAssemblyEnum(IAssemblyEnum ByRef, IApplicationContext, IAssemblyName, ASM_CACHE, IntPtr)
--------------------------------
   at Microsoft.CodeAnalysis.ClrGlobalAssemblyCache+<GetAssemblyObjects>d__12.MoveNext()
   at Microsoft.CodeAnalysis.FusionAssemblyIdentity.GetBestMatch(System.Collections.Generic.IEnumerable`1<IAssemblyName>, System.String)
   at Microsoft.CodeAnalysis.ClrGlobalAssemblyCache.ResolvePartialName(System.String, System.String ByRef, System.Collections.Immutable.ImmutableArray`1<System.Reflection.ProcessorArchitecture>, System.Globalization.CultureInfo)
   at Microsoft.CodeAnalysis.MetadataAsSource.DecompilationMetadataAsSourceFileProvider.GetReferenceInfo(Microsoft.CodeAnalysis.Compilation, Microsoft.CodeAnalysis.IAssemblySymbol)
   at Microsoft.CodeAnalysis.MetadataAsSource.DecompilationMetadataAsSourceFileProvider+<GetGeneratedFileAsync>d__6.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.CodeAnalysis.MetadataAsSource.DecompilationMetadataAsSourceFileProvider+<GetGeneratedFileAsync>d__6, Microsoft.CodeAnalysis.Features, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<GetGeneratedFileAsync>d__6 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.CodeAnalysis.MetadataAsSource.DecompilationMetadataAsSourceFileProvider+<GetGeneratedFileAsync>d__6, Microsoft.CodeAnalysis.Features, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<GetGeneratedFileAsync>d__6 ByRef)
   at Microsoft.CodeAnalysis.MetadataAsSource.DecompilationMetadataAsSourceFileProvider.GetGeneratedFileAsync(Microsoft.CodeAnalysis.MetadataAsSource.MetadataAsSourceWorkspace, Microsoft.CodeAnalysis.Workspace, Microsoft.CodeAnalysis.Project, Microsoft.CodeAnalysis.ISymbol, Boolean, Microsoft.CodeAnalysis.MetadataAsSource.MetadataAsSourceOptions, System.String, Microsoft.CodeAnalysis.MetadataAsSource.TelemetryMessage, System.Threading.CancellationToken)
   at Microsoft.CodeAnalysis.MetadataAsSource.MetadataAsSourceFileService+<GetGeneratedFileAsync>d__9.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.CodeAnalysis.MetadataAsSource.MetadataAsSourceFileService+<GetGeneratedFileAsync>d__9, Microsoft.CodeAnalysis.Features, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<GetGeneratedFileAsync>d__9 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.CodeAnalysis.MetadataAsSource.MetadataAsSourceFileService+<GetGeneratedFileAsync>d__9, Microsoft.CodeAnalysis.Features, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<GetGeneratedFileAsync>d__9 ByRef)
   at Microsoft.CodeAnalysis.MetadataAsSource.MetadataAsSourceFileService.GetGeneratedFileAsync(Microsoft.CodeAnalysis.Workspace, Microsoft.CodeAnalysis.Project, Microsoft.CodeAnalysis.ISymbol, Boolean, Microsoft.CodeAnalysis.MetadataAsSource.MetadataAsSourceOptions, System.Threading.CancellationToken)
   at Microsoft.CodeAnalysis.LanguageServer.Handler.AbstractGoToDefinitionHandler+<GetDefinitionAsync>d__9.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.CodeAnalysis.LanguageServer.Handler.AbstractGoToDefinitionHandler+<GetDefinitionAsync>d__9, Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<GetDefinitionAsync>d__9 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.CodeAnalysis.LanguageServer.Handler.AbstractGoToDefinitionHandler+<GetDefinitionAsync>d__9, Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<GetDefinitionAsync>d__9 ByRef)
   at Microsoft.CodeAnalysis.LanguageServer.Handler.AbstractGoToDefinitionHandler.GetDefinitionAsync(Microsoft.VisualStudio.LanguageServer.Protocol.TextDocumentPositionParams, Boolean, Microsoft.CodeAnalysis.LanguageServer.Handler.RequestContext, System.Threading.CancellationToken)
   at Microsoft.CodeAnalysis.LanguageServer.Handler.GoToDefinitionHandler.HandleRequestAsync(Microsoft.VisualStudio.LanguageServer.Protocol.TextDocumentPositionParams, Microsoft.CodeAnalysis.LanguageServer.Handler.RequestContext, System.Threading.CancellationToken)
   at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`3+<StartRequestAsync>d__19[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.CodeAnalysis.LanguageServer.Handler.RequestContext, Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`3+<StartRequestAsync>d__19[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.CodeAnalysis.LanguageServer.Handler.RequestContext, Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], Microsoft.CommonLanguageServerProtocol.Framework, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<StartRequestAsync>d__19<System.__Canon,System.__Canon,Microsoft.CodeAnalysis.LanguageServer.Handler.RequestContext> ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`3+<StartRequestAsync>d__19[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.CodeAnalysis.LanguageServer.Handler.RequestContext, Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], Microsoft.CommonLanguageServerProtocol.Framework, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<StartRequestAsync>d__19<System.__Canon,System.__Canon,Microsoft.CodeAnalysis.LanguageServer.Handler.RequestContext> ByRef)
   at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`3[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.CodeAnalysis.LanguageServer.Handler.RequestContext, Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].StartRequestAsync(Microsoft.CodeAnalysis.LanguageServer.Handler.RequestContext, System.Threading.CancellationToken)
   at Microsoft.CommonLanguageServerProtocol.Framework.RequestExecutionQueue`1+<>c__DisplayClass15_1[[Microsoft.CodeAnalysis.LanguageServer.Handler.RequestContext, Microsoft.CodeAnalysis.LanguageServer.Protocol, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].<ProcessQueueAsync>b__1()
   at System.Threading.Tasks.Task`1[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].InnerInvoke()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart()
[Info  - 7:38:19 PM] Connection to server got closed. Server will restart.
true
Using dotnet configured on PATH
Dotnet path: C:\Program Files\dotnet\dotnet.exe
Activating C# + C# Dev Kit + C# IntelliCode...
...

Environment information

VSCode version: 1.81.1 C# Extension: 2.0.413 Using OmniSharp: false

Dotnet Information Error running dotnet --info: Error: Command failed: C:\Program Files\dotnet\dotnet.exe --info 'C:\Program' is not recognized as an internal or external command, operable program or batch file. 'C:\Program' is not recognized as an internal or external command, operable program or batch file.
Visual Studio Code Extensions |Extension|Author|Version|Folder Name| |---|---|---|---| |combinefiles|wangzhen|0.0.2|wangzhen.combinefiles-0.0.2| |csdevkit|ms-dotnettools|0.3.21|ms-dotnettools.csdevkit-0.3.21-win32-x64| |csharp|ms-dotnettools|2.0.413|ms-dotnettools.csharp-2.0.413-win32-x64| |csv-to-table|phplasma|1.4.0|phplasma.csv-to-table-1.4.0| |discord-tools|Darkempire78|1.5.0|darkempire78.discord-tools-1.5.0| |dupchecker|jianbingfang|0.1.7|jianbingfang.dupchecker-0.1.7| |eppz-code|eppz|1.2.52|eppz.eppz-code-1.2.52| |gc-excelviewer|GrapeCity|4.2.58|grapecity.gc-excelviewer-4.2.58| |jupyter|ms-toolsai|2023.7.1002162226|ms-toolsai.jupyter-2023.7.1002162226-win32-x64| |jupyter-keymap|ms-toolsai|1.1.2|ms-toolsai.jupyter-keymap-1.1.2| |jupyter-renderers|ms-toolsai|1.0.17|ms-toolsai.jupyter-renderers-1.0.17| |language-liquid|neilding|0.1.1|neilding.language-liquid-0.1.1| |lucidocean-plurge|LucidOcean|0.0.5|lucidocean.lucidocean-plurge-0.0.5| |permute-lines|earshinov|1.1.0|earshinov.permute-lines-1.1.0| |poweron|0sawaqed|1.0.10|0sawaqed.poweron-1.0.10| |python|ms-python|2023.14.0|ms-python.python-2023.14.0| |sort-lines|Tyriar|1.10.2|tyriar.sort-lines-1.10.2| |theme-by-language|jsaulou|1.2.1|jsaulou.theme-by-language-1.2.1| |timing|HaaLeo|2.7.2|haaleo.timing-2.7.2| |turbo-console-log|ChakrounAnas|2.9.6|chakrounanas.turbo-console-log-2.9.6| |unity-code-snippets|kleber-swf|2.2.5|kleber-swf.unity-code-snippets-2.2.5| |unity-toolbox|pixl|3.0.0|pixl.unity-toolbox-3.0.0| |unity-tools|Tobiah|1.2.12|tobiah.unity-tools-1.2.12| |vetur|octref|0.37.3|octref.vetur-0.37.3| |vscode-autohotkey-debug|zero-plusplus|1.11.0|zero-plusplus.vscode-autohotkey-debug-1.11.0| |vscode-autohotkey-plus-plus|mark-wiemer|5.0.3|mark-wiemer.vscode-autohotkey-plus-plus-5.0.3| |vscode-combine-scripts|BateleurIO|2.0.5|bateleurio.vscode-combine-scripts-2.0.5| |vscode-dotnet-runtime|ms-dotnettools|1.7.1|ms-dotnettools.vscode-dotnet-runtime-1.7.1| |vscode-eslint|dbaeumer|2.4.2|dbaeumer.vscode-eslint-2.4.2| |vscode-jupyter-cell-tags|ms-toolsai|0.1.8|ms-toolsai.vscode-jupyter-cell-tags-0.1.8| |vscode-jupyter-slideshow|ms-toolsai|0.1.5|ms-toolsai.vscode-jupyter-slideshow-0.1.5| |vscode-liquid-snippets|killalau|2.0.3|killalau.vscode-liquid-snippets-2.0.3| |vscode-pets|tonybaloney|1.24.0|tonybaloney.vscode-pets-1.24.0| |vscode-pylance|ms-python|2023.8.40|ms-python.vscode-pylance-2023.8.40| |vscodeintellicode-csharp|ms-dotnettools|0.1.26|ms-dotnettools.vscodeintellicode-csharp-0.1.26-win32-x64| |vstuc|visualstudiotoolsforunity|0.9.0|visualstudiotoolsforunity.vstuc-0.9.0|;

Extension version: 2.0.413 VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z) OS version: Windows_NT x64 10.0.19043 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i9-10850K CPU @ 3.60GHz (20 x 3600)| |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.92GB (10.52GB free)| |Process Argv|K:\\Unity\\My project (1) -g K:\\Unity\\My project (1)\\Assets\\NewBehaviourScript.cs:1:0 --crash-reporter-id a0484d8e-a2c7-49bc-aa3c-5fbf8a21e2a6| |Screen Reader|no| |VM|40%|
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 py29gd2263:30792226 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 vsccc:30803844 2e4cg342:30602488 89544117:30613380 showlangstatbar:30737416 03d35959:30757346 pythonfmttext:30731395 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 gsofb:30804716 pythonnosmt12:30797651 pythonidxpt:30805730 pythonnoceb:30805159 dsvsc013:30795093 dsvsc014:30804076 diffeditorv2:30821572 ```
dibarbet commented 1 year ago

The not reconnecting after a restart is a known issue, see - https://github.com/dotnet/vscode-csharp/issues/5882 A workaround is to reload the window.

However the System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. is not known. Will take a look at that.

dibarbet commented 1 year ago

So I'm not able to reproduce this on my machine using unity - would you be able to share your project here (or via my email on my github profile)?

We seem to be having issues right here https://sourceroslyn.io/#Microsoft.CodeAnalysis.Scripting/ClrGlobalAssemblyCache.cs,66 I'm not very familiar with this part of the code - it looks like we're trying to find assemblies in the GAC to try and find the SDK assembly containing List? cc @tmat

unleashed7 commented 1 year ago

Apologies for the delay! Here is the requested completely new project created with the latest recommended Unity version 2022.3.8f1.

Issue Example.zip

Please note, there's another issue at the moment for me, since upgrading the whole Code environment to the new Unity extension (before the current issue), with creating new Unity projects. New projects install the Engineering package with Visual Studio Editor 2.0.18 for some reason, which breaks Code connection completely. The workaround I found is, uninstalling Engineering (since VS Editor package is locked as a dependency), installing the latest VS Editor 2.0.20, then reinstalling the Engineering package and reopen project. This is also a reproducable issue and workaround for me, I might report this too another time.

Screenshot 2023-09-06 195617 Screenshot 2023-09-06 195628 Screenshot 2023-09-06 195631 Screenshot 2023-09-06 195717

It's probably not related to the current issue, but just in case.

dibarbet commented 1 year ago

It looks like we're throwing when iterating the GAC (global assembly cache) for metadata assemblies. It is possible something in your GAC is corrupted, but its hard to tell with just the stack trace.

Would it be possible for you to collect a crash dump of the process? The easiest way is probably to launch vscode with two specific environment variables - DOTNET_DbgEnableMiniDump to 1, and DOTNET_DbgMiniDumpName to a path you can write to. Then you launch vscode from that same shell to ensure the environment variables are picked up.

For example, in powershell you'd use the following commands:

PS C:\Users\dabarbet\source\repos\ConsoleApp4> $env:DOTNET_DbgEnableMiniDump=1
PS C:\Users\dabarbet\source\repos\ConsoleApp4> $env:DOTNET_DbgMiniDumpName="C:\Users\dabarbet\coredump"
PS C:\Users\dabarbet\source\repos\ConsoleApp4> code .

Then when the server process crashes dotnet will create a crash dump at the location you specified. You can then email that to me directly (if its small enough), or if its large (could be tens of gb) upload to a file server and send that link to me via email.

unleashed7 commented 1 year ago

I had to dump it as a file, so used \coredump.%p and uploaded to cloud, hope that's fine. Sent it through to dabarbet@microsoft.com just now!

Also noticed three things:

  1. Unity does not have to be open for the crash, so it might be completely unrelated to the connection.
  2. After restarting by itself due to the crash, I cannot crash it again with the same "Ctrl" method.
  3. I don't need to press the control when it's over a float word in Code for example, rather if I continuously hold Ctrl and move my mouse over a problematic keyword (int, float, etc.) the crash occurs.

It's extremely bothersome to reload the window 30 times in an hour, as I trigger the crash on accident while saving, copying, pasting and so on. Hope there's a solution to this.

dibarbet commented 1 year ago

I had to dump it as a file, so used \coredump.%p and uploaded to cloud, hope that's fine. Sent it through to dabarbet@microsoft.com just now!

Got the dump! The fix for this should be here - https://github.com/dotnet/roslyn/pull/69936 Hopefully will be in next weeks release if I can get the change in.

dibarbet commented 1 year ago

It didn't make it into today's release, but it should be in next weeks.

unleashed7 commented 1 year ago

It didn't make it into today's release, but it should be in next weeks.

No problem at all, thanks for the heads-up! If it's possible when the patch arrives, could let me know what extension to update exactly, so I can test it if it works, would be greatly appreciated!

dibarbet commented 1 year ago

@unleashed7 the fix should be in 2.5.30 which we just released - let me know if it is working better!

unleashed7 commented 1 year ago

@dibarbet You did it!! Thank you so much, I've been so bothered by this ever since, I got the habit of moving my mouse to the edge of the screen before every Ctrl + S.. Finally it's over!