1

I deleted intero from ~/Users/amir/.stack/snapshots/x86_64-osx/lts-9.14/8.0.2/bin/. Now if i run stack install intero. I get the following error:

Couldn't find executable intero in directory ~/.stack/snapshots/x86_64-osx/lts-9.14/8.0.2/bin/

Is there any way to force reinstalling? I tried --force-dirty as well.

ForceBru
  • 43,482
  • 10
  • 63
  • 98
Amir
  • 189
  • 2
  • 12
  • 1
    Can you do a `stack build intero` and/or `stack clean` before. – epsilonhalbe Dec 04 '17 at 17:24
  • Did not work. Still same error. Also running `stack exec -- ghc-pkg unregister --force intero` says: `ghc-pkg: cannot find package intero`. – Amir Dec 04 '17 at 17:37
  • I had to manually copy it from `~/.stack/global-project/.stack-work/install/x86_64-osx/lts-9.14/8.0.2/bin/intero` to `~/.stack/snapshots/x86_64-osx/lts-9.14/8.0.2/bin/`. And that fixed the problem. – Amir Dec 04 '17 at 17:52

1 Answers1

1

There is an issue about this here. Workaround for now is to also do rm ~/Users/amir/.stack/snapshots/x86_64-osx/lts-9.14/8.0.2/installed-packages/intero-*

mgsloan
  • 3,245
  • 21
  • 20