Skip to content

HLS and CoC Nvim providing incorrect errors #290

Closed
@drsooch

Description

@drsooch

I used to use HIE with vim, before I moved to spacemacs for a while. I wanted to go back to vim so I decided on nvim. I've been following the transition from HIE to HLS, so I went ahead and downloaded and built HLS. I followed the instructions to add the language server to CoC, and it seems to work.

I also figured this was a good time to upgrade my GHC, for whatever reason I landed on GHC-8.8.3. My new stack project was created with stack new blah. I am using the LTS-16.8 which is the GHC-8.8.3 version. I've added Brick to my dependencies and it seemed to download everything properly.

When I go into my project and start editing. It seems HLS can't locate the Brick module or my main module. It gives me the classic module not found error. However, using stack build works properly.

If it helps:

  • The error appears even before the language server has started. I am not sure if that means this error is displayed from a different tool? Maybe stylish-haskell?
  • I have an hie-yaml file.
  • I should also note I had originally built the HLS and wrappers with GHC-8.6.5 (I think).
    • I ran into an issue where it said it can't start the 8.8.3 server that was built with 8.6.5 (makes sense)
    • So I deleted everything and rebuilt HLS with 8.8.3

If more information needs to be provided let me know, or if this "bug" is user error and not directly related to HLS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions