-
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
Add warnings if compiler version doesn't match snapshot compiler version #2499
Comments
Thanks for the report! stack-HEAD has much improved dependency conflict reporting, and I'd be interested in hearing your feedback about it: You can either upgrade with An additional warning for a mismatching compiler version might be a good idea. I'm under the impression that picking a newer compiler than the one specified in the resolver is pretty much always doomed to fail because the The reverse case, where we're using an older compiler than specified in the resolver, may have better chances of resulting in a successful build. |
Yeah, that's what I figured which led me to try dropping the compiler option :-)
Hmpf, looks like I can't. (After experiencing some #2175,) the install fails with
(yes, that's right, no error message) Update: Trying again failed for a different library. Trying again for a third time it worked! |
Thanks, the dependency conflict reporting is much improved in the latest version indeed. When adding the compiler option now, I get:
An explicit warning on the incompatible compiler would still be nice, but at least it's specific now about |
FWIW, #2502 also found similar messages confusing (for |
Yeah, for version mismatches on wired in packages, it would make sense to let the user know that it's tied to the compiler. Glad you like the improved output. I found that much of the old build plan errors were entirely redundant info in practice, making it really hard to pick out the important parts. |
I've tried to use the
compiler
option as documented here to get GHC 8 while still using a long-term-supportresolver
(the nightlies and ghc-specific ones don't contain the packages).What followed was a version conflict in pretty much every library (or so it seemed) - #1735 did put it nicely as "version checking going nuts". Being new to Stack, I had no idea what to do, and the output is not particularly helpful.
Steps to reproduce
My
stack.yaml
currently looks like this:When I ran
stack build
, it spewed 1030 lines on the console, "While constructing the BuildPlan the following exceptions were encountered:", "Failure when adding dependencies:" and so on.Expected
Stack should tell me which library is conflicting. In my case, it appears to be GHC, and it should suggest me to drop the
compiler
option.Actual
GHC is mentioned nowhere in the output. Only by trial-and-error I found out that removing the
compiler
option makes it work again.Stack version
The text was updated successfully, but these errors were encountered: