Skip to content
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

Can no longer build hlint #51

Closed
LeventErkok opened this issue Dec 27, 2017 · 5 comments
Closed

Can no longer build hlint #51

LeventErkok opened this issue Dec 27, 2017 · 5 comments

Comments

@LeventErkok
Copy link

With the 0.8 release of ansi, I'm having issues while building sbv via cabal:

CallStack (from HasCallStack):
die', called at ./Distribution/Client/Install.hs:240:21 in main:Distribution.Client.Install
cabal: Could not resolve dependencies:
trying: ansi-terminal-0.8 (dependency of hlint-2.0.12)
trying: optparse-applicative-0.14.0.0 (dependency of tasty-golden-2.3.1.2)
next goal: ansi-wl-pprint (dependency of optparse-applicative-0.14.0.0)
rejecting: ansi-wl-pprint-0.6.8.1 (conflict: ansi-terminal==0.8,
ansi-wl-pprint => ansi-terminal>=0.4.0 && <0.8)
rejecting: ansi-wl-pprint-0.6.8, ansi-wl-pprint-0.6.7.3,
ansi-wl-pprint-0.6.7.2, ansi-wl-pprint-0.6.7.1, ansi-wl-pprint-0.6.7,
ansi-wl-pprint-0.6.6 (conflict: ansi-terminal==0.8, ansi-wl-pprint =>
ansi-terminal>=0.4.0 && <0.7)
rejecting: ansi-wl-pprint-0.6.4, ansi-wl-pprint-0.6.3, ansi-wl-pprint-0.6.2,
ansi-wl-pprint-0.6.1, ansi-wl-pprint-0.5.1, ansi-wl-pprint-0.5.0,
ansi-wl-pprint-0.4.0, ansi-wl-pprint-0.3.1, ansi-wl-pprint-0.3.0,
ansi-wl-pprint-0.2, ansi-wl-pprint-0.1 (conflict: optparse-applicative =>
ansi-wl-pprint>=0.6.6 && <0.7)
Backjump limit reached (currently 2000, change with --max-backjumps or try to
run with --reorder-goals).

Full logs here: https://travis-ci.org/LeventErkok/sbv/jobs/321887094

This is hard to interpret, but looking through the only change is a new release of ansi. Any help how I should go about fixing this would be great!

@UnkindPartition
Copy link
Owner

Well, ansi-wl-pprint puts an arbitrary upper bound on ansi-terminal, and for some reason Cabal doesn't get around to trying older versions of ansi-terminal.

Have you tried the flags suggested at the end of that output?

@LeventErkok
Copy link
Author

No, I haven't. This is all CI builds, so I'm messing with flags is neither easy nor desirable. Perhaps we should ping ansi-wl-pprint folks to remove the upper bound?

@LeventErkok
Copy link
Author

Just filed: ekmett/ansi-wl-pprint#17

@UnkindPartition
Copy link
Owner

Closing this — if anything, this looks like a cabal bug, and potentially fixed one. FWIW, I tried reproduce this on my machine but did not succeed.

@LeventErkok
Copy link
Author

Adding --max-backjumps=-1 fixed the issue. Probably not worth digging further into it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants