atom-haskell-archive / haskell-ghc-mod

haskell-ghc-mod atom package
https://atom.io/packages/haskell-ghc-mod
MIT License
69 stars 20 forks source link

Incorrect advice when cabal-helper-wrapper not found #214

Closed hrvolapeter closed 6 years ago

hrvolapeter commented 7 years ago

Error message advises to use export cabal_helper_libexecdir=$PWD/dist/build/cabal-helper-wrapper which is not correct. In fact, it requires to use export cabal_helper_libexecdir=$PWD/dist/build/ It's really hard to tell what's happening when someone uses advised export.

DanielG commented 7 years ago

You are not really intended to do this if you're merely using cabal-helper (via ghc-mod), only if you're using an in-place compiled version because you are actively working on cabal-helper itself. If you just installed cabal-helper via cabal (or as a dependency of another package) this should really not happen.

Most likely something went wrong during installation or you have deleted the cabal-helper-wrapper executable. The location is usually under ~/.cabal, ~/.stack or $projectdir/.stack-work somewhere depending on how you installed ghc-mod. Just re-installing ghc-mod is the easiest way to fix this usually.