hie-bios icon indicating copy to clipboard operation
hie-bios copied to clipboard

WIP for cabal show-build-info

Open fendor opened this issue 3 years ago • 1 comments

Use features from https://github.com/haskell/cabal/pull/7478

Starts work on #269

fendor avatar Jul 09 '21 06:07 fendor

I guess it is using (or it can use) the already merged https://github.com/haskell/cabal/pull/7498

jneira avatar Oct 18 '21 08:10 jneira

I'm curious, with upstream support in Cabal seemingly now implemented, is there anything blocking this? There are a lot of issues in HLS which mention this as the solution.

georgefst avatar Oct 04 '23 13:10 georgefst

Yeah, there are unfortunately a couple of open issues :sweat_smile: Also, #409 essentially implements proper multi-home unit support without show-build-info.

fendor avatar Oct 04 '23 15:10 fendor

But #409 doesn't solve the issue of the user having to manually load all the right components to prevent errors like https://github.com/haskell/haskell-language-server/issues/1370. I thought the point of show-build-info was that it finally gives us the information we need in order to know which components to load.

georgefst avatar Oct 04 '23 20:10 georgefst

But #409 doesn't solve the issue of the user having to manually load all the right components to prevent errors like haskell/haskell-language-server#1370.

Or maybe it does? I just noticed from https://github.com/haskell/haskell-language-server/issues/3738 that the latest HLS release doesn't incorporate those commits yet.

georgefst avatar Oct 04 '23 20:10 georgefst

But https://github.com/haskell/hie-bios/pull/409 doesn't solve the issue of the user having to manually load all the right components to prevent errors like https://github.com/haskell/haskell-language-server/issues/1370. I thought the point of show-build-info was that it finally gives us the information we need in order to know which components to load.

It does! Conceptually, cabal repl --enable-multi-repl computes all the components you need to load into ghci, invokes ghci via ghci @args.unitA.txt @args.unitB.txt and HLS simply looks at these args and sets up the session appropriately. Currently, the only advantage seems to be that show-build-info uses a well-defined interface instead of the hacky cabal repl -w hie-bios-ghc solution.

fendor avatar Oct 05 '23 07:10 fendor

Aha, awesome! Well then, I very much look forward to HLS being released with the new hie-bios.

georgefst avatar Oct 05 '23 09:10 georgefst

I currently don't intend to work on this and it should be superseded by #409

fendor avatar Nov 06 '23 15:11 fendor