You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm going to merge this into #912, which despite its name is currently tracking all improvements to the solver. @mkustermann, can you post the pubspec which is causing the exponential explosion in a comment on that issue?
@nex3 It might actually not be the same issue. #912 seems to be about showing a nice message when pub does too much backtracking, I filed this issue because there should be a feasible solution and pub should be able to find it (I understand that the worst-case time complexity of a general constraint solver is exponential, but normal pubspec dependencies have a lot of structure one can exploit during resolution, so maybe the current algorithm could be improved).
I'll leave it up to you to reopen this issue or not.
As you asked, I've attached the pubspec file to the other issue.
@mkustermann It usually helps to narrow the version constraints (perhaps even to one single possibility). This way you might be able to show that a solution actually exists.
The title of #912 is misleading; it's actually tracking all work on improving the solver, not just making the output better (the two turn out to be very tightly linked).
Similar to Issue 874, I ran into a case where
pub upgrade
takes forever -- most likely due to pub's constraint solver. The way to reproduce it is to:I gave up after 7 minutes.
Since fetching pub dependencies worked fine until now there is a solution to the package constraints and pub should be able to discover it.
I can only suspect this started happening after publishing a new version of
package:googleapis_auth
with changed dependencies onpackage:crypto
.The version of pub is:
@nex3 Since you made some improvements, which closed Issue 874, I was wondering if you could take a look?
/cc @sgjesse
The text was updated successfully, but these errors were encountered: