ionide-vscode-fsharp icon indicating copy to clipboard operation
ionide-vscode-fsharp copied to clipboard

ionide 7.3, Crashes with SQLProvider project

Open OnurGumus opened this issue 1 year ago • 1 comments

Describe the bug

When I open SQLProvider project with ionide it crashes 5 times as below

System.AggregateException: One or more errors occurred. (Could not load type 'range' from assembly 'FSharp.Compiler.Service, Version=41.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.)
 ---> System.TypeLoadException: Could not load type 'range' from assembly 'FSharp.Compiler.Service, Version=41.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
   at System.Reflection.RuntimeAssembly.GetExportedTypes()
   at FSharp.Analyzers.SDK.Client.mapping@1(String tupledArg0, Assembly tupledArg1) in C:\Users\chethusk\oss\FSharp.Analyzers.SDK\src\FSharp.Analyzers.SDK\FSharp.Analyzers.SDK.Client.fs:line 90
   at FSharp.Analyzers.SDK.Client.loadAnalyzers(String dir) in C:\Users\chethusk\oss\FSharp.Analyzers.SDK\src\FSharp.Analyzers.SDK\FSharp.Analyzers.SDK.Client.fs:line 88
   at FsAutoComplete.Lsp.FSharpLspServer.updateConfig(FSharpConfig newConfig) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/FsAutoComplete.Lsp.fs:line 457
   at <StartupCode$fsautocomplete>.$FsAutoComplete.Lsp.FsAutoComplete-Lsp-IFSharpLspServer-WorkspaceDidChangeConfiguration@2141-7.Invoke(Unit unitVar) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/FsAutoComplete.Lsp.fs:line 2149
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in D:\a\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 447
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in D:\a\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 104
   --- End of inner exception stack trace ---
   at Ionide.LanguageServerProtocol.Server.startWithSetup[client](FSharpFunc`2 setupRequestHandlings, Stream input, Stream output, FSharpFunc`2 clientCreator, FSharpFunc`2 customizeRpc) in /_//src/LanguageServerProtocol.fs:line 179
   at [email protected](FSharpFunc`2 customizeRpc) in /_//src/LanguageServerProtocol.fs:line 268
   at FsAutoComplete.Lsp.FSharpLspServerModule.startCore(ToolsPath toolsPath, DirectoryInfo stateStorageDir, FSharpFunc`2 workspaceLoaderFactory) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/FsAutoComplete.Lsp.fs:line 2910
   at [email protected](Unit unitVar0) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/Parser.fs:line 146
   at FsAutoComplete.Lsp.FSharpLspServerModule.start(FSharpFunc`2 startCore) in /home/runner/work/FsAutoComplete/FsAutoComplete/src/FsAutoComplete/LspServers/FsAutoComplete.Lsp.fs:line 2952

OnurGumus avatar Oct 17 '22 15:10 OnurGumus

This looks like we need to update the FSC used in the analyzers SDK to align with the one used by FSAC (which should be 41.0.6).

baronfel avatar Oct 17 '22 17:10 baronfel