Gradle process doesn't exist
sigrlami opened this issue · 1 comments
sigrlami commented
I already have a small interop between haskell
and java
, but having custom-setup
leads to following error, when I'm trying to hook 3rd party lib:
-- While building package api-pdf-0.2.0.0 using:
/home/sigrlami/work/projects-hs/api-pdf/.stack-work/dist/x86_64-linux/Cabal-1.24.2.0/setup/setup --builddir=.stack-work/dist/x86_64-linux/Cabal-1.24.2.0 build exe:api-pdf --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
Logs have been written to: /home/sigrlami/work/projects-hs/api-pdf/.stack-work/logs/api-pdf-0.2.0.0.log
Configuring api-pdf-0.2.0.0...
gradle: readCreateProcess: runInteractiveProcess: exec: does not exist (No
such file or directory)
gradle
command is available in the environment, I can do installDist
and build
. I'm not sure what it is looking for. I looked up https://github.com/tweag/inline-java/blob/master/src/Language/Java/Inline/Cabal.hs but couldn't deduce something useful.
How can I fix this? cc: @alpmestan
sigrlami commented
Fixed by adding additional environment variable pointing to Gradle bin