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

F# Language Server crashed 5 times in the last 3 minutes #43

Open
dustinmoris opened this issue Feb 9, 2019 · 8 comments
Open

F# Language Server crashed 5 times in the last 3 minutes #43

dustinmoris opened this issue Feb 9, 2019 · 8 comments

Comments

@dustinmoris
Copy link

dustinmoris commented Feb 9, 2019

Hi,

I installed this extension to test it on one of my projects but after opening my project in VSCode the F# Language Server crashed almost immediately and keeps crashing when I restart VSCode.

The message is:

...
  LoadTime: 02/06/2019 19:13:21
  ExtraProjectInfo: <null>
  IsIncompleteTypeCheckEnvironment: false
  OriginalLoadReferences: []
  ExtraProjectInfo: <null>
  Stamp: <null>
  UnresolvedReferences: <null>
  UseScriptResolutionRules: false
Checked Core.fs in 6398ms
Found 0 unused declarations in 74ms
[Trace - 9:34:13 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {
    "uri": "file:///Users/<redacted>/GitHub/<redacted>/src/<redacted>/Domain/Core.fs",
    "diagnostics": []
}


Process is terminating due to StackOverflowException.
[Error - 9:34:13 AM] Connection to server got closed. Server will not be restarted.

Looking through the logs, it seems that it picked up the Core.fs file of my project first, then was scanning for projects which reference this file and started to crack open the one .fsproj which has this file.

I notice many conflicts during dependency resolution which are like this:

Conflict between [("/Users/<redacted>/.nuget/packages/system.collections/4.3.0/ref/netstandard1.3/System.Collections.dll",
  "System.Collections", 4.0.10.0);
 ("/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.2.0/ref/netcoreapp2.2/System.Collections.dll",
  "System.Collections", 4.1.1.0)], chose /usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.2.0/ref/netcoreapp2.2/System.Collections.dll
@georgewfraser
Copy link
Collaborator

Those conflict messages are normal, .net project rules are very complicated and we have to rely on heuristics to resolve ambiguities. Those conflict warnings are logging the choices we're making.

If you could make a minimal example that reproduces the problem, that would help diagnose. As it is, it's hard to tell what caused the crash---everything up to Process is terminating due to StackOverflowException. looks normal.

@dustinmoris
Copy link
Author

If you could make a minimal example that reproduces the problem, that would help diagnose.

Sorry for the late response. Thanks for getting back and I'll try to see if I can reproduce it with a much smaller application by slowly removing files. I'll post it here when I have something for you to look at.

Also I think #45 might be related.

@floyd-may
Copy link

Having the same trouble. Not really even sure how to get diagnostics, the VSCode command to show logs is also bombing out.

@WhiteSharq
Copy link

Faced this problem too. By default Ionide installs version 5.xx. Solved by installing previous one (4.17)

@baronfel
Copy link

baronfel commented Jan 6, 2021

@WhiteSharq note that this repo is not the Ionide repo. Any notes about it should go to Ionide/ionide-vscode-fsharp.

@alarbada
Copy link

If helps anyone, I had this problem after cloning the SAFE dojo repo. I just opened vscode in a child folder, I wasn't at the root of the project.

@ladaltamirano
Copy link

It's been a year since this is not fixed. I've tried everything mentioned in this repo and github.com/ionide/ionide-vscode-fsharp and this message about the server crashing is still there.

@baronfel
Copy link

It's probably Ionide failing, not this project. Please direct all ire over onto the Ionide repo.

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

7 participants