DanielG / ghc-mod

Happy Haskell Hacking for editors. DEPRECATED
Other
678 stars 175 forks source link

ghc-mod fails with "unknown command: needs-build-output" #926

Closed mrkgnao closed 6 years ago

mrkgnao commented 6 years ago

I'm using the ghc802 branch of ghc-mod and cabal-helper 0.8.0.0.

[nix-shell:~/code/edible]$ ghc-mod --version
ghc-mod version 5.9.0.0 compiled by GHC 8.2.2
[nix-shell:~/code/edible]$ ghc-mod browse Data.Typeable
cabal-helper0.8.0.0-Cabal2.0.1.0: Unknown command: needs-build-output
Usage: cabal-helper0.8.0.0-Cabal2.0.1.0 PROJ_DIR DIST_DIR [--with-* ...] (
    version
  | print-lbi [--human]
  | package-id
  | flags
  | config-flags
  | non-default-config-flags
  | write-autogen-files
  | compiler-version
  | ghc-options     [--with-inplace]
  | ghc-src-options [--with-inplace]
  | ghc-pkg-options [--with-inplace]
  | ghc-merged-pkg-options [--with-inplace]
  | ghc-lang-options [--with-inplace]
  | package-db-stack
  | entrypoints
  | source-dirs
  | licenses
  ) ...
cabal-helper0.8.0.0-Cabal2.0.1.0: Unknown command: needs-build-output
Usage: cabal-helper0.8.0.0-Cabal2.0.1.0 PROJ_DIR DIST_DIR [--with-* ...] (
    version
  | print-lbi [--human]
  | package-id
  | flags
  | config-flags
  | non-default-config-flags
  | write-autogen-files
  | compiler-version
  | ghc-options     [--with-inplace]
  | ghc-src-options [--with-inplace]
  | ghc-pkg-options [--with-inplace]
  | ghc-merged-pkg-options [--with-inplace]
  | ghc-lang-options [--with-inplace]
  | package-db-stack
  | entrypoints
  | source-dirs
  | licenses
  ) ...
EXCEPTION: browse:
           readCreateProcess: /nix/store/qvzswij8pvfinnmxx8n1g6ngx3shm00k-ghc-8.2.2-with-packages/bin/cabal-helper-wrapper "--with-ghc=ghc" "--with-ghc-pkg=ghc-pkg" "--with-cabal=cabal" "/home/frob/code/edible" "/home/frob/code/edible/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