-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
Incorrect overlapping instances errors #3694
Comments
Likely related to the new multiple home units implementation, cc @wz1000 |
run in to the same problem
|
Is this still reproducible? |
Shoud be gone if we use multi-repl |
I'm still seeing this on 2.9.0.0. |
Did you try cabal 3.12's |
I've been also seeing this with HLS 2.9, Cabal 3.12, 9.4 ≦ GHC ≦ 9.10 even multi-repl enabled, haven't came up with minimal repro though. |
The error is gone for the HLS codebase with multi-repl enabled, is there another public repo that I can take a look at ? |
So I didn't realize that this was something not on by default. Adding But I'm now getting errors like the below in my "lsp-haskell::stderr" buffer (I'm using emacs with lsp-mode):
The path
|
Unfortunately I encounter this mainly within closed codebases. I sometimes encounter this in https://github.com/konn/ghc-wasm-earthly , but this repository suffers also mainly from source code plugin bugs and contains ~1000 autogenerated modules, so it might not be so suitable for diagnosing this issue I'm afraid. |
Same issue here, even with the very latest GHC 9.10 + Cabal 3.12 + HLS 2.9. |
Can I just get everyone to confirm that they're enabling multi-component support as described here? https://well-typed.com/blog/2024/07/hls-multi/ Also, you should be seeing a log like "Loading using all files (multi-component)" near the start. |
I have
(The linked source refers to "multiComponent" instead of "multipleComponents" but I think the latter is correct now (HLS complains about the former)) I am not seeing any message like "Loading using all files (multi-component)" in the stderr buffer. |
You should see
if it is using multiple units and
otherwise. It's an info level log so it should be there. |
OK I see Here's a pastebin for the logs. |
The config seems to be being set okay, but then we're still loading using single file mode for some reason? Sometimes we can't because e.g. your cabal version is too old, but I don't see any logs about that so I am currently confused. |
I can confirm that upgrading to the latest version of HLS and enabling |
This now works for me as well, with the latest version of lsp-haskell and |
Nop, using multipleComponents seems fine. |
I am getting a bunch of incorrect overlapping instances errors while running HLS HEAD on GHC 9.4 . I imagine it's something to do with the multi-home unit stuff. An example of these errors are:
The text was updated successfully, but these errors were encountered: