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

Add Nix cabal-helper fix to troubleshooting section #1231

Merged
merged 1 commit into from
May 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ we talk to clients.__
- [Is \<package\> base-x?](#is-package-base-x)
- [Is there a hash (#) after \<package\>?](#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

Expand Down Expand Up @@ -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.