Haskell-ide-engine: cannot satisfy -package-id base-4.10.1.0

Created on 10 May 2018  路  12Comments  路  Source: haskell/haskell-ide-engine

On my machine:

$  stack new moo
$  cd moo
$  stack build
$  code .

In the Haskell HIE (moo) output, I get this error:

hie: <command line>: cannot satisfy -package-id base-4.10.1.0
    (use -v for more information)

I am using Macos

documentation

Most helpful comment

same problem working with LanguageClient-neovim, how do I make the equivalent changes there of "languageServerHaskell.useHieWrapper": true

All 12 comments

Similarly for one of my bigger projects:

Using hoogle db at: /Users/jky/.hoogle/default-haskell-5.0.17.hoo
hie: <command line>: cannot satisfy -package-id amazonka-1.5.0-75emjYGGvkjLemS4nvxn4p: 
    amazonka-1.5.0-75emjYGGvkjLemS4nvxn4p is unusable due to missing dependencies:
      amazonka-core-1.5.0-CLe3zZeGiNEHP74Gy81THg base-4.10.1.0 conduit-1.2.13.1-J1BFdB3Hq6fHXjEWX9tRjq conduit-extra-1.2.3.2-9rRJTLz14cgLsNkwhYfzn3 directory-1.3.0.2 exceptions-0.8.3-CYMTujxEbkkJnOJ7pW82ZD http-conduit-2.2.4-APl7BW4kI77D9KJHMd6cLS ini-0.3.5-FuJb9pz94NI53ott3rpubZ mmorph-1.1.1-JSXAlwXaEvB9wEd1iGFnPP monad-control-1.0.2.3-KW4P5rxfhfj5WtFbu3Ojsg mtl-2.2.2-8XubxMJDT8QLsstvlNotkc resourcet-1.1.11-LMceVXHmLWt4je3CoOiraW retry-0.7.6.1-JmJGyb2fxW41GGWzawOqDd text-1.2.2.2-9VTsh6V7U7hpagw2HDvpZ transformers-0.5.2.0 transformers-base-0.4.4-CrsDENFNf7rEcT9CB0YGwO transformers-compat-0.5.1.4-EAh8Ccrgitz4vTZtbTPyCM
    (use -v for more information)

what version of stack are you using? what resolver do you end up with in the project?

$ stack --version | head
Version 1.7.1 x86_64
Compiled with:
- Cabal-2.2.0.1
- Glob-0.9.2
- HUnit-1.6.0.0
- QuickCheck-2.11.3
- StateVar-1.1.1.0
- aeson-1.2.4.0
- aeson-compat-0.3.7.1
- annotated-wl-pprint-0.7.0

This was for the stack generated template project:

$ pwd
/Users/jky/wrk/arbor-networks/moo
$ grep "^resolver" stack.yaml
resolver: lts-11.8

This is for the bigger project:

$ pwd
/Users/jky/wrk/arbor-networks/gan-feeds-client
$ head -n 1 stack.yaml
resolver: lts-10.10

haskell-ide-engine was built with:

$ git clone https://github.com/haskell/haskell-ide-engine --recursive
$ cd haskell-ide-engine
$ make build-all

Looks like I needed to set this:

"languageServerHaskell.useHieWrapper": true

Can the documentation be updated to include this?

Thanks!

I'm also okay to close this ticket.

same problem working with LanguageClient-neovim, how do I make the equivalent changes there of "languageServerHaskell.useHieWrapper": true

@soulomoon afaik wrapper is a part of vscode plugin. In neovim you have to select proper hie version yourself.

In case you're working only on stack-based projects (like me), installing hie via make build-copy-compiler-tool and using stack exec hie --lsp as start command for language client in init.vim will put decision on stack's shoulders and work automagically.

Perhaps we should write the wrapper in haskell as an exe, so it can be shared among clients. This is basically the simplest version of the concierge function we have discussed before in the issues.

Was this page helpful?
0 / 5 - 0 ratings