Skip to content
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

All commands fail unless ghc is on the PATH (master) #4466

Closed
snoyberg opened this issue Dec 27, 2018 · 2 comments · Fixed by #4467
Closed

All commands fail unless ghc is on the PATH (master) #4466

snoyberg opened this issue Dec 27, 2018 · 2 comments · Fixed by #4467

Comments

@snoyberg
Copy link
Contributor

Steps to reproduce

  1. Install latest Stack from master (1bbed48)
  2. Run stack path or any other command

Expected

The command to succeed

Actual

Get an error along the lines of:

Executable named ghc not found on path: [...]

Stack version

$ stack --version
Version 1.10.0, Git revision 1bbed48cf22ecc7a3fa3ed230e1cc6354fdf809f (dirty) (6717 commits) x86_64 hpack-0.31.1

More info

The hashSourceMapData function is calling proc compilerExe ["--info"] readProcess, which seems to be where this error message is coming from. I don't know why Stack isn't using the modified process execution environment to find the appropriate GHC.

@snoyberg snoyberg added this to the P0: Blocking release milestone Dec 27, 2018
@silky
Copy link
Contributor

silky commented Dec 27, 2018

this is what i reported here: #4465

@snoyberg
Copy link
Contributor Author

Thanks for reporting @silky, sorry I didn't notice. @qrilka got this fixed on master now, please check it out and confirm for yourself when you have a chance.

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

Successfully merging a pull request may close this issue.

2 participants