Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stack hoogle version different from stack build hoogle version? #4252

Closed
davidspies opened this issue Dec 23, 2018 · 3 comments
Closed

stack hoogle version different from stack build hoogle version? #4252

davidspies opened this issue Dec 23, 2018 · 3 comments

Comments

@davidspies
Copy link
Contributor

stack hoogle has a dependencies failure, but stack build hoogle doesn't.

$ stack hoogle --server --resolver=lts-12.24
Hoogle isn't installed. Automatically installing (use --no-setup to disable) ...
Minimum version is hoogle-5.0. Found acceptable hoogle-5.0.17.4 in your index, installing it.

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for hoogle-5.0.17.4:
    haskell-src-exts-1.20.3 from stack configuration does not match >=1.21 && <1.22  (latest matching version is 1.21.0)
needed since hoogle is a build target.

Some different approaches to resolving this:

  * Set 'allow-newer: true' in /home/david/.stack/config.yaml to ignore all version constraints and build anyway.

  * Consider trying 'stack solver', which uses the cabal-install solver to attempt to find some working build configuration. This can be
    convenient when dealing with many complicated constraint errors, but results may be unpredictable.

  * Recommended action: try adding the following to your extra-deps in /home/david/.stack/global-project/stack.yaml:

haskell-src-exts-1.21.0@sha256:02421cacaa48c055551b8e5796efc543301b7ea9527a38e1385403d2b85512fb

Plan construction failed.

@DanBurton
Copy link
Contributor

This is arguably a stack bug, for selecting a version of hoogle that it cannot build.

The latest version of hoogle requires the latest version of haskell-src-exts, which is not currently in the stackage nightly or lts builds (see #4214), because haskell-src-meta has not upgraded to this version. (See also: bmillwood/haskell-src-meta#85)

@bergmark
Copy link
Member

bergmark commented Feb 4, 2019

The stack repo is probably a better place to file this, did anyone do that?
This can probably works if you use the nightly resolver ATM.

@mihaimaruseac
Copy link
Contributor

Closing. Please reopen on the Stack repo if this still reproduces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants