-
-
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
State of multiple home units for HLS #3738
Comments
I don't think its unreasonable to expect users to upgrade to cabal 3.12 to get this to work reliably. |
Right, but things need to work gracefully if they don't have it. Wasn't there an |
Yes, they will continue to work (or not work) as they currently have been.
I think |
In particular, the thing that I want to be true is that a user who has a new enough cabal and a new enough GHC should just get a multi-repl cradle, without having to do manual configuration. |
|
I think this is almost done, the only question in my mind is whether we're logging this clearly? |
I'm not sure if we have in fact got the usability bits I suggested in #3738 (comment) ? @fendor @wz1000 ? I do think it's quite important that we can turn this off and that it's clearly signalled in the logs. |
Indeed, as reported by haskell/cabal#9860, we do not have the desired usability bits in place, if I am not mistaken. However, it should be possible to implement the usability feature entirely on the HLS side. |
I think we can close this now! |
What a journey! Can't wait to migrate our project to cabal and start using it. |
Loading multiple cabal/stack components into HLS has been a pain point since its early beginnings.
Essentially, it allows us to provide diagnostics and code actions across components, such as libraries, executables, test suites, etc...
In this issue, we outline the current progress of native multiple home unit support.
--enable-multi-repl
support, added in 3.11 Add support for loading multiple components into one repl session cabal#8726This means, we have native multi repl support for cabal >=3.11 and GHC >=9.4 once hie-bios's #409 is merged and published.
However, not everyone can switch to
cabal-3.12
(once it is released), so we are thinking about adding custom support for older cabal versions, usingbuild-info
and exploiting the information fromplan.json
. The idea is as follows:build-info.json
build-info.json
files to find the build options of local components.The text was updated successfully, but these errors were encountered: