From 996daef424845254a00a774d6595996ef61464ac Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Wed, 1 May 2019 18:30:25 +0200 Subject: [PATCH] Add Nix cabal-helper fix to troubleshooting section --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 8d47a0980..bcaa50d15 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,7 @@ we talk to clients.__ - [Is \ base-x?](#is-package-base-x) - [Is there a hash (#) after \?](#is-there-a-hash--after-package) - [Otherwise](#otherwise) + - [Nix: cabal-helper, No such file or directory](#nix-cabal-helper-no-such-file-or-directory) ## Features @@ -597,3 +598,16 @@ Delete any `.ghc.environment*` files in your project root and try again. (At the #### Otherwise Try running `cabal update`. + +### Nix: cabal-helper, No such file or directory + +An error on stderr like + +``` +cabal-helper-wrapper: /home/<...>/.cache/cabal-helper/cabal-helper<...>: createProcess: runInteractiveProcess: + exec: does not exist (No such file or directory) +``` + +can happen because cabal-helper compiles and runs above executable at runtime without using nix-build, which means a Nix garbage collection can delete the paths it depends on. Delete ~/.cache/cabal-helper and restart HIE to fix this. + +