Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit cd9f578

Browse files
authored
Merge pull request #1231 from Infinisil/trouble-cabal-helper-nix
Add Nix cabal-helper fix to troubleshooting section
2 parents 3b0132f + 996daef commit cd9f578

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ we talk to clients.__
5959
- [Is \<package\> base-x?](#is-package-base-x)
6060
- [Is there a hash (#) after \<package\>?](#is-there-a-hash--after-package)
6161
- [Otherwise](#otherwise)
62+
- [Nix: cabal-helper, No such file or directory](#nix-cabal-helper-no-such-file-or-directory)
6263

6364
## Features
6465

@@ -597,3 +598,16 @@ Delete any `.ghc.environment*` files in your project root and try again. (At the
597598

598599
#### Otherwise
599600
Try running `cabal update`.
601+
602+
### Nix: cabal-helper, No such file or directory
603+
604+
An error on stderr like
605+
606+
```
607+
cabal-helper-wrapper: /home/<...>/.cache/cabal-helper/cabal-helper<...>: createProcess: runInteractiveProcess:
608+
exec: does not exist (No such file or directory)
609+
```
610+
611+
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.
612+
613+

0 commit comments

Comments
 (0)