Skip to content

"pub get" enters endless loop #21522

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
DartBot opened this issue Nov 6, 2014 · 3 comments
Closed

"pub get" enters endless loop #21522

DartBot opened this issue Nov 6, 2014 · 3 comments
Labels
closed-duplicate Closed in favor of an existing report

Comments

@DartBot
Copy link

DartBot commented Nov 6, 2014

This issue was originally filed by [email protected]


What steps will reproduce the problem?

  1. Create a new Dart project
  2. Add the following dependencies to pubspec.yaml:
      polymer: ">=0.15.1+3 <0.16.0"
      paper_elements: ">=0.5.0 <0.6.0"
      args: any
      crypto: ">=0.9.0 <0.10.0"
      file_utils: ">=0.0.22 <0.1.0"
      logging: ">=0.9.1+1 <0.10.0"
      mongo_dart: ">=0.1.42 <0.2.0"
      objectory: ">=0.3.21 <0.4.0"
      shelf: any
      stack_trace: any
      watcher: ">=0.9.2 <0.10.0"
      redstone: any
  3. Run "pub get"

What is the expected output? What do you see instead?

Pub should get all dependencies, but instead it enters an endless loop while matching dependencies.

SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select matcher 0.11.1 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select more 1.3.2 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select fixnum 0.9.0 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | selection args 0.12.1 from hosted does not match >=0.11.0 <0.12.0
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | backjump to di
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select di 3.3.1 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add implicit >=0.13.0 <0.15.3 pub dependency on barback
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add implicit >=1.0.0 <2.0.0 pub dependency on source_span
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add implicit >=0.9.1 <2.0.0 pub dependency on stack_trace
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select http 0.11.1+1 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select http_parser 0.0.2+5 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select matcher 0.11.1 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select more 1.3.2 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select fixnum 0.9.0 from hosted

If I add/change the following dependencies then it works just fine:
  analyzer: ">=0.15.6 <0.22.0"
  args: ">=0.11.0 <0.12.0"

What version of the product are you using?
1.7.2 and 1.8.0_dev2

On what operating system?
MacOS 10.10

What browser (if applicable)?

Please provide any additional information below.

@kasperl
Copy link

kasperl commented Nov 7, 2014

Added Area-Pub, Triaged labels.

@nex3
Copy link
Member

nex3 commented Nov 7, 2014

This isn't actually an endless loop, it's just the version resolution algorithm going pathological.


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

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

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

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

4 participants