-
Notifications
You must be signed in to change notification settings - Fork 841
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 cannot parse cabal-install output (again) #3453
Comments
I have same problem. I can't actually work now because of this :/ |
@drvink Hmm, are you sure that you're using version 1.5.1? In particular, I wouldn't expect
@ikciwor Sorry that you feel that you can't work due to this. What version of stack are you using? The solver is not a crucial part of stack's functioning. You should be able to get along fine by writing your own stack.yaml... Typically this doesn't require much effort if you use a stackage snapshot. Alternatively, you can install the previous versions of cabal-install. Basically, there are many alternatives you can take, no reason to cease your work... |
@mgsloan Yup:
|
@mgsloan Tried again just now with an empty |
Ah, indeed, it looks like there is a difference here between master and stack-1.5.1. The difference is caused by #3463 Unfortunately, I don't have time at the moment to dig into solving this. I currently just have cabal 1.24 on my path. Hopefully a straightforward change to get things to work with cabal-2.0? If it's non trivial, perhaps it makes sense to consider whether we can use some other way of scraping cabal solver results, perhaps via cabal freeze files, which should be a more stable format for the info. |
Bump. I'm seeing this issue with $ stack unpack riak-1.1.2.2 && cd riak-1.1.2.2
$ stack init --resolver nightly-2017-12-07 --solver Expected: the command completes successfully. When |
I have investigated this a bit, and I'm not sure how using cabal-install-1.24 is even working because it seems like the cabal.config format has been changed to reject I was hoping to fix this, but throwing up my hands for now after I discovered that I think it should be possible to use
|
Ah! I think I won't get time - I removed myself :/ Thanks for explanation though 👍 |
This was giving me hell when trying to |
This looks to be a duplicate of #4319 (or the other way around :) ) |
We've removed the solver support in #4670 |
General summary/comments
The output of
cabal install --dry-run
can break across multiple lines, but Stack's parser expects one line per package.See also #2084.
Steps to reproduce
$ stack init --resolver ghc-8.2.1
This
.cabal
should reproduce it:Expected
It should work even in the face of this brain-dead wrapped output. Note that it works fine when there aren't any lines long enough that
cabal
decides to wrap them.The beginning of the relevant output from cabal-install looks like the following (notice the correlation between the lines Stack reports as not having been able to parse and the fact that what is "logically" one line is hard-wrapped onto multiple lines):
Actual
Stack version
Method of installation
The text was updated successfully, but these errors were encountered: