haskell-language-server icon indicating copy to clipboard operation
haskell-language-server copied to clipboard

Implicit cradle discovery should have an explanation

Open fendor opened this issue 8 months ago • 1 comments

The implicit cradle is the heuristic that determines which cradle a project is using if no hie.yaml file is given.

The heuristic takes the installed binaries, project configs and pre-existing build artefacts into account. However, it is not always obvious as a user which cradle was chosen and for what reason.

Solution: Let's log which implicit cradle was chosen and for what reason. The logic is located in https://github.com/haskell/haskell-language-server/blob/master/ghcide/session-loader/Development/IDE/Session/Implicit.hs#L46, should mainly be a matter of adding appropriate logs at INFO level.

fendor avatar May 02 '25 08:05 fendor

I can take a stab

alexfmpe avatar May 02 '25 13:05 alexfmpe