This repository was archived by the owner on Oct 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 204
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
readCreateProcess fail when using stack with docker integration #1388
Copy link
Copy link
Closed
Description
Hi,
I've build fresh HIE version from source:
$ hie --version
Version 0.12.0.0, Git revision 098b1800c16ec1348fe9d380b946ec4ffa884f38 (dirty) (3005 commits) x86_64 ghc-8.6.5
And it failed to work with my project, resulting in cryptic error:
◌ app/Main.hs:
1:1 ghcmod error readCreateProcess: /Users/kote/github/haskell-ide-engine/.stack-work/install/x86_64-osx/d6170f541dc4ad40ce3a7b842890d9cdc7c1237798c9edd38e573bd1bfcbc861/8.6.5/bin/cabal-helper-wrapper "--with-ghc=/Users/kote/.stack/programs/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/ghc-8.6.5/bin/ghc" "--with-ghc-pkg=/Users/kote/.stack/programs/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/ghc-8.6.5/bin/ghc-pkg" "--with-cabal=cabal" "v1-style" "/Users/kote/hsbackend" "/Users/kote/hsbackend/.stack-work/dist/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/Cabal-2.4.0.1" "package-db-stack" "flags" "compiler-version" "ghc-merged-pkg-options" "config-flags" "non-default-config-flags" "ghc-src-options" "ghc-pkg-options" "ghc-lang-options" "ghc-options" "source-dirs" "entrypoints" "needs-build-output" (exit 1): failed
When launched manually:
$ /Users/kote/github/haskell-ide-engine/.stack-work/install/x86_64-osx/d6170f541dc4ad40ce3a7b842890d9cdc7c1237798c9edd38e573bd1bfcbc861/8.6.5/bin/cabal-helper-wrapper "--with-ghc=/Users/kote/.stack/programs/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/ghc-8.6.5/bin/ghc" "--with-ghc-pkg=/Users/kote/.stack/programs/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/ghc-8.6.5/bin/ghc-pkg" "--with-cabal=cabal" "v1-style" "/Users/kote/hsbackend" "/Users/kote/hsbackend/.stack-work/dist/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/Cabal-2.4.0.1" "package-db-stack" "flags" "compiler-version" "ghc-merged-pkg-options" "config-flags" "non-default-config-flags" "ghc-src-options" "ghc-pkg-options" "ghc-lang-options" "ghc-options" "source-dirs" "entrypoints" "needs-build-output"
cabal-helper-wrapper: dieVerbatim: user error (cabal-helper-wrapper: The program 'ghc' version >=7.0.1 is required but the
version of
/Users/kote/.stack/programs/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/ghc-8.6.5/bin/ghc
could not be determined.
)
After some debugging, I've found that commenting out docker: enable: true in stack.yaml helps. Looks like HIE tries to use some local command instead of running them via stack(+docker).
SandiCat