dotnet / vscode-csharp

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

intellisense stopped working after dotnet got upgraded to 6.0.200 on Mac OS X Monterrey (Intel CPU) #5061

Open lechgu opened 2 years ago

lechgu commented 2 years ago

Issue Description

intellisense stopped working after dotnet got upgraded to 6.0.200 on Mac OS X Monterrey (Intel CPU). worked fine on the previous version.

Steps to Reproduce

Expected Behavior

Intellisense works

Actual Behavior

Intellisense does not work

Logs

OmniSharp log

Starting OmniSharp server at 2/17/2022, 10:50:19 AM Target: /Users/lech/work/Intuiflow.Identity/Service

OmniSharp server started. Path: /Users/lech/.vscode/extensions/ms-dotnettools.csharp-1.24.0/.omnisharp/1.38.0/run PID: 9145

    Starting OmniSharp on MacOS 12.1 (x64)
    Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK
    Using the 'dotnet' on the PATH.
    DotNetPath set to dotnet
    Located 1 MSBuild instance(s)
        1: StandAlone 17.0.0 - "/Users/lech/.vscode/extensions/ms-dotnettools.csharp-1.24.0/.omnisharp/1.38.0/omnisharp/.msbuild/Current/Bin"
    MSBUILD_EXE_PATH environment variable set to '/Users/lech/.vscode/extensions/ms-dotnettools.csharp-1.24.0/.omnisharp/1.38.0/omnisharp/.msbuild/Current/Bin/MSBuild.exe'
    Registered MSBuild instance: StandAlone 17.0.0 - "/Users/lech/.vscode/extensions/ms-dotnettools.csharp-1.24.0/.omnisharp/1.38.0/omnisharp/.msbuild/Current/Bin"
        CscToolExe = csc.exe
        MSBuildToolsPath = /Users/lech/.vscode/extensions/ms-dotnettools.csharp-1.24.0/.omnisharp/1.38.0/omnisharp/.msbuild/Current/Bin
        CscToolPath = /Users/lech/.vscode/extensions/ms-dotnettools.csharp-1.24.0/.omnisharp/1.38.0/omnisharp/.msbuild/Current/Bin/Roslyn
        BypassFrameworkInstallChecks = true
        MSBuildExtensionsPath = /Users/lech/.vscode/extensions/ms-dotnettools.csharp-1.24.0/.omnisharp/1.38.0/omnisharp/.msbuild
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
    Detecting Cake files in '/Users/lech/work/Intuiflow.Identity/Service'.
    Did not find any Cake files
    No solution files found in '/Users/lech/work/Intuiflow.Identity/Service'
    Queue project update for '/Users/lech/work/Intuiflow.Identity/Service/Service.csproj'
    Detecting CSX files in '/Users/lech/work/Intuiflow.Identity/Service'.
    Did not find any CSX files
    Configuration finished.
    Omnisharp server running using Stdio at location '/Users/lech/work/Intuiflow.Identity/Service' on host 9087.
    Loading project: /Users/lech/work/Intuiflow.Identity/Service/Service.csproj
    Successfully loaded project file '/Users/lech/work/Intuiflow.Identity/Service/Service.csproj'.
    Adding project '/Users/lech/work/Intuiflow.Identity/Service/Service.csproj'
    Update project: Service
    Failure while loading the analyzer reference 'Microsoft.NET.Sdk.Razor.SourceGenerators': Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
    Solution initialized -> queue all documents for code analysis. Initial document count: 28.
    No symbol found. File: /Users/lech/work/Intuiflow.Identity/Service/App.cs, Line: 7, Column: 24.
    ************ Request ************

{ "Type": "request", "Seq": 36, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "/Users/lech/work/Intuiflow.Identity/Service/App.cs", "Line": 7, "Column": 24 } }

    ************  Response (80.0127ms) ************ 

{ "Request_seq": 36, "Command": "/v2/getcodeactions", "Running": true, "Success": false, "Message": "\"System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.\nCould not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.\n at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)\n at System.Reflection.Assembly.GetTypes () [0x00000] in <36514b14425c4337b446653c547aa9c3>:0 \n at System.Reflection.Assembly+d__127.MoveNext () [0x0001e] in <36514b14425c4337b446653c547aa9c3>:0 \n at System.Linq.Enumerable+SelectManySingleSelectorIterator2[TSource,TResult].MoveNext () [0x0006f] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Linq.Enumerable+WhereSelectEnumerableIterator2[TSource,TResult].MoveNext () [0x00059] in <14c1495deda74532849f8ec10b438611>:0 \n at System.Linq.Enumerable+WhereEnumerableIterator1[TSource].MoveNext () [0x0004e] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.LargeArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable1[T] items) [0x0003d] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.SparseArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable1[T] items) [0x00000] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.SparseArrayBuilder1[T].ReserveOrAdd (System.Collections.Generic.IEnumerable1[T] items) [0x00017] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Linq.Enumerable+Concat2Iterator1[TSource].ToArray () [0x00015] in <14c1495deda74532849f8ec10b438611>:0 \n at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x0001f] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Immutable.ImmutableArray.CreateRange[T] (System.Collections.Generic.IEnumerable1[T] items) [0x0004d] in :0 \n at System.Collections.Immutable.ImmutableArray.ToImmutableArray[TSource] (System.Collections.Generic.IEnumerable1[T] items) [0x0000f] in <be358f84962848a48784e4a9d001abe1>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects.LoadFrom (Microsoft.CodeAnalysis.Project project) [0x000d5] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects.GetAllCodeFixesForProject (Microsoft.CodeAnalysis.ProjectId projectId) [0x00045] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].GetSortedCodeFixProviders (Microsoft.CodeAnalysis.Document document) [0x00011] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].AppendFixesAsync (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Generic.IEnumerable1[T] diagnostics, System.Collections.Generic.List1[T] codeActions) [0x0003e] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].CollectCodeFixesActions (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Generic.List1[T] codeActions) [0x001c1] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].GetAvailableCodeActions (OmniSharp.Models.V2.CodeActions.ICodeActionRequest request) [0x001a4] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.GetCodeActionsService.Handle (OmniSharp.Models.V2.CodeActions.GetCodeActionsRequest request) [0x0006b] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].GetFirstNotEmptyResponseFromHandlers (OmniSharp.Endpoint.Exports.ExportHandler2[TRequest,TResponse][] handlers, TRequest request) [0x00099] in <5f96298298f74346ad96eb79547a94e4>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].HandleRequestForLanguage (System.String language, TRequest request, OmniSharp.Protocol.RequestPacket packet) [0x00163] in <5f96298298f74346ad96eb79547a94e4>:0 \\n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].Process (OmniSharp.Protocol.RequestPacket packet, OmniSharp.Endpoint.LanguageModel model, Newtonsoft.Json.Linq.JToken requestObject) [0x0024b] in <5f96298298f74346ad96eb79547a94e4>:0 \n at OmniSharp.Stdio.Host.HandleRequest (System.String json, Microsoft.Extensions.Logging.ILogger logger) [0x000f3] in <25aad3e40a2c409a9df3868c7895a306>:0 \nSystem.TypeLoadException: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.\"", "Body": null, "Seq": 100, "Type": "response" }

    ************ Request ************

{ "Type": "request", "Seq": 37, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "/Users/lech/work/Intuiflow.Identity/Service/App.cs", "Line": 7, "Column": 24 } }

    ************  Response (18.7932ms) ************ 

{ "Request_seq": 37, "Command": "/v2/getcodeactions", "Running": true, "Success": false, "Message": "\"System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.\nCould not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.\n at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)\n at System.Reflection.Assembly.GetTypes () [0x00000] in <36514b14425c4337b446653c547aa9c3>:0 \n at System.Reflection.Assembly+d__127.MoveNext () [0x0001e] in <36514b14425c4337b446653c547aa9c3>:0 \n at System.Linq.Enumerable+SelectManySingleSelectorIterator2[TSource,TResult].MoveNext () [0x0006f] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Linq.Enumerable+WhereSelectEnumerableIterator2[TSource,TResult].MoveNext () [0x00059] in <14c1495deda74532849f8ec10b438611>:0 \n at System.Linq.Enumerable+WhereEnumerableIterator1[TSource].MoveNext () [0x0004e] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.LargeArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable1[T] items) [0x0003d] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.SparseArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable1[T] items) [0x00000] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.SparseArrayBuilder1[T].ReserveOrAdd (System.Collections.Generic.IEnumerable1[T] items) [0x00017] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Linq.Enumerable+Concat2Iterator1[TSource].ToArray () [0x00015] in <14c1495deda74532849f8ec10b438611>:0 \n at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x0001f] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Immutable.ImmutableArray.CreateRange[T] (System.Collections.Generic.IEnumerable1[T] items) [0x0004d] in :0 \n at System.Collections.Immutable.ImmutableArray.ToImmutableArray[TSource] (System.Collections.Generic.IEnumerable1[T] items) [0x0000f] in <be358f84962848a48784e4a9d001abe1>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects.LoadFrom (Microsoft.CodeAnalysis.Project project) [0x000d5] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects.GetAllCodeFixesForProject (Microsoft.CodeAnalysis.ProjectId projectId) [0x00045] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].GetSortedCodeFixProviders (Microsoft.CodeAnalysis.Document document) [0x00011] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].AppendFixesAsync (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Generic.IEnumerable1[T] diagnostics, System.Collections.Generic.List1[T] codeActions) [0x0003e] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].CollectCodeFixesActions (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Generic.List1[T] codeActions) [0x001c1] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].GetAvailableCodeActions (OmniSharp.Models.V2.CodeActions.ICodeActionRequest request) [0x001a4] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.GetCodeActionsService.Handle (OmniSharp.Models.V2.CodeActions.GetCodeActionsRequest request) [0x0006b] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].GetFirstNotEmptyResponseFromHandlers (OmniSharp.Endpoint.Exports.ExportHandler2[TRequest,TResponse][] handlers, TRequest request) [0x00099] in <5f96298298f74346ad96eb79547a94e4>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].HandleRequestForLanguage (System.String language, TRequest request, OmniSharp.Protocol.RequestPacket packet) [0x00163] in <5f96298298f74346ad96eb79547a94e4>:0 \\n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].Process (OmniSharp.Protocol.RequestPacket packet, OmniSharp.Endpoint.LanguageModel model, Newtonsoft.Json.Linq.JToken requestObject) [0x0024b] in <5f96298298f74346ad96eb79547a94e4>:0 \n at OmniSharp.Stdio.Host.HandleRequest (System.String json, Microsoft.Extensions.Logging.ILogger logger) [0x000f3] in <25aad3e40a2c409a9df3868c7895a306>:0 \nSystem.TypeLoadException: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.\"", "Body": null, "Seq": 103, "Type": "response" }

    ************ Request ************

{ "Type": "request", "Seq": 43, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "/Users/lech/work/Intuiflow.Identity/Service/App.cs", "Line": 7, "Column": 24 } }

    ************  Response (20.8555ms) ************ 

{ "Request_seq": 43, "Command": "/v2/getcodeactions", "Running": true, "Success": false, "Message": "\"System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.\nCould not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.\n at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)\n at System.Reflection.Assembly.GetTypes () [0x00000] in <36514b14425c4337b446653c547aa9c3>:0 \n at System.Reflection.Assembly+d__127.MoveNext () [0x0001e] in <36514b14425c4337b446653c547aa9c3>:0 \n at System.Linq.Enumerable+SelectManySingleSelectorIterator2[TSource,TResult].MoveNext () [0x0006f] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Linq.Enumerable+WhereSelectEnumerableIterator2[TSource,TResult].MoveNext () [0x00059] in <14c1495deda74532849f8ec10b438611>:0 \n at System.Linq.Enumerable+WhereEnumerableIterator1[TSource].MoveNext () [0x0004e] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.LargeArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable1[T] items) [0x0003d] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.SparseArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable1[T] items) [0x00000] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.SparseArrayBuilder1[T].ReserveOrAdd (System.Collections.Generic.IEnumerable1[T] items) [0x00017] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Linq.Enumerable+Concat2Iterator1[TSource].ToArray () [0x00015] in <14c1495deda74532849f8ec10b438611>:0 \n at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x0001f] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Immutable.ImmutableArray.CreateRange[T] (System.Collections.Generic.IEnumerable1[T] items) [0x0004d] in :0 \n at System.Collections.Immutable.ImmutableArray.ToImmutableArray[TSource] (System.Collections.Generic.IEnumerable1[T] items) [0x0000f] in <be358f84962848a48784e4a9d001abe1>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects.LoadFrom (Microsoft.CodeAnalysis.Project project) [0x000d5] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects.GetAllCodeFixesForProject (Microsoft.CodeAnalysis.ProjectId projectId) [0x00045] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].GetSortedCodeFixProviders (Microsoft.CodeAnalysis.Document document) [0x00011] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].AppendFixesAsync (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Generic.IEnumerable1[T] diagnostics, System.Collections.Generic.List1[T] codeActions) [0x0003e] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].CollectCodeFixesActions (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Generic.List1[T] codeActions) [0x001c1] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].GetAvailableCodeActions (OmniSharp.Models.V2.CodeActions.ICodeActionRequest request) [0x001a4] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.GetCodeActionsService.Handle (OmniSharp.Models.V2.CodeActions.GetCodeActionsRequest request) [0x0006b] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].GetFirstNotEmptyResponseFromHandlers (OmniSharp.Endpoint.Exports.ExportHandler2[TRequest,TResponse][] handlers, TRequest request) [0x00099] in <5f96298298f74346ad96eb79547a94e4>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].HandleRequestForLanguage (System.String language, TRequest request, OmniSharp.Protocol.RequestPacket packet) [0x00163] in <5f96298298f74346ad96eb79547a94e4>:0 \\n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].Process (OmniSharp.Protocol.RequestPacket packet, OmniSharp.Endpoint.LanguageModel model, Newtonsoft.Json.Linq.JToken requestObject) [0x0024b] in <5f96298298f74346ad96eb79547a94e4>:0 \n at OmniSharp.Stdio.Host.HandleRequest (System.String json, Microsoft.Extensions.Logging.ILogger logger) [0x000f3] in <25aad3e40a2c409a9df3868c7895a306>:0 \nSystem.TypeLoadException: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.\"", "Body": null, "Seq": 111, "Type": "response" }

    ************ Request ************

{ "Type": "request", "Seq": 47, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "/Users/lech/work/Intuiflow.Identity/Service/App.cs", "Line": 7, "Column": 24 } }

    ************  Response (19.7705ms) ************ 

{ "Request_seq": 47, "Command": "/v2/getcodeactions", "Running": true, "Success": false, "Message": "\"System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.\nCould not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.\n at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)\n at System.Reflection.Assembly.GetTypes () [0x00000] in <36514b14425c4337b446653c547aa9c3>:0 \n at System.Reflection.Assembly+d__127.MoveNext () [0x0001e] in <36514b14425c4337b446653c547aa9c3>:0 \n at System.Linq.Enumerable+SelectManySingleSelectorIterator2[TSource,TResult].MoveNext () [0x0006f] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Linq.Enumerable+WhereSelectEnumerableIterator2[TSource,TResult].MoveNext () [0x00059] in <14c1495deda74532849f8ec10b438611>:0 \n at System.Linq.Enumerable+WhereEnumerableIterator1[TSource].MoveNext () [0x0004e] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.LargeArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable1[T] items) [0x0003d] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.SparseArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable1[T] items) [0x00000] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.SparseArrayBuilder1[T].ReserveOrAdd (System.Collections.Generic.IEnumerable1[T] items) [0x00017] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Linq.Enumerable+Concat2Iterator1[TSource].ToArray () [0x00015] in <14c1495deda74532849f8ec10b438611>:0 \n at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x0001f] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Immutable.ImmutableArray.CreateRange[T] (System.Collections.Generic.IEnumerable1[T] items) [0x0004d] in :0 \n at System.Collections.Immutable.ImmutableArray.ToImmutableArray[TSource] (System.Collections.Generic.IEnumerable1[T] items) [0x0000f] in <be358f84962848a48784e4a9d001abe1>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects.LoadFrom (Microsoft.CodeAnalysis.Project project) [0x000d5] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects.GetAllCodeFixesForProject (Microsoft.CodeAnalysis.ProjectId projectId) [0x00045] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].GetSortedCodeFixProviders (Microsoft.CodeAnalysis.Document document) [0x00011] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].AppendFixesAsync (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Generic.IEnumerable1[T] diagnostics, System.Collections.Generic.List1[T] codeActions) [0x0003e] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].CollectCodeFixesActions (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Generic.List1[T] codeActions) [0x001c1] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].GetAvailableCodeActions (OmniSharp.Models.V2.CodeActions.ICodeActionRequest request) [0x001a4] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.GetCodeActionsService.Handle (OmniSharp.Models.V2.CodeActions.GetCodeActionsRequest request) [0x0006b] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].GetFirstNotEmptyResponseFromHandlers (OmniSharp.Endpoint.Exports.ExportHandler2[TRequest,TResponse][] handlers, TRequest request) [0x00099] in <5f96298298f74346ad96eb79547a94e4>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].HandleRequestForLanguage (System.String language, TRequest request, OmniSharp.Protocol.RequestPacket packet) [0x00163] in <5f96298298f74346ad96eb79547a94e4>:0 \\n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].Process (OmniSharp.Protocol.RequestPacket packet, OmniSharp.Endpoint.LanguageModel model, Newtonsoft.Json.Linq.JToken requestObject) [0x0024b] in <5f96298298f74346ad96eb79547a94e4>:0 \n at OmniSharp.Stdio.Host.HandleRequest (System.String json, Microsoft.Extensions.Logging.ILogger logger) [0x000f3] in <25aad3e40a2c409a9df3868c7895a306>:0 \nSystem.TypeLoadException: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.\"", "Body": null, "Seq": 117, "Type": "response" }

    ************ Request ************

{ "Type": "request", "Seq": 48, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "/Users/lech/work/Intuiflow.Identity/Service/App.cs", "Line": 7, "Column": 24 } }

    ************  Response (18.7938ms) ************ 

{ "Request_seq": 48, "Command": "/v2/getcodeactions", "Running": true, "Success": false, "Message": "\"System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.\nCould not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.\n at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)\n at System.Reflection.Assembly.GetTypes () [0x00000] in <36514b14425c4337b446653c547aa9c3>:0 \n at System.Reflection.Assembly+d__127.MoveNext () [0x0001e] in <36514b14425c4337b446653c547aa9c3>:0 \n at System.Linq.Enumerable+SelectManySingleSelectorIterator2[TSource,TResult].MoveNext () [0x0006f] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Linq.Enumerable+WhereSelectEnumerableIterator2[TSource,TResult].MoveNext () [0x00059] in <14c1495deda74532849f8ec10b438611>:0 \n at System.Linq.Enumerable+WhereEnumerableIterator1[TSource].MoveNext () [0x0004e] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.LargeArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable1[T] items) [0x0003d] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.SparseArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable1[T] items) [0x00000] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.SparseArrayBuilder1[T].ReserveOrAdd (System.Collections.Generic.IEnumerable1[T] items) [0x00017] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Linq.Enumerable+Concat2Iterator1[TSource].ToArray () [0x00015] in <14c1495deda74532849f8ec10b438611>:0 \n at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x0001f] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Immutable.ImmutableArray.CreateRange[T] (System.Collections.Generic.IEnumerable1[T] items) [0x0004d] in :0 \n at System.Collections.Immutable.ImmutableArray.ToImmutableArray[TSource] (System.Collections.Generic.IEnumerable1[T] items) [0x0000f] in <be358f84962848a48784e4a9d001abe1>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects.LoadFrom (Microsoft.CodeAnalysis.Project project) [0x000d5] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects.GetAllCodeFixesForProject (Microsoft.CodeAnalysis.ProjectId projectId) [0x00045] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].GetSortedCodeFixProviders (Microsoft.CodeAnalysis.Document document) [0x00011] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].AppendFixesAsync (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Generic.IEnumerable1[T] diagnostics, System.Collections.Generic.List1[T] codeActions) [0x0003e] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].CollectCodeFixesActions (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Generic.List1[T] codeActions) [0x001c1] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].GetAvailableCodeActions (OmniSharp.Models.V2.CodeActions.ICodeActionRequest request) [0x001a4] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.GetCodeActionsService.Handle (OmniSharp.Models.V2.CodeActions.GetCodeActionsRequest request) [0x0006b] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].GetFirstNotEmptyResponseFromHandlers (OmniSharp.Endpoint.Exports.ExportHandler2[TRequest,TResponse][] handlers, TRequest request) [0x00099] in <5f96298298f74346ad96eb79547a94e4>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].HandleRequestForLanguage (System.String language, TRequest request, OmniSharp.Protocol.RequestPacket packet) [0x00163] in <5f96298298f74346ad96eb79547a94e4>:0 \\n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].Process (OmniSharp.Protocol.RequestPacket packet, OmniSharp.Endpoint.LanguageModel model, Newtonsoft.Json.Linq.JToken requestObject) [0x0024b] in <5f96298298f74346ad96eb79547a94e4>:0 \n at OmniSharp.Stdio.Host.HandleRequest (System.String json, Microsoft.Extensions.Logging.ILogger logger) [0x000f3] in <25aad3e40a2c409a9df3868c7895a306>:0 \nSystem.TypeLoadException: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.\"", "Body": null, "Seq": 120, "Type": "response" }

    ************ Request ************

{ "Type": "request", "Seq": 52, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "/Users/lech/work/Intuiflow.Identity/Service/App.cs", "Line": 7, "Column": 14 } }

    ************  Response (18.9308ms) ************ 

{ "Request_seq": 52, "Command": "/v2/getcodeactions", "Running": true, "Success": false, "Message": "\"System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.\nCould not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.\n at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)\n at System.Reflection.Assembly.GetTypes () [0x00000] in <36514b14425c4337b446653c547aa9c3>:0 \n at System.Reflection.Assembly+d__127.MoveNext () [0x0001e] in <36514b14425c4337b446653c547aa9c3>:0 \n at System.Linq.Enumerable+SelectManySingleSelectorIterator2[TSource,TResult].MoveNext () [0x0006f] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Linq.Enumerable+WhereSelectEnumerableIterator2[TSource,TResult].MoveNext () [0x00059] in <14c1495deda74532849f8ec10b438611>:0 \n at System.Linq.Enumerable+WhereEnumerableIterator1[TSource].MoveNext () [0x0004e] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.LargeArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable1[T] items) [0x0003d] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.SparseArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable1[T] items) [0x00000] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.SparseArrayBuilder1[T].ReserveOrAdd (System.Collections.Generic.IEnumerable1[T] items) [0x00017] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Linq.Enumerable+Concat2Iterator1[TSource].ToArray () [0x00015] in <14c1495deda74532849f8ec10b438611>:0 \n at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x0001f] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Immutable.ImmutableArray.CreateRange[T] (System.Collections.Generic.IEnumerable1[T] items) [0x0004d] in :0 \n at System.Collections.Immutable.ImmutableArray.ToImmutableArray[TSource] (System.Collections.Generic.IEnumerable1[T] items) [0x0000f] in <be358f84962848a48784e4a9d001abe1>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects.LoadFrom (Microsoft.CodeAnalysis.Project project) [0x000d5] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects.GetAllCodeFixesForProject (Microsoft.CodeAnalysis.ProjectId projectId) [0x00045] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].GetSortedCodeFixProviders (Microsoft.CodeAnalysis.Document document) [0x00011] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].AppendFixesAsync (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Generic.IEnumerable1[T] diagnostics, System.Collections.Generic.List1[T] codeActions) [0x0003e] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].CollectCodeFixesActions (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Generic.List1[T] codeActions) [0x001c1] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].GetAvailableCodeActions (OmniSharp.Models.V2.CodeActions.ICodeActionRequest request) [0x001a4] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.GetCodeActionsService.Handle (OmniSharp.Models.V2.CodeActions.GetCodeActionsRequest request) [0x0006b] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].GetFirstNotEmptyResponseFromHandlers (OmniSharp.Endpoint.Exports.ExportHandler2[TRequest,TResponse][] handlers, TRequest request) [0x00099] in <5f96298298f74346ad96eb79547a94e4>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].HandleRequestForLanguage (System.String language, TRequest request, OmniSharp.Protocol.RequestPacket packet) [0x00163] in <5f96298298f74346ad96eb79547a94e4>:0 \\n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].Process (OmniSharp.Protocol.RequestPacket packet, OmniSharp.Endpoint.LanguageModel model, Newtonsoft.Json.Linq.JToken requestObject) [0x0024b] in <5f96298298f74346ad96eb79547a94e4>:0 \n at OmniSharp.Stdio.Host.HandleRequest (System.String json, Microsoft.Extensions.Logging.ILogger logger) [0x000f3] in <25aad3e40a2c409a9df3868c7895a306>:0 \nSystem.TypeLoadException: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.\"", "Body": null, "Seq": 126, "Type": "response" }

    No symbol found. File: /Users/lech/work/Intuiflow.Identity/Service/App.cs, Line: 7, Column: 19.
    ************ Request ************

{ "Type": "request", "Seq": 55, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "/Users/lech/work/Intuiflow.Identity/Service/App.cs", "Line": 7, "Column": 19 } }

    ************  Response (19.4915ms) ************ 

{ "Request_seq": 55, "Command": "/v2/getcodeactions", "Running": true, "Success": false, "Message": "\"System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.\nCould not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.\n at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)\n at System.Reflection.Assembly.GetTypes () [0x00000] in <36514b14425c4337b446653c547aa9c3>:0 \n at System.Reflection.Assembly+d__127.MoveNext () [0x0001e] in <36514b14425c4337b446653c547aa9c3>:0 \n at System.Linq.Enumerable+SelectManySingleSelectorIterator2[TSource,TResult].MoveNext () [0x0006f] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Linq.Enumerable+WhereSelectEnumerableIterator2[TSource,TResult].MoveNext () [0x00059] in <14c1495deda74532849f8ec10b438611>:0 \n at System.Linq.Enumerable+WhereEnumerableIterator1[TSource].MoveNext () [0x0004e] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.LargeArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable1[T] items) [0x0003d] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.SparseArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable1[T] items) [0x00000] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.SparseArrayBuilder1[T].ReserveOrAdd (System.Collections.Generic.IEnumerable1[T] items) [0x00017] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Linq.Enumerable+Concat2Iterator1[TSource].ToArray () [0x00015] in <14c1495deda74532849f8ec10b438611>:0 \n at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x0001f] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Immutable.ImmutableArray.CreateRange[T] (System.Collections.Generic.IEnumerable1[T] items) [0x0004d] in :0 \n at System.Collections.Immutable.ImmutableArray.ToImmutableArray[TSource] (System.Collections.Generic.IEnumerable1[T] items) [0x0000f] in <be358f84962848a48784e4a9d001abe1>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects.LoadFrom (Microsoft.CodeAnalysis.Project project) [0x000d5] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects.GetAllCodeFixesForProject (Microsoft.CodeAnalysis.ProjectId projectId) [0x00045] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].GetSortedCodeFixProviders (Microsoft.CodeAnalysis.Document document) [0x00011] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].AppendFixesAsync (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Generic.IEnumerable1[T] diagnostics, System.Collections.Generic.List1[T] codeActions) [0x0003e] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].CollectCodeFixesActions (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Generic.List1[T] codeActions) [0x001c1] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].GetAvailableCodeActions (OmniSharp.Models.V2.CodeActions.ICodeActionRequest request) [0x001a4] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.GetCodeActionsService.Handle (OmniSharp.Models.V2.CodeActions.GetCodeActionsRequest request) [0x0006b] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].GetFirstNotEmptyResponseFromHandlers (OmniSharp.Endpoint.Exports.ExportHandler2[TRequest,TResponse][] handlers, TRequest request) [0x00099] in <5f96298298f74346ad96eb79547a94e4>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].HandleRequestForLanguage (System.String language, TRequest request, OmniSharp.Protocol.RequestPacket packet) [0x00163] in <5f96298298f74346ad96eb79547a94e4>:0 \\n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].Process (OmniSharp.Protocol.RequestPacket packet, OmniSharp.Endpoint.LanguageModel model, Newtonsoft.Json.Linq.JToken requestObject) [0x0024b] in <5f96298298f74346ad96eb79547a94e4>:0 \n at OmniSharp.Stdio.Host.HandleRequest (System.String json, Microsoft.Extensions.Logging.ILogger logger) [0x000f3] in <25aad3e40a2c409a9df3868c7895a306>:0 \nSystem.TypeLoadException: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.\"", "Body": null, "Seq": 132, "Type": "response" }

    ************ Request ************

{ "Type": "request", "Seq": 57, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "/Users/lech/work/Intuiflow.Identity/Service/App.cs", "Line": 7, "Column": 14 } }

    ************  Response (20.5377ms) ************ 

{ "Request_seq": 57, "Command": "/v2/getcodeactions", "Running": true, "Success": false, "Message": "\"System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.\nCould not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.\n at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)\n at System.Reflection.Assembly.GetTypes () [0x00000] in <36514b14425c4337b446653c547aa9c3>:0 \n at System.Reflection.Assembly+d__127.MoveNext () [0x0001e] in <36514b14425c4337b446653c547aa9c3>:0 \n at System.Linq.Enumerable+SelectManySingleSelectorIterator2[TSource,TResult].MoveNext () [0x0006f] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Linq.Enumerable+WhereSelectEnumerableIterator2[TSource,TResult].MoveNext () [0x00059] in <14c1495deda74532849f8ec10b438611>:0 \n at System.Linq.Enumerable+WhereEnumerableIterator1[TSource].MoveNext () [0x0004e] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.LargeArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable1[T] items) [0x0003d] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.SparseArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable1[T] items) [0x00000] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.SparseArrayBuilder1[T].ReserveOrAdd (System.Collections.Generic.IEnumerable1[T] items) [0x00017] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Linq.Enumerable+Concat2Iterator1[TSource].ToArray () [0x00015] in <14c1495deda74532849f8ec10b438611>:0 \n at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x0001f] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Immutable.ImmutableArray.CreateRange[T] (System.Collections.Generic.IEnumerable1[T] items) [0x0004d] in :0 \n at System.Collections.Immutable.ImmutableArray.ToImmutableArray[TSource] (System.Collections.Generic.IEnumerable1[T] items) [0x0000f] in <be358f84962848a48784e4a9d001abe1>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects.LoadFrom (Microsoft.CodeAnalysis.Project project) [0x000d5] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects.GetAllCodeFixesForProject (Microsoft.CodeAnalysis.ProjectId projectId) [0x00045] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].GetSortedCodeFixProviders (Microsoft.CodeAnalysis.Document document) [0x00011] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].AppendFixesAsync (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Generic.IEnumerable1[T] diagnostics, System.Collections.Generic.List1[T] codeActions) [0x0003e] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].CollectCodeFixesActions (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Generic.List1[T] codeActions) [0x001c1] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].GetAvailableCodeActions (OmniSharp.Models.V2.CodeActions.ICodeActionRequest request) [0x001a4] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.GetCodeActionsService.Handle (OmniSharp.Models.V2.CodeActions.GetCodeActionsRequest request) [0x0006b] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].GetFirstNotEmptyResponseFromHandlers (OmniSharp.Endpoint.Exports.ExportHandler2[TRequest,TResponse][] handlers, TRequest request) [0x00099] in <5f96298298f74346ad96eb79547a94e4>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].HandleRequestForLanguage (System.String language, TRequest request, OmniSharp.Protocol.RequestPacket packet) [0x00163] in <5f96298298f74346ad96eb79547a94e4>:0 \\n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].Process (OmniSharp.Protocol.RequestPacket packet, OmniSharp.Endpoint.LanguageModel model, Newtonsoft.Json.Linq.JToken requestObject) [0x0024b] in <5f96298298f74346ad96eb79547a94e4>:0 \n at OmniSharp.Stdio.Host.HandleRequest (System.String json, Microsoft.Extensions.Logging.ILogger logger) [0x000f3] in <25aad3e40a2c409a9df3868c7895a306>:0 \nSystem.TypeLoadException: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.\"", "Body": null, "Seq": 136, "Type": "response" }

    ************ Request ************

{ "Type": "request", "Seq": 58, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "/Users/lech/work/Intuiflow.Identity/Service/App.cs", "Line": 7, "Column": 22 } }

    ************  Response (19.8572ms) ************ 

{ "Request_seq": 58, "Command": "/v2/getcodeactions", "Running": true, "Success": false, "Message": "\"System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.\nCould not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.\n at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)\n at System.Reflection.Assembly.GetTypes () [0x00000] in <36514b14425c4337b446653c547aa9c3>:0 \n at System.Reflection.Assembly+d__127.MoveNext () [0x0001e] in <36514b14425c4337b446653c547aa9c3>:0 \n at System.Linq.Enumerable+SelectManySingleSelectorIterator2[TSource,TResult].MoveNext () [0x0006f] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Linq.Enumerable+WhereSelectEnumerableIterator2[TSource,TResult].MoveNext () [0x00059] in <14c1495deda74532849f8ec10b438611>:0 \n at System.Linq.Enumerable+WhereEnumerableIterator1[TSource].MoveNext () [0x0004e] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.LargeArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable1[T] items) [0x0003d] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.SparseArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable1[T] items) [0x00000] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.SparseArrayBuilder1[T].ReserveOrAdd (System.Collections.Generic.IEnumerable1[T] items) [0x00017] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Linq.Enumerable+Concat2Iterator1[TSource].ToArray () [0x00015] in <14c1495deda74532849f8ec10b438611>:0 \n at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x0001f] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Immutable.ImmutableArray.CreateRange[T] (System.Collections.Generic.IEnumerable1[T] items) [0x0004d] in :0 \n at System.Collections.Immutable.ImmutableArray.ToImmutableArray[TSource] (System.Collections.Generic.IEnumerable1[T] items) [0x0000f] in <be358f84962848a48784e4a9d001abe1>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects.LoadFrom (Microsoft.CodeAnalysis.Project project) [0x000d5] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects.GetAllCodeFixesForProject (Microsoft.CodeAnalysis.ProjectId projectId) [0x00045] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].GetSortedCodeFixProviders (Microsoft.CodeAnalysis.Document document) [0x00011] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].AppendFixesAsync (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Generic.IEnumerable1[T] diagnostics, System.Collections.Generic.List1[T] codeActions) [0x0003e] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].CollectCodeFixesActions (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Generic.List1[T] codeActions) [0x001c1] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].GetAvailableCodeActions (OmniSharp.Models.V2.CodeActions.ICodeActionRequest request) [0x001a4] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.GetCodeActionsService.Handle (OmniSharp.Models.V2.CodeActions.GetCodeActionsRequest request) [0x0006b] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].GetFirstNotEmptyResponseFromHandlers (OmniSharp.Endpoint.Exports.ExportHandler2[TRequest,TResponse][] handlers, TRequest request) [0x00099] in <5f96298298f74346ad96eb79547a94e4>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].HandleRequestForLanguage (System.String language, TRequest request, OmniSharp.Protocol.RequestPacket packet) [0x00163] in <5f96298298f74346ad96eb79547a94e4>:0 \\n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].Process (OmniSharp.Protocol.RequestPacket packet, OmniSharp.Endpoint.LanguageModel model, Newtonsoft.Json.Linq.JToken requestObject) [0x0024b] in <5f96298298f74346ad96eb79547a94e4>:0 \n at OmniSharp.Stdio.Host.HandleRequest (System.String json, Microsoft.Extensions.Logging.ILogger logger) [0x000f3] in <25aad3e40a2c409a9df3868c7895a306>:0 \nSystem.TypeLoadException: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.\"", "Body": null, "Seq": 139, "Type": "response" }

    ************ Request ************

{ "Type": "request", "Seq": 59, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "/Users/lech/work/Intuiflow.Identity/Service/App.cs", "Line": 7, "Column": 22 } }

    ************  Response (18.5858ms) ************ 

{ "Request_seq": 59, "Command": "/v2/getcodeactions", "Running": true, "Success": false, "Message": "\"System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.\nCould not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.\n at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)\n at System.Reflection.Assembly.GetTypes () [0x00000] in <36514b14425c4337b446653c547aa9c3>:0 \n at System.Reflection.Assembly+d__127.MoveNext () [0x0001e] in <36514b14425c4337b446653c547aa9c3>:0 \n at System.Linq.Enumerable+SelectManySingleSelectorIterator2[TSource,TResult].MoveNext () [0x0006f] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Linq.Enumerable+WhereSelectEnumerableIterator2[TSource,TResult].MoveNext () [0x00059] in <14c1495deda74532849f8ec10b438611>:0 \n at System.Linq.Enumerable+WhereEnumerableIterator1[TSource].MoveNext () [0x0004e] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.LargeArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable1[T] items) [0x0003d] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.SparseArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable1[T] items) [0x00000] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Generic.SparseArrayBuilder1[T].ReserveOrAdd (System.Collections.Generic.IEnumerable1[T] items) [0x00017] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Linq.Enumerable+Concat2Iterator1[TSource].ToArray () [0x00015] in <14c1495deda74532849f8ec10b438611>:0 \n at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x0001f] in <14c1495deda74532849f8ec10b438611>:0 \\n at System.Collections.Immutable.ImmutableArray.CreateRange[T] (System.Collections.Generic.IEnumerable1[T] items) [0x0004d] in :0 \n at System.Collections.Immutable.ImmutableArray.ToImmutableArray[TSource] (System.Collections.Generic.IEnumerable1[T] items) [0x0000f] in <be358f84962848a48784e4a9d001abe1>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects.LoadFrom (Microsoft.CodeAnalysis.Project project) [0x000d5] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects.GetAllCodeFixesForProject (Microsoft.CodeAnalysis.ProjectId projectId) [0x00045] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].GetSortedCodeFixProviders (Microsoft.CodeAnalysis.Document document) [0x00011] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].AppendFixesAsync (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Generic.IEnumerable1[T] diagnostics, System.Collections.Generic.List1[T] codeActions) [0x0003e] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].CollectCodeFixesActions (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Collections.Generic.List1[T] codeActions) [0x001c1] in <7833e4dfb11c41969fc8bb341c494975>:0 \\n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService2[TRequest,TResponse].GetAvailableCodeActions (OmniSharp.Models.V2.CodeActions.ICodeActionRequest request) [0x001a4] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.GetCodeActionsService.Handle (OmniSharp.Models.V2.CodeActions.GetCodeActionsRequest request) [0x0006b] in <7833e4dfb11c41969fc8bb341c494975>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].GetFirstNotEmptyResponseFromHandlers (OmniSharp.Endpoint.Exports.ExportHandler2[TRequest,TResponse][] handlers, TRequest request) [0x00099] in <5f96298298f74346ad96eb79547a94e4>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].HandleRequestForLanguage (System.String language, TRequest request, OmniSharp.Protocol.RequestPacket packet) [0x00163] in <5f96298298f74346ad96eb79547a94e4>:0 \\n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].Process (OmniSharp.Protocol.RequestPacket packet, OmniSharp.Endpoint.LanguageModel model, Newtonsoft.Json.Linq.JToken requestObject) [0x0024b] in <5f96298298f74346ad96eb79547a94e4>:0 \n at OmniSharp.Stdio.Host.HandleRequest (System.String json, Microsoft.Extensions.Logging.ILogger logger) [0x000f3] in <25aad3e40a2c409a9df3868c7895a306>:0 \nSystem.TypeLoadException: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.\"", "Body": null, "Seq": 142, "Type": "response" }

C# log

N/A

Environment information

VSCode version: 1.64.2 C# Extension: 1.24.0

Mono Information OmniSharp using built-in mono
Dotnet Information .NET SDK (reflecting any global.json): Version: 6.0.200 Commit: 4c30de7899 Runtime Environment: OS Name: Mac OS X OS Version: 12.1 OS Platform: Darwin RID: osx.12-x64 Base Path: /usr/local/share/dotnet/sdk/6.0.200/ Host (useful for support): Version: 6.0.2 Commit: 839cdfb0ec .NET SDKs installed: 6.0.200 [/usr/local/share/dotnet/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 6.0.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download
Visual Studio Code Extensions |Extension|Author|Version| |---|---|---| |Angular2|johnpapa|12.0.0| |azure-account|ms-vscode|0.10.0| |cpptools|ms-vscode|1.8.4| |crates|serayuzgur|0.5.10| |csharp|ms-dotnettools|1.24.0| |fabric8-analytics|redhat|0.3.5| |gitlens|eamodio|11.7.0| |go|golang|0.31.1| |gotestexplorer|premparihar|0.1.13| |hexeditor|ms-vscode|1.9.4| |java|redhat|1.3.0| |jupyter|ms-toolsai|2022.1.1301854968| |jupyter-keymap|ms-toolsai|1.0.0| |jupyter-renderers|ms-toolsai|1.0.6| |live-server|ms-vscode|0.2.12| |LiveServer|ritwickdey|5.7.4| |markdown-preview-github-styles|bierner|1.0.1| |ng-template|Angular|13.2.3| |nugetpackagemanagergui|aliasadidev|1.1.9| |prettier-vscode|esbenp|9.2.0| |project-manager|alefragnani|12.5.0| |python|ms-python|2022.0.1814523869| |remote-containers|ms-vscode-remote|0.217.4| |remote-ssh|ms-vscode-remote|0.74.0| |remote-ssh-edit|ms-vscode-remote|0.74.0| |rest-client|humao|0.24.6| |rust|rust-lang|0.7.8| |rust-analyzer|matklad|0.2.940| |rust-pack|Swellaby|0.2.29| |scala|scala-lang|0.5.5| |spellright|ban|3.0.60| |test-adapter-converter|ms-vscode|0.1.5| |vscode-commons|redhat|0.0.6| |vscode-docker|ms-azuretools|1.19.0| |vscode-dotnet-runtime|ms-dotnettools|1.5.0| |vscode-java-debug|vscjava|0.38.0| |vscode-kubernetes-tools|ms-kubernetes-tools|1.3.6| |vscode-lldb|vadimcn|1.6.10| |vscode-mysql-client2|cweijan|4.6.0| |vscode-postgresql|ms-ossdata|0.3.0| |vscode-proto3|zxh404|0.5.5| |vscode-pylance|ms-python|2022.2.3| |vscode-sqlite|alexcvzz|0.14.0| |vscode-test-explorer|hbenl|2.21.1| |vscode-typescript-tslint-plugin|ms-vscode|1.3.3| |vscode-wasm|dtsvet|1.3.1| |vscode-xml|redhat|0.19.1| |vscode-yaml|redhat|1.4.0|;
Create-For-Fun commented 2 years ago

ควย

lechgu commented 2 years ago

note: downgrading dotnet to 6.0.102 seems to be a workaround

lechgu commented 2 years ago

looking to the exception in the log seems to be related to this: https://github.com/dotnet/sdk/issues/23972

filipw commented 2 years ago

There is no OmniSharp release with support for 6.0.200, however the master branch of the server already has it. Setting "omnisharp.path":"latest" should resolve this, but it will opt you into every prerelease from master so it is not a stable long term solution, and after the next release you will want to remove it.

lechgu commented 2 years ago

@filipw thanks, it is probably easier to go back to 6.0.100 and wait a little until things stabilize.

filipw commented 2 years ago

OmniSharp 1.38.1 with support for SDK 6.0.200 was released yesterday https://github.com/OmniSharp/omnisharp-roslyn/blob/master/CHANGELOG.md#1381---2022-02-18

Next step will be for the C# extension to update to that OmniSharp version and release its own update to marketplace.

ManfredLange commented 2 years ago

Thank you for releasing a fixed version so quickly @filipw

This problem is also present when using the linux-based docker images with the preinstalled SDK. It then also manifests as the message "No code actions available" when using Ctrl+'.'

E.g. code actions are available when using mcr.microsoft.com/dotnet/sdk:6.0.102 (most of the time, at times requires a reload of the VS Code Window). Code actions are NOT available when using mcr.microsoft.com/dotnet/sdk:6.0.200.

This is for VS Code Extension ms-dotnettools.csharp version 1.24.0.

As Omnisharp version 1.38.1 is now available, I'm now waiting for a new version of ms-dotnettools.csharp extension to include the updated Omnisharp version. Luckily changing the SDK version is just a one-line change in our environment, so will be easy to try out.