Skip to content

Haskell Language Server seems to enter infinite loop with concrete hie.yaml #566

Closed
@jaunruh

Description

@jaunruh

I am trying to make a setup where I use an existing repo and add one of its dependencies to the folder. My goal is changing the source code for both repos together. I also need the hover documentation.

My root folder looks like this:

pandoc/
- src/
- pandoc.cabal
- cabal.project
- hie.yaml
- stack.yaml
- [... other stuff from the repo ...] 
- pandoc-types/
-- src/
-- pandoc-types.cabal
-- cabal.project
-- stack.yaml
-- [... other stuff from the repo ...]

I have tried to set up the hie.yaml file according to the documentation and using this tool. In both cases the language server keeps restarting 5 times and stops running after that with the following error message: The Haskell (pandoc_haskell) server crashed 5 times in the last 3 minutes. The server will not be restarted.

Attach you will find the Log file and the <>.cabal file as well as other relevant files.
haskell-loop.zip

Am I doing something wrong or is this a bug?

02.11.2020 21:14GMT :: EDIT: (after labels where applied to issue)
When using the hie.yaml file from the .zip file above. The infinite loop arises. It seems like the pandoc-types-1.22 repo is downloaded in that case (appears in ./dist-newstyle). This might either be a bug or an error in my <>.cabal file.

But when using the following hie.yaml file:

cradle:
  stack:
    - path: "./pandoc-types/src"
      component: "pandoc-types:lib"

    - path: "./src"
      component: "pandoc:lib"

    - path: "."
      component: "pandoc:exe:pandoc"

The language server seems to start normally (and pandoc-types-1.22 is not downloaded to ./stack-work). But documentation on hover still seems to be broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs infoNot actionable, because there's missing informationtype: 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