Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ionide 7.3, Crashes with SQLProvider project #1793

Open
OnurGumus opened this issue Oct 17, 2022 · 1 comment
Open

ionide 7.3, Crashes with SQLProvider project #1793

OnurGumus opened this issue Oct 17, 2022 · 1 comment

Comments

@OnurGumus
Copy link

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 Ionide.LanguageServerProtocol.Server.start@268-2.Invoke(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 FsAutoComplete.Parser.lspFactory@146-1.Invoke(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
@baronfel
Copy link
Contributor

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants