haskell / haskell/haskell-language-server

Implicit cradle discovery should have an explanation

Open
#4,575 1 comment 2 reactions 0 assignees View on GitHub
component: ghcide level: easy type: enhancement
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
2d 19h
Merged PRs (30d)
11

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.