Comments (20)
Thanks for opening! Hmm so you actually should not need to download the repo first... Did you try running stack update
first?
from toodles.
I can add stack update to the installation instructions if that was the issue
from toodles.
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.
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.
from toodles.
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.
Hmm interesting... Would you mind telling me the output when you run:
grep resolver ~/.stack/global-project/stack.yaml
from toodles.
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.
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.
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.
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.
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.
Nope, same error.
from toodles.
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.
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.
Ah! commercialhaskell/lts-haskell#164
try stack upgrade
from toodles.
from toodles.
from toodles.
from toodles.
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)
- permit|assume a default priority level HOT 2
- exclude tags HOT 7
- How does your develop-test cycle work? HOT 2
- Report all tags
- May I subdivide it into modules? HOT 2
- metadata modifications disappear when refreshing the browser window HOT 1
- deleting a TODO item also deletes the line following HOT 3
- High memory usage, suspected memory leak HOT 1
- 'stack install toodles' downloads 3,5GB of stuff HOT 2
- Show more context, like the -C option to grep HOT 1
- Add xml/xaml
- docker build issues since 1.0.0 HOT 5
- Parser is too slow HOT 1
- Dependency tracking
- Installing with Stack base dependency issue HOT 4
- Running Toodles on a static file server HOT 2
- vscode HOT 1
- support chinese HOT 7
- Scarf OSX build has build-specific path HOT 4
- Scarf install on OSX does not work HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toodles.