-
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
Better error output in case of flags WAS Version bounds in cabal file revisions not taken into account? #713
Comments
I figured it out. the The error message could be more helpful I think, here it prints 4 failures, the 2nd item is the leaf so it's the one that needs to be fixed. It would be nice if that item was "highlighted" somehow. It'd also be useful if the flags were printed since I didn't notice that |
Interested in taking a stab at improving this? If the flag selection was kept short, hopefully it wouldn't overwhelm the output. I'd also be in favor of simply collapsing all of the "couldn't resolve its dependencies" into a much shorter message so that the real offenders get prominence. |
Bump |
As a first step I have added the flag information (v0):
Now to restructuring the output. What do you think about something like this (v1):
If the unresolved dependencies take too much space in v1, how about something like this (v2):
Thoughts? Also: Are these messages too terse? Do they need more human-language? |
It always takes me a while to figure what these messages are actually trying to tell me (what exactly does "needed" vs. "latest applicable" mean?), so I think more human language would be helpful. On the other hand, sometimes you get pages of cascading error messages, most of which aren't actually very useful for finding the root cause, and more verbosity could make that problem even worse. I wonder if it would be possible for this to suppress the redundant cascading error messages (at least by default). I think between those two changes, it would be way easier to interpret. |
I'll try to make the message easier to understand.
I'll try to construct a case like that. But I'm wondering whether we shouldn't try to collect some example projects as a supply for work on the solver, the error messages etc.
I'll try this as soon as I have a good example case. |
…lags Add flag infos to DependencyPlanFailures #713
Yup, sounds good to me |
I upgraded to the latest version of all my dependencies (not using a snapshot), after this it seems like stack doesn't find a build-plan for blaze-builder-enumerator, relevant snippet:
But looking at the revision history the package should allow blaze-builder 0.4.*. I don't run across this problem if using a freeze file with cabal-install
This should be reproducible by running
stack install
on https://github.com/bergmark/stack-bbe-reproductionFull log (also tested on
Version 0.1.2.7, Git revision 68e194622b3c52be3d386b2e9b807ec1ac288828
):The text was updated successfully, but these errors were encountered: