Git Product home page Git Product logo

Comments (20)

aviaviavi avatar aviaviavi commented on May 20, 2024

Thanks for opening! Hmm so you actually should not need to download the repo first... Did you try running stack update first?

from toodles.

aviaviavi avatar aviaviavi commented on May 20, 2024

I can add stack update to the installation instructions if that was the issue

from toodles.

JeffreyBenjaminBrown avatar JeffreyBenjaminBrown commented on May 20, 2024

Aha! I'll try that on my computer at work soon.

But if that's the problem, it seems strange that the project's Stackage page would say "This package is not currently in any snapshots," no? Do snapshots not encompass the entire set of libraries that Stackage makes available?

from toodles.

aviaviavi avatar aviaviavi commented on May 20, 2024

Yeah I see what you mean. Stack can install binaries from hackage just fine, so that's what's going on here. I should eventually get this into stackage proper as well

from toodles.

JeffreyBenjaminBrown avatar JeffreyBenjaminBrown commented on May 20, 2024

from toodles.

JeffreyBenjaminBrown avatar JeffreyBenjaminBrown commented on May 20, 2024

After running 'stack update' and without downloading the repo, I tried stack install toodles and got errors:

 
jeff@jeff-ThinkCentre-M700:~$ stack install toodles
Populated index cache.    

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

In the dependencies for toodles-0.1.0.12:
    aeson-1.2.4.0 from stack configuration does not match ==1.3.1.1 (latest matching
                  version is 1.3.1.1)
    blaze-html-0.9.0.1 from stack configuration does not match ==0.9.1.1 (latest matching
                       version is 0.9.1.1)
    directory-1.3.0.2 from stack configuration does not match ==1.3.1.5 (latest matching
                      version is 1.3.1.5)
    filepath-1.4.1.2 from stack configuration does not match ==1.4.2 (latest matching
                     version is 1.4.2)
    http-types-0.9.1 from stack configuration does not match ==0.12.2 (latest matching
                     version is 0.12.2)
    megaparsec-6.3.0 from stack configuration does not match ==6.5.0 (latest matching
                     version is 6.5.0)
    servant-0.11 from stack configuration does not match ==0.14.1 (latest matching version
                 is 0.14.1)
    servant-blaze-0.7.1 from stack configuration does not match ==0.8 (latest matching
                        version is 0.8)
    servant-server-0.11.0.1 from stack configuration does not match ==0.14.1 (latest
                            matching version is 0.14.1)
    text-1.2.2.2 from stack configuration does not match ==1.2.3.1 (latest matching
                 version is 1.2.3.1)
    transformers-0.5.2.0 from stack configuration does not match ==0.5.5.0 (latest
                         matching version is 0.5.5.0)
    wai-3.2.1.1 from stack configuration does not match ==3.2.1.2 (latest matching version
                is 3.2.1.2)
    warp-3.2.13 from stack configuration does not match ==3.2.25 (latest matching version
                is 3.2.25)
    yaml-0.8.28 from stack configuration does not match ==0.8.32 (latest matching version
                is 0.8.32)
needed since toodles is a build target.

Some potential ways to resolve this:

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

- aeson-1.3.1.1
- blaze-html-0.9.1.1
- directory-1.3.1.5
- filepath-1.4.2
- http-types-0.12.2
- megaparsec-6.5.0
- servant-0.14.1
- servant-blaze-0.8
- servant-server-0.14.1
- text-1.2.3.1
- transformers-0.5.5.0
- wai-3.2.1.2
- warp-3.2.25
- yaml-0.8.32

  * Set 'allow-newer: true' to ignore all version constraints and build anyway.

  * You may also want to try using the 'stack solver' command.

Plan construction failed.

from toodles.

aviaviavi avatar aviaviavi commented on May 20, 2024

Hmm interesting... Would you mind telling me the output when you run:

grep resolver ~/.stack/global-project/stack.yaml

from toodles.

aviaviavi avatar aviaviavi commented on May 20, 2024

My current guess is that maybe your global stack is on a resolver that's too old. If that's the case, I should update the docs to call that out

from toodles.

JeffreyBenjaminBrown avatar JeffreyBenjaminBrown commented on May 20, 2024

That looks like it was the problem. I was using resolver: lts-10.5. I edited ~/.stack/global-project/stack.yaml to include instead the line resolver: lts-12.14 (that's the lts I see when I google "latest stack snapshot"), and now stack install toodles has caused (so far) about five minutes of work to happen, with no reported errors so far.

from toodles.

JeffreyBenjaminBrown avatar JeffreyBenjaminBrown commented on May 20, 2024

Nope. This time it couldn't find the cabal files for the snapshot. It asked me to try again, which I did, resulting in the same error. My next strategy is to see if I needed to have cabal installed.

e
jeff@jeff-ThinkCentre-M700:~$ stack install toodles
Downloaded lts-12.14 build plan.    
Preparing to install GHC (nopie) to an isolated location.
This will not interfere with any system-level installation.
Downloaded ghc-nopie-8.4.3.                                      
Installed GHC.                                                                      
Unable to load cabal files for snapshot

----
Deleting cached snapshot file: /home/jeff/.stack/build-plan/lts-12.14.yaml
Recommendation: try running again. If this fails again, open an upstream issue at:
https://github.com/fpco/lts-haskell/issues/new
----

Unable to parse cabal file for bhoogle-0.1.3.5@sha256:a3393794b22faabeb564c57f4a9506390b6b97b9792c6b4e130f15bf116099fd,1806: NoParse "license" 7
jeff@jeff-ThinkCentre-M700:~$ stack install toodles
Unable to load cabal files for snapshot

----
Deleting cached snapshot file: /home/jeff/.stack/build-plan/lts-12.14.yaml
Recommendation: try running again. If this fails again, open an upstream issue at:
https://github.com/fpco/lts-haskell/issues/new
----

Unable to parse cabal file for bhoogle-0.1.3.5@sha256:a3393794b22faabeb564c57f4a9506390b6b97b9792c6b4e130f15bf116099fd,1806: NoParse "license" 7
jeff@jeff-ThinkCentre-M700:~$ cabal update

from toodles.

JeffreyBenjaminBrown avatar JeffreyBenjaminBrown commented on May 20, 2024

Nope, that didn't do it either; I'm getting the same error (identical -- I ran a diff to test):

jeff@jeff-ThinkCentre-M700:~$ stack install toodles         
Unable to load cabal files for snapshot

----
Deleting cached snapshot file: /home/jeff/.stack/build-plan/lts-12.14.yaml
Recommendation: try running again. If this fails again, open an upstream issue at:
https://github.com/fpco/lts-haskell/issues/new
----

Unable to parse cabal file for bhoogle-0.1.3.5@sha256:a3393794b22faabeb564c57f4a9506390b6b97b9792c6b4e130f15bf116099fd,1806: NoParse "license" 7

from toodles.

aviaviavi avatar aviaviavi commented on May 20, 2024

hmm hoogle erroring is strange, there's no toodles dependency on hoogle.

assuming you didn't do this already, does a stack update after you revised your global resolver affect it?

from toodles.

JeffreyBenjaminBrown avatar JeffreyBenjaminBrown commented on May 20, 2024

Nope, same error.

from toodles.

aviaviavi avatar aviaviavi commented on May 20, 2024

This is strange, I'm completely unable to reproduce that. If my global resolver is at 12.14, it installs for me on both mac and linux. But the fact that you're getting an error while building bhoogle seems unrelated to toodles so I'm not sure where that leaves us. Is it possible you need a stack clean? (I've never actually needed that command so that's a bit of a shot in the dark)

by the way I really appreciate you bearing with me to work through this :)

from toodles.

JeffreyBenjaminBrown avatar JeffreyBenjaminBrown commented on May 20, 2024

And I appreciate toodles!

stack clean generates the error, which suggests this is not a toodles-specific problem:

jeff@jeff-ThinkCentre-M700:~$ stack clean
Unable to load cabal files for snapshot

----
Deleting cached snapshot file: /home/jeff/.stack/build-plan/lts-12.14.yaml
Recommendation: try running again. If this fails again, open an upstream issue at:
https://github.com/fpco/lts-haskell/issues/new
----

Unable to parse cabal file for bhoogle-0.1.3.5@sha256:a3393794b22faabeb564c57f4a9506390b6b97b9792c6b4e130f15bf116099fd,1806: NoParse "license" 7

from toodles.

aviaviavi avatar aviaviavi commented on May 20, 2024

Ah! commercialhaskell/lts-haskell#164

try stack upgrade

from toodles.

damiencourousse avatar damiencourousse commented on May 20, 2024

from toodles.

damiencourousse avatar damiencourousse commented on May 20, 2024

from toodles.

JeffreyBenjaminBrown avatar JeffreyBenjaminBrown commented on May 20, 2024

from toodles.

aviaviavi avatar aviaviavi commented on May 20, 2024

I'm not sure actually, but glad to hear that did the trick! I'll close this for now but we can always reopen if anyone else has similar installation issues

from toodles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.