Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fendor opened this issue Nov 19, 2019 · 1 comment
Closed

Comments

@fendor
Copy link
Collaborator

fendor commented Nov 19, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant