Skip to content

HLS and CoC Nvim providing incorrect errors #290

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

Closed
drsooch opened this issue Aug 5, 2020 · 1 comment
Closed

HLS and CoC Nvim providing incorrect errors #290

drsooch opened this issue Aug 5, 2020 · 1 comment

Comments

@drsooch
Copy link
Collaborator

drsooch commented Aug 5, 2020

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.

@drsooch drsooch closed this as completed Aug 5, 2020
@drsooch
Copy link
Collaborator Author

drsooch commented Aug 5, 2020

It was ALE, I'm very dumb. Sorry.

pepeiborra added a commit that referenced this issue Dec 27, 2020
* Test for #45

* Remove redundant symbols from imports

Fixes #45

* Update src/Development/IDE/LSP/CodeAction.hs

Co-Authored-By: Andreas Herrmann <[email protected]>

* Apply suggestions from code review

Co-Authored-By: Andreas Herrmann <[email protected]>

* Add regex-tdfa extra deps to ghc-lib build

* Fix for GHC 8.4 (error message prints qualified binding)

GHC ticket #14881 changed this to print identifiers unqualified

* dropBindingsFromImportLine: make total

Co-authored-by: Andreas Herrmann <[email protected]>
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

1 participant