hawk icon indicating copy to clipboard operation
hawk copied to clipboard

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

Open sboosali opened this issue 8 years ago • 2 comments

steps:

$ stack install haskell-awk
Copied executables to /Users/michaelboosalis/.local/bin:
- hawk

$ hawk
Usage ...

$ seq 0 3 | hawk -a 'L.reverse'
hawk: ghc: readCreateProcessWithExitCode: runInteractiveProcess: exec: does not exist (No such file or directory)

with:

OSX 10.11.5


$ cat stack.yaml
resolver: lts-6.1

$ stack exec -- ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.3

sboosali avatar Jul 15 '16 17:07 sboosali

Probably a duplicate of #155, which adds support for stack. Except it seems your symptoms are different?

gelisam avatar Jul 15 '16 18:07 gelisam

If I understand this correctly, every time the user modifies ~/.hawk/prelude.hs hawk will invoke ghc via System.Process.readProcessWithExitCode "ghc" to (re-)compile the user prelude. However, stack does not install a particular ghc in the $PATH. Of course, running stack exec hawk in the source base will compile successfully the prelude and one can use hawk thereafter. This or simply adding the stack installed ghc path to $PATH would be temporary ways around this issue, albeit a tad cumbersome.

shirouto avatar Nov 28 '18 15:11 shirouto