-
-
Notifications
You must be signed in to change notification settings - Fork 389
same hs-source-dirs for multiple components causes confusion #3606
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
Thank you for the bug report! This is a bug in You can work around it by adding an explicit cradle:
cabal: I can confirm from my personal experience on cabal, that this works much better. |
Thanks @fendor, your workaround does the trick! I did endup using a hie.yaml file but I didn't realise a simple one like that would be enough! Edit: indeed this is what
|
The simple cabal cradle uses |
Should be fixed now we're not using implicit-hie |
I am troubleshooting haskell-language-server doing something wrong on the cabal repository. If I do:
which is wrong because
IntegrationTests2
is part of the test-suite integration-tests2 which has indeedtagged
among its build-depens.to confirm I can do
which works ok.
I suspect that this happens because multiple components
hs-source-dirs: tests
and indeed adding--debug
to hls showswhich is indeed the wrong component.
I checked directly with hie-bios (version 0.12.0) and it gets the component right
Your environment
Which OS do you use? Linux
Which version of GHC do you use and how did you install it? 9.4.5, via ghcup
How is your project built (alternative: link to the project)? https://github.com/haskell/cabal/
Which LSP client (editor/plugin) do you use? N/A
Which version of HLS do you use and how did you install it? 2.0.0.0 from ghcup
Have you configured HLS in any way (especially: a
hie.yaml
file)? NoThe text was updated successfully, but these errors were encountered: