Skip to content

pub upgrade crash on dead loop instead of showing the problem #22903

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

Closed
rinick opened this issue Mar 18, 2015 · 5 comments
Closed

pub upgrade crash on dead loop instead of showing the problem #22903

rinick opened this issue Mar 18, 2015 · 5 comments
Labels
closed-duplicate Closed in favor of an existing report

Comments

@rinick
Copy link

rinick commented Mar 18, 2015

pub upgrade fails when I start to use the args 1.3 package

when I run "pub upgrade -v"
it shows a dead loop like this

selection path 1.0.0 from hosted does not match >=1.2.0 <2.0.0
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
backjump to yaml
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select y
aml 2.1.1 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add impl
icit >=0.13.0 <0.15.3 pub dependency on barback
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add impl
icit >=1.0.0 <2.0.0 pub dependency on source_span
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add impl
icit >=0.9.1 <2.0.0 pub dependency on stack_trace
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select
 matcher 0.11.4+3 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sele
ct petitparser 1.3.7 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * se
lect pool 1.0.1 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *
select collection 1.1.0 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
selection path 1.0.0 from hosted does not match >=1.2.0 <2.0.0
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
backjump to code_transformers
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select cod
e_transformers 0.0.1-dev.1 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add implic
it >=0.13.0 <0.15.3 pub dependency on barback
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add implic
it >=1.0.0 <2.0.0 pub dependency on source_span
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add implic
it >=0.9.1 <2.0.0 pub dependency on stack_trace
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select y
aml 2.1.2 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select
 matcher 0.11.4+3 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sele
ct petitparser 1.3.7 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * se
lect pool 1.0.1 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *
select collection 1.1.0 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
selection path 1.0.0 from hosted does not match >=1.2.0 <2.0.0
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
backjump to yaml
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select y
aml 2.1.1 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add impl
icit >=0.13.0 <0.15.3 pub dependency on barback
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add impl
icit >=1.0.0 <2.0.0 pub dependency on source_span
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add impl
icit >=0.9.1 <2.0.0 pub dependency on stack_trace
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select
 matcher 0.11.4+3 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sele
ct petitparser 1.3.7 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * se
lect pool 1.0.1 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *
select collection 1.1.0 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
selection path 1.0.0 from hosted does not match >=1.2.0 <2.0.0
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
backjump to code_transformers
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select cod
e_transformers 0.0.1-dev from hosted

@dgrove
Copy link
Contributor

dgrove commented Mar 25, 2015

Added Area-Pub, Triaged labels.

@nex3
Copy link
Member

nex3 commented Mar 25, 2015

I assume this is issue #17429, but it's hard to know without more detail. The log output you posted, in addition to being difficult to read due to line wrapping, doesn't actually contain any error messages—it's just various package versions being selected and unselected.


Added NeedsInfo label.

@rinick
Copy link
Author

rinick commented Mar 25, 2015

as you can see it's a dead loop, the console just prints these things forever.

but after updating to 1.9.0dev10.13, I can no longer reproduce this issue. maybe the dependency loop in those pub packages was fixed by package owner.

@nex3
Copy link
Member

nex3 commented Mar 25, 2015

It's not actually infinite; if you look closely you'll see that the versions being selected vary over time. Unfortunately it is exponential, which is an unfortunate necessity for backtracking version resolution.


Added Duplicate label.
Marked as being merged into #17429.

@DartBot
Copy link

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/pub#1268.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

5 participants