haskell-vim-now: Stack setup failed with error 1

$ bash /tmp/haskell-vim-now.sh
...
HvnArgs {hvnArgsNoHoogleDb = False, hvnArgsNoHelperBinaries = False}
Setting up GHC if needed...
Stack setup failed with error 1
*** setup_haskell.hs failed with error 1.
*** Aborting...

Adding set -x to the top of the shell script shows that this is the failing command:

stack /home/miles/.config/haskell-vim-now/scripts/setup_haskell.hs

I believe I have all the dependencies:

$ ghcide --version
ghcide version: 0.2.0 (GHC: 8.6.5) (PATH: /home/miles/.local/bin/ghcide) (GIT hash: 0ddc62fb96ada49d660382fbd91835f964c241ef)
$ hlint --version 
HLint v2.1.26, (C) Neil Mitchell 2006-2019
$ hoogle --version
Hoogle 5.0.17.11, https://hoogle.haskell.org/
$ stack ghc -- --version   
The Glorious Glasgow Haskell Compilation System, version 8.8.3

Not sure if it’s an issue that ghc can only be launched via stack.

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 27 (12 by maintainers)

Most upvoted comments

Can confirm, purged Ubuntu Focal haskell-stack, verified stack running from ~/.local/bin is 2.3.3. Still fails.