haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 211 forks source link

Unable to build on darwin 10.14.5: haskell-src-exts-1.22.0 from stack configuration does not match >=1.18.0 && <1.22 #1689

Closed o1lo01ol1o closed 4 years ago

o1lo01ol1o commented 4 years ago

on commit 02815bb0:

$ stack ./install.hs hie-8.6.5
# stack (for check)
# git (for submodules)
# git (for submodules)
Options:
    Verbosity level: Info
# stack (for hie-8.6.5)

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

In the dependencies for hsimport-0.11.0:
    haskell-src-exts-1.22.0 from stack configuration does not match >=1.18.0 && <1.22  (latest matching version is 1.21.1)
needed due to haskell-ide-engine-1.2 -> hsimport-0.11.0

Some different approaches to resolving this:

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

  * Recommended action: try adding the following to your extra-deps in /Users/timpierson/arity/haskell-ide-engine/stack-8.6.5.yaml:

- haskell-src-exts-1.21.1@sha256:11d18ec3f463185f81b7819376b532e3087f8192cffc629aac5c9eec88897b35,4541

Plan construction failed.

********************************************************************************
Building failed, Try running `stack clean` and restart the build
If this does not work, open an issue at
    https://github.com/haskell/haskell-ide-engine
********************************************************************************

Error when running Shake build system:
  at want, called at src/Development/Shake/Internal/Args.hs:83:69 in shake-0.18.5-AT2wsKie7GmK5OPJZ5kRVD:Development.Shake.Internal.Args
* Depends on: hie-8.6.5
  at command, called at src/Stack.hs:80:3 in hie-install-0.8.1.0-7UOJzsmkF9x8NsRSgy2ktK:Stack
* Raised the exception:
Development.Shake.command, system command failed
Command line: stack --stack-yaml=stack-8.6.5.yaml install --verbosity=info
Exit code: 1
Stderr:
Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for hsimport-0.11.0:
    haskell-src-exts-1.22.0 from stack configuration does not match >=1.18.0 && <1.22  (latest matching version is 1.21.1)
needed due to haskell-ide-engine-1.2 -> hsimport-0.11.0

Some different approaches to resolving this:

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

  * Recommended action: try adding the following to your extra-deps in /Users/timpierson/arity/haskell-ide-engine/stack-8.6.5.yaml:

- haskell-src-exts-1.21.1@sha256:11d18ec3f463185f81b7819376b532e3087f8192cffc629aac5c9eec88897b35,4541

Plan construction failed.
$ stack --version
Version 2.1.3, Git revision 0fa51b9925decd937e4a993ad90cb686f88fa282 (7739 commits) x86_64 hpack-0.31.2
$ git status
HEAD detached at 02815bb0
jneira commented 4 years ago

Mmm, i think a cached version of hsimport could be causing the issue, try to do a stack update before building again and rm -rf $(stack path --snapshot-install-root --stack-yaml stack-8.6.5.yaml) && stack clean --full (to clean the global and local cache) if the previous one fails

solomon-b commented 4 years ago

I'm getting the same problem. Cleaning the cache did not help.

fendor commented 4 years ago

@jneira I can do a point release for hsimport to stop this problem from happening. Are you in favour of that?

jneira commented 4 years ago

yeah it could be a solution , however, i just i've uploaded a branch using a pantry sha instead the revision: it would be great check it it works in case we have to use it for a package that we dont control.

@o1lo01ol1o @ssbothwell could you try it please? running git fectch && git checkout hsimport-sha && stack install.hs hie-8.6.5 for example (replacing hie-8.6.5 with the target you need)

o1lo01ol1o commented 4 years ago

@jneira git fetch && git checkout hsimport-sha && stack install.hs hie-8.6.5 works for me.

Thanks!

jneira commented 4 years ago

nice, i'll do a pull request to push it to master. Thanks to test it!