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 install codex fails with lts-7.0 #2621

Closed
mayeranalytics opened this issue Sep 22, 2016 · 4 comments
Closed

stack install codex fails with lts-7.0 #2621

mayeranalytics opened this issue Sep 22, 2016 · 4 comments

Comments

@mayeranalytics
Copy link

Steps to reproduce

Starting with a clean Ubuntu VM:

  1. stack --resolver lts-7.0 setup
  2. stack --resolver lts-7.0 install codex

Result:

Run from outside a project, using implicit global project config
Using resolver: lts-7.0 specified on command line

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

In the dependencies for codex-0.5.0.1:
    machines-directory must match >=0.0.0.2 && <0.3, but the stack configuration has no specified version
                       (latest applicable is 0.2.0.9)

Recommended action: try adding the following to your extra-deps in /home/parallels/.stack/global-project/stack.yaml:
- machines-directory-0.2.0.9

You may also want to try the 'stack solver' command
Plan construction failed.

Following the recommended action I add to the extra-deps in stack.yaml. After running stack --resolver lts-7.0 install codex again I get failure with recommendation to add machines-io-0.2.0.13.

The file .stack/global-project/stack.yaml then reads:

flags: {}
extra-package-dbs: []
packages: []
extra-deps:
  - machines-directory-0.2.0.9
  - machines-io-0.2.0.13

resolver: lts-7.0

Running stack --resolver lts-7.0 install codex again results in an error:

--  While building package codex-0.5.0.1 using:
      /home/username/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.24.0.0-ghc-8.0.1 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.24.0.0 configure --with-ghc=/home/parallels/.stack/programs/x86_64-linux/ghc-8.0.1/bin/ghc --with-ghc-pkg=/home/parallels/.stack/programs/x86_64-linux/ghc-8.0.1/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/home/parallels/.stack/snapshots/x86_64-linux/lts-7.0/8.0.1/pkgdb --package-db=/home/parallels/.stack/global-project/.stack-work/install/x86_64-linux/lts-7.0/8.0.1/pkgdb --libdir=/home/parallels/.stack/global-project/.stack-work/install/x86_64-linux/lts-7.0/8.0.1/lib --bindir=/home/parallels/.stack/global-project/.stack-work/install/x86_64-linux/lts-7.0/8.0.1/bin --datadir=/home/parallels/.stack/global-project/.stack-work/install/x86_64-linux/lts-7.0/8.0.1/share --libexecdir=/home/parallels/.stack/global-project/.stack-work/install/x86_64-linux/lts-7.0/8.0.1/libexec --sysconfdir=/home/parallels/.stack/global-project/.stack-work/install/x86_64-linux/lts-7.0/8.0.1/etc --docdir=/home/parallels/.stack/global-project/.stack-work/install/x86_64-linux/lts-7.0/8.0.1/doc/codex-0.5.0.1 --htmldir=/home/parallels/.stack/global-project/.stack-work/install/x86_64-linux/lts-7.0/8.0.1/doc/codex-0.5.0.1 --haddockdir=/home/parallels/.stack/global-project/.stack-work/install/x86_64-linux/lts-7.0/8.0.1/doc/codex-0.5.0.1 --dependency=Cabal=Cabal-1.24.0.0 --dependency=MissingH=MissingH-1.4.0.1-EKn7kuoDq1aaX1Pfc3iyM --dependency=base=base-4.9.0.0 --dependency=bytestring=bytestring-0.10.8.1 --dependency=containers=containers-0.5.7.1 --dependency=cryptohash=cryptohash-0.11.9-9KNu0EEbreBFrmNJAeHgYz --dependency=directory=directory-1.2.6.2 --dependency=either=either-4.4.1.1-1JTyD8xndhVAzIXQKhnRWZ --dependency=filepath=filepath-1.4.1.0 --dependency=hackage-db=hackage-db-1.22-I0Ykx1cW36Q2UDcO4nPCnl --dependency=http-client=http-client-0.4.31.1-CRzZbHb7fhvLc1hBac01Vk --dependency=lens=lens-4.14-LQbbTc84mRL8zB39b41ZKA --dependency=machines=machines-0.6.1-EtSiV7Anza02d5tsjlvU8s --dependency=machines-directory=machines-directory-0.2.0.9-KwmD3KP06ftLIcPjrPvOFu --dependency=monad-loops=monad-loops-0.4.3-1xZFtRVMQPC4X8bjTBWqNi --dependency=network=network-2.6.3.1-G4Up1CPKbp7DeFsnywOnGG --dependency=process=process-1.4.2.0 --dependency=tar=tar-0.5.0.3-Lj53UbIqLpELgGWYmsAfKo --dependency=text=text-1.2.2.1-5QpmrLQApEZ4Ly9nMHWY0s --dependency=transformers=transformers-0.5.2.0 --dependency=wreq=wreq-0.4.1.0-8bCdhFjgkLE6wlj1xh5qRg --dependency=yaml=yaml-0.8.18.6-8kElhq9L84mFnuAIrwPXyZ --dependency=zlib=zlib-0.6.1.1-4cYT5jyS3jw6zZyCUZMz3T
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/parallels/.stack/global-project/.stack-work/logs/codex-0.5.0.1.log

    Configuring codex-0.5.0.1...
    setup-Simple-Cabal-1.24.0.0-ghc-8.0.1: Encountered missing dependencies:
    codex ==0.5.0.0

Doing the same with lts-6.12 works fine. Apparently there is a circular dependency somewhere.

Stack version

$ stack --version
Version 1.2.0, Git revision 241cd07d576d9c0c0e712e83d947e3dd64541c42 (4054 commits) x86_64 hpack-0.14.0

Method of installation

  • wget -qO- https://get.haskellstack.org/ | sh
@sjakobi
Copy link
Member

sjakobi commented Sep 22, 2016

Can you create a dependency graph with stack dot?

@mayeranalytics
Copy link
Author

mayeranalytics commented Sep 22, 2016

In the global stack project it's not possible to create a dependency graph with stack dot, it seems.

This may well be a problem created by codex. In any case it would be good if stack offered some insights into what's going on here. Right now I'm completely clueless.

@sjakobi
Copy link
Member

sjakobi commented Sep 22, 2016

Yeah, there's an issue with codex-0.5.0.1. See aloiscochard/codex#63 (comment).

Leaving this open for now in case someone wants to propose a UI improvement.

@bitemyapp
Copy link
Contributor

Closed here: aloiscochard/codex#63 (comment)

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

No branches or pull requests

3 participants