Skip to content

HIE crashes if there is no "ghc" on the path with explicit stack config #60

Closed
@fendor

Description

@fendor

Reproduce:

stack new test 
cd test/ 
stack build
echo "cradle: { stack: {}}" > hie.yaml
code .

where code . is an arbitrary lsp-client.

Log contains following error message if there is no "ghc" on the path:

hie: ghc: readCreateProcess: runInteractiveProcess: exec: does not exist (No such file or directory)

Expected behaviour:
A stack cradle should work even if there is no ghc on the path, since stack is supposed to manage the ghc installations.

Possible solutions: in HieWrapper, if project is a stack project, execute hie with stack exec hie.

cc @mpickering

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions