Skip to content

Implicit cradle discovery should have an explanation #4575

@fendor

Description

@fendor

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions