-
-
Notifications
You must be signed in to change notification settings - Fork 389
HLS reports non-existent errors when using Calamity and Polysemy with Polysemy.Plugin (polysemy-plugin) #2989
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
Comments
It's worth pointing out that these are the exact error messages you get from |
It appears this is 9.2 specific. On 8.10.7 and 9.0.2 HLS does not raise any of the errors. |
This also happens with effectful-plugin |
I think @pepeiborra did the 9.2 compatibility work? Did something change wrt plugins? |
I'm having same issue with Can anyone confirm this behavior? |
@sonowz that is correct. interestingly, I've been observing this kind of misbehaviour ever since, but only very infrequently. With GHC 9.2, it is now permanent. |
Completely forgot about this, but I had this issue with Ran into it again today when using |
In my case upgrading to HLS 1.9.0.0 fixed this issue, thanks to #3309. |
same, everything's working now |
Yep, this should have been fixed in 1.9.0.0. |
haskell-language-server-wrapper --probe-tools:
(I launched HLS in the terminal with
haskell-language-server-wrapper
to provide the errors it reports in the paste below)HLS reports errors that seem to not exist, because building & running the project works, and testing the program results in correct behaviour. I have this paste: https://bpa.st/J32A which has the Main.hs and the errors that HLS thinks exist. The git repository is provided later on in this issue.
Your environment
Which OS do you use:
Arch Linux (Artix variant)
Which LSP client (editor/plugin) do you use:
doom emacs+lsp-mode
Describe your project (alternative: link to the project): https://git.sr.ht/~monaaraj/bot
Steps to reproduce
I just run doom emacs and open up my project. This issue happens only with this calamity and polysemy (with polysemy-plugin) project, HLS acts well in every other project I have.
Expected behaviour
The program should be deemed without error, if GHC builds and runs the program, with the program successfully running without issue.
Actual behaviour
HLS reports very very weird errors regarding Internal.Typeable things, P.Member instance overlaps, ambiguous use of type variables... the specific errors have been provided in the bpaste link above.
Include debug information
The HLS log seems to be too long to be pasted to any paste service, so I have provided it as an attachment file:
hls.log
The text was updated successfully, but these errors were encountered: