Skip to content

HLS crashes with "The Haskell (<proj>) server crashed 5 times in the last 3 minutes. The server will not be restarted." #1342

Closed
@levans

Description

@levans

Your environment

HLS 0.9.0
Running in a stack project sandbox
Hardware is a MacBookPro (2019) with macOS 11.2

Which lsp-client do you use: VSCode (HLS 0.9.0 is automatically downloaded by

Describe your project (alternative: link to the project):
Fails with all my yesod projects, and the basic scaffold project generated with:

stack new nasty yesodweb/postgres

Steps to reproduce

  1. Generate a new yesod postgres scaffold project: stack new nasty yesodweb/postgres
  2. Open project folder in VSCode and select a .hs file

Hopefully, this is easy to reproduce, given that the entire project can easily be generated from scaffold.
However, I will attempt to narrow the conditions by stripping the project further and will post and insights as addendums.

Expected behaviour

Expected that the metadata would be built successfully and session could continue as normal

Actual behaviour

"Processing" status line message shows stepping though files but resets several times until the final failure notification is displayed and the extension is disabled due to restarts.

Include debug information

Execute in the root of your project the command haskell-language-server --debug . and paste the logs here:

Debug output:
<paste your logs here>

Paste the logs from the lsp-client, e.g. for VS Code

LSP logs:
<paste your logs here>

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: ghcideos: macostype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions