vim-hsimport
vim-hsimport copied to clipboard
Cabal Error
Hi,
I have installed hsdevtools and hsimport via stack. Everything seems to work fine on the CLI but then I try from vim I get the following error:
Cabal error: Encountered missing dependencies:
QuickCheck >=2.8.2, hspec >=2.2.3
I'm not sure why this is.
Hi Tommaso,
so you're getting this error if you're calling on the vim command line e.g. ':HsImportSymbol YourSymbol'?
And you're getting the same error if you're calling on the shell command line 'hdevtools findsymbol YourSymbol'?
If that's the case, then it looks like a 'hdevtools' issue.
Cabal error: Encountered missing dependencies: QuickCheck >=2.8.2, hspec >=2.2.3
I assume that these are only dependencies of your tests? Have you build your cabal project with '--enable-tests'?
Greetings, Daniel
in vim :HsImportSymbol <>
causes
Cabal error: Encountered missing dependencies:
QuickCheck >=2.8.2, hspec >=2.2.3
same for
$ hdevtools findsymbol "<>"
Cabal error: Encountered missing dependencies:
QuickCheck >=2.8.2, hspec >=2.2.3
Those are dependencies in the tests, here is my project https://github.com/blender/Rome
Sorry to ask for support like this but I don't have any clue on what to do or where else to open an issue.
On Thu, May 17, 2018 at 05:15:57AM -0700, Tommaso Piazza wrote:
in vim :HsImportSymbol <> causes
Cabal error: Encountered missing dependencies: QuickCheck >=2.8.2, hspec >=2.2.3
same for
$ hdevtools findsymbol "<>" Cabal error: Encountered missing dependencies: QuickCheck >=2.8.2, hspec >=2.2.3
Have you tried building the cabal project with '--enable-tests'?
I don't use cabal directly and I think that something here is deeply misconfigured.
I run stack test this built the test and I got a little further. Now I have
Cabal error: The program 'ghc' is required ...
Maybe the way to fix this is just to run things via stack? using stack exec
Does not seem to help :\
$ stack exec hdevtools findsymbol "<>"
Cabal error: The program 'ghc' version >=6.4 is required but it could not be found.
@dan-t definitely not a problem with vim-hsimport. Sorry for the noise.
I'd like to keep this issue open so that it might be of help for others. Hopefully it will be closed when the issue is resolved with hdevtools