Closed malte-v closed 4 years ago
Your HIE version is old, you should upgrade. IIRC, this is before we supported cabal v2-* commands which this error is about.
In your version hie --debug
does only start the LSP server, which is not useful for debugging stuff.
I'm trying to use HIE in a fresh obelisk project with VSCode (run from a nix-shell using
ob run "code ."
). It shows the following error:Got error while processing diagnostics: readCreateProcess: /nix/store/5gwn8zrdvjrnbr2f9q3ciwjs49y0fq8p-cabal-helper-0.9.0.0/bin/cabal-helper-wrapper "--with-ghc=ghc" "--with-ghc-pkg=ghc-pkg" "--with-cabal=cabal" "v1-style" "/home/malte/testing/obelisk/backend" "/home/malte/testing/obelisk/backend/dist" "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
Some additional information from the output tab:
Apparently it's looking for a file named
setup-config
inbackend/dist
I only have adist-newstyle/cache
folder with the following contents in my project root:If this has any relevance, here is the output of
hie --debug
:Does anyone have an idea what the problem could be? Thanks!