-
Notifications
You must be signed in to change notification settings - Fork 701
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
Solver stubbornly insists on integer-simple, but integer-gmp is available #3793
Comments
I can reproduce the first failure, but changing the flag default as described does not change anything for me ... I may have been doing something wrong in my attempt to reproduce. Will look more closely tomorrow. |
@niteria What's the output of |
/cc @grayjay perhaps you can take a look at this too |
Some other notes:
|
Even for As to where the constraint on So my current theory is that this problem is indeed unsolvable, so there doesn't seem to be a solver bug. Whether the |
@kosmikus , what can we do to improve the solver error message in this case? |
@ezyang The error message problem is not specific to this case at all. Producing better solver error messages is a rather interesting problem, and it certainly would be nice if I or someone else would spend some time on this. But it's not easy. One small thing that might help a bit that @grayjay and I wanted to do is to print the final conflict set in the case that the dependency tree gets exhaustively searched (which it is in this case). I might remember incorrectly, but I think this is already done in master? |
I think even the more modest goal of printing out enough information (and a sufficient |
I see, this makes sense, thanks for investigating. When I saw the second error (about I agree that having a better error message would help, but this is not the first constraint solver that I saw with this problem, so it might be fundamentally hard. @23Skidoo: I'm using Cabal 1.24.0.0 |
#3199 is indeed relevant for me. Changing
makes sense only after I was pointed to #3199. Thank you for your help, from my point of view this is solved. |
OK, going to close. |
I'm not 100% this is a bug, but I talked with @hvr on #GHC and he was convinced that it was.
What happens is:
What's expected (from what @hvr told me) is that cabal should disable the flag
automatically to try to satisfy the constraints.
Changing
text-1.2.1.3/text.cabal
to have:fixes the issue.
I've uploaded a repro script here: https://github.com/niteria/cabal-constraint-solver-repro
To run just do:
Sorry I didn't minimize it further, but it's quick to fail in the current form.
The text was updated successfully, but these errors were encountered: