dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.3k stars 1.59k forks source link

Pub crashed #15550

Closed alan-knight closed 9 years ago

alan-knight commented 10 years ago

r31004 dartdoc-viewer master, commit c290ea4, with pubspec.lock deleted in the hope it might have fixed this

alanknight-macbookpro:client alanknight$ pub --trace get Resolving dependencies........ The null object does not have a method 'forEach'.

NoSuchMethodError : method not found: 'forEach' Receiver: null Arguments: [Closure: (String) => dynamic] dart:core Object.noSuchMethod ../../../dart-git/dart/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart 321 BacktrackingSolver._getTransitiveDependers.walk ../../../dart-git/dart/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart 324 BacktrackingSolver._getTransitiveDependers ../../../dart-git/dart/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart 217 BacktrackingSolver._backtrack ../../../dart-git/dart/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart 194 BacktrackingSolver._traverseSolution.<fn>.<fn> dart:isolate _RawReceivePortImpl._handleMessage

---- Log transcript ---- FINE: Pub 1.1.0-edge.0 SLVR: Solving dependencies:     | - browser any from hosted (browser)     | - polymer any from hosted (polymer)     | - polymer_expressions any from hosted (polymer_expressions)     | - yaml any from hosted (yaml) IO : Get versions from https://pub.dartlang.org/api/packages/browser. FINE: HTTP GET https://pub.dartlang.org/api/packages/browser     | Accept: application/vnd.pub.v2+json     | user-agent: Dart pub 1.1.0-edge.0 IO : Get versions from https://pub.dartlang.org/api/packages/polymer. FINE: HTTP GET https://pub.dartlang.org/api/packages/polymer     | Accept: application/vnd.pub.v2+json     | user-agent: Dart pub 1.1.0-edge.0 IO : Get versions from https://pub.dartlang.org/api/packages/polymer_expressions. FINE: HTTP GET https://pub.dartlang.org/api/packages/polymer_expressions     | Accept: application/vnd.pub.v2+json     | user-agent: Dart pub 1.1.0-edge.0 IO : Get versions from https://pub.dartlang.org/api/packages/yaml. FINE: HTTP GET https://pub.dartlang.org/api/packages/yaml     | Accept: application/vnd.pub.v2+json     | user-agent: Dart pub 1.1.0-edge.0 IO : Get versions from https://pub.dartlang.org/api/packages/unittest. FINE: HTTP GET https://pub.dartlang.org/api/packages/unittest     | Accept: application/vnd.pub.v2+json     | user-agent: Dart pub 1.1.0-edge.0 IO : Get versions from https://pub.dartlang.org/api/packages/barback. FINE: HTTP GET https://pub.dartlang.org/api/packages/barback     | Accept: application/vnd.pub.v2+json     | user-agent: Dart pub 1.1.0-edge.0 FINE: HTTP response 200 OK for GET https://pub.dartlang.org/api/packages/polymer_expressions     | took 0:00:01.628571     | x-google-appengine-version: 13     | cache-control: no-cache, must-revalidate     | transfer-encoding: chunked     | date: Tue, 10 Dec 2013 00:56:15 GMT     | vary: Accept-Encoding     | x-google-backends: /gns/project/apphosting/appserver/prod-appengine/ig/prod-appengine.remote-ie.appserver/182,igcig4.prod.google.com:4491,/bns/ic/borg/ic/bns/apphosting/prod-appengine.edge.frontend/212,pce68:6599,/bns/pc/borg/pc/bns/gfe-prod/shared-gfe/199.gfe,pabbi7:9842     | x-google-gfe-response-code-details-trace: response_code_set_by_backend,response_code_set_by_backend     | pragma: no-cache     | content-type: application/json     | x-google-gfe-response-body-transformations: gunzipped,chunked     | x-google-service: apphosting,apphosting     | server: Google Frontend     | x-google-gfe-request-trace: pabbi7:9842,pce68:6599,/bns/ic/borg/ic/bns/apphosting/prod-appengine.edge.frontend/212,pce68:6599,pabbi7:9842     | x-google-gfe-service-trace: apphosting,dasher_zoo_responder,apphosting     | x-google-appengine-appid: s~dartlang-pub     | x-google-gslb-service: apphosting     | x-google-appengine-module: default     | x-google-dos-service-trace: main:apphosting,dasher:apphosting     | expires: Fri, 01 Jan 1990 00:00:00 GMT FINE: HTTP response 200 OK for GET https://pub.dartlang.org/api/packages/browser     | took 0:00:02.048095     | x-google-appengine-version: 13     | cache-control: no-cache, must-revalidate     | transfer-encoding: chunked     | date: Tue, 10 Dec 2013 00:56:16 GMT     | vary: Accept-Encoding     | x-google-backends: /gns/project/apphosting/appserver/prod-appengine/ig/prod-appengine.remote-ie.appserver/182,igcnx1.prod.google.com:4415,/bns/ic/borg/ic/bns/apphosting/prod-appengine.edge.frontend/33,pejj76:6599,/bns/pe/borg/pe/bns/gfe-prod/shared-gfe/150.gfe,pabuy12:9806     | x-google-gfe-response-code-details-trace: response_code_set_by_backend,response_code_set_by_backend     | pragma: no-cache     | content-type: application/json     | x-google-gfe-response-body-transformations: gunzipped,chunked     | x-google-service: apphosting,apphosting     | server: Google Frontend     | x-google-gfe-request-trace: pabuy12:9806,pejj76:6599,/bns/ic/borg/ic/bns/apphosting/prod-appengine.edge.frontend/33,pejj76:6599,pabuy12:9806     | x-google-gfe-service-trace: apphosting,dasher_zoo_responder,apphosting     | x-google-appengine-appid: s~dartlang-pub     | x-google-gslb-service: apphosting     | x-google-appengine-module: default     | x-google-dos-service-trace: main:apphosting,dasher:apphosting     | expires: Fri, 01 Jan 1990 00:00:00 GMT FINE: HTTP response 200 OK for GET https://pub.dartlang.org/api/packages/polymer     | took 0:00:02.063265     | x-google-appengine-version: 13     | cache-control: no-cache, must-revalidate     | transfer-encoding: chunked     | date: Tue, 10 Dec 2013 00:56:16 GMT     | vary: Accept-Encoding     | x-google-backends: /gns/project/apphosting/appserver/prod-appengine/ig/prod-appengine.remote-ie.appserver/182,igclv5.prod.google.com:4378,/bns/ic/borg/ic/bns/apphosting/prod-appengine.edge.frontend/246,peii21:6599,/bns/pe/borg/pe/bns/gfe-prod/shared-gfe/122.gfe,pabbi7:9842     | x-google-gfe-response-code-details-trace: response_code_set_by_backend,response_code_set_by_backend     | pragma: no-cache     | content-type: application/json     | x-google-gfe-response-body-transformations: gunzipped,chunked     | x-google-service: apphosting,apphosting     | server: Google Frontend     | x-google-gfe-request-trace: pabbi7:9842,peii21:6599,/bns/ic/borg/ic/bns/apphosting/prod-appengine.edge.frontend/246,peii21:6599,pabbi7:9842     | x-google-gfe-service-trace: apphosting,dasher_zoo_responder,apphosting     | x-google-appengine-appid: s~dartlang-pub     | x-google-gslb-service: apphosting     | x-google-appengine-module: default     | x-google-dos-service-trace: main:apphosting,dasher:apphosting     | expires: Fri, 01 Jan 1990 00:00:00 GMT FINE: HTTP response 200 OK for GET https://pub.dartlang.org/api/packages/yaml     | took 0:00:02.062520     | x-google-appengine-version: 13     | cache-control: no-cache, must-revalidate     | transfer-encoding: chunked     | date: Tue, 10 Dec 2013 00:56:16 GMT     | vary: Accept-Encoding     | x-google-backends: /gns/project/apphosting/appserver/prod-appengine/ig/prod-appengine.remote-ie.appserver/182,igbpo6.prod.google.com:4238,/bns/ic/borg/ic/bns/apphosting/prod-appengine.edge.frontend/211,pdj5:6599,/bns/pd/borg/pd/bns/gfe-prod/shared-gfe/91.gfe,pacrp14:9899     | x-google-gfe-response-code-details-trace: response_code_set_by_backend,response_code_set_by_backend     | pragma: no-cache     | content-type: application/json     | x-google-gfe-response-body-transformations: gunzipped,chunked     | x-google-service: apphosting,apphosting     | server: Google Frontend     | x-google-gfe-request-trace: pacrp14:9899,pdj5:6599,/bns/ic/borg/ic/bns/apphosting/prod-appengine.edge.frontend/211,pdj5:6599,pacrp14:9899     | x-google-gfe-service-trace: apphosting,dasher_zoo_responder,apphosting     | x-google-appengine-appid: s~dartlang-pub     | x-google-gslb-service: apphosting     | x-google-appengine-module: default     | x-google-dos-service-trace: main:apphosting,dasher:apphosting     | expires: Fri, 01 Jan 1990 00:00:00 GMT FINE: HTTP response 200 OK for GET https://pub.dartlang.org/api/packages/barback     | took 0:00:02.098642     | x-google-appengine-version: 13     | cache-control: no-cache, must-revalidate     | transfer-encoding: chunked     | date: Tue, 10 Dec 2013 00:56:16 GMT     | vary: Accept-Encoding     | x-google-backends: /gns/project/apphosting/appserver/prod-appengine/ig/prod-appengine.remote-ie.appserver/182,ighs5.prod.google.com:4471,/bns/ic/borg/ic/bns/apphosting/prod-appengine.edge.frontend/196,pec78:6599,/bns/pe/borg/pe/bns/gfe-prod/shared-gfe/52.gfe,padke9:9862     | x-google-gfe-response-code-details-trace: response_code_set_by_backend,response_code_set_by_backend     | pragma: no-cache     | content-type: application/json     | x-google-gfe-response-body-transformations: gunzipped,chunked     | x-google-service: apphosting,apphosting     | server: Google Frontend     | x-google-gfe-request-trace: padke9:9862,pec78:6599,/bns/ic/borg/ic/bns/apphosting/prod-appengine.edge.frontend/196,pec78:6599,padke9:9862     | x-google-gfe-service-trace: apphosting,dasher_zoo_responder,apphosting     | x-google-appengine-appid: s~dartlang-pub     | x-google-gslb-service: apphosting     | x-google-appengine-module: default     | x-google-dos-service-trace: main:apphosting,dasher:apphosting     | expires: Fri, 01 Jan 1990 00:00:00 GMT FINE: HTTP response 200 OK for GET https://pub.dartlang.org/api/packages/unittest     | took 0:00:02.631898     | x-google-appengine-version: 13     | cache-control: no-cache, must-revalidate     | transfer-encoding: chunked     | date: Tue, 10 Dec 2013 00:56:16 GMT     | vary: Accept-Encoding     | x-google-backends: /gns/project/apphosting/appserver/prod-appengine/ig/prod-appengine.remote-ie.appserver/182,igbrr9.prod.google.com:4044,/bns/ic/borg/ic/bns/apphosting/prod-appengine.edge.frontend/198,pejj196:6599,/bns/pe/borg/pe/bns/gfe-prod/shared-gfe/176.gfe,paeg5:9839     | x-google-gfe-response-code-details-trace: response_code_set_by_backend,response_code_set_by_backend     | pragma: no-cache     | content-type: application/json     | x-google-gfe-response-body-transformations: gunzipped,chunked     | x-google-service: apphosting,apphosting     | server: Google Frontend     | x-google-gfe-request-trace: paeg5:9839,pejj196:6599,/bns/ic/borg/ic/bns/apphosting/prod-appengine.edge.frontend/198,pejj196:6599,paeg5:9839     | x-google-gfe-service-trace: apphosting,dasher_zoo_responder,apphosting     | x-google-appengine-appid: s~dartlang-pub     | x-google-gslb-service: apphosting     | x-google-appengine-module: default     | x-google-dos-service-trace: main:apphosting,dasher:apphosting     | expires: Fri, 01 Jan 1990 00:00:00 GMT SLVR: select polymer_expressions 0.9.1 from hosted SLVR: | select polymer 0.9.2 from hosted SLVR: | | add implicit >=0.11.0 <0.12.0 constraint to barback SLVR: | | add implicit >=0.11.0 <0.12.0 constraint to barback SLVR: | | no versions for barback match >=0.11.0 <0.12.0 SLVR: BacktrackingSolver took 0:00:02.985018 seconds.     | - Requested 6 version lists     | - Looked up 3 cached version lists     | - Requested 0 pubspecs     | - Looked up 1 cached pubspecs     | MSG : Resolving dependencies........ FINE: Clean up system cache temp directory /Users/alanknight/.pub-cache/_temp. ERR : The null object does not have a method 'forEach'.     |     | NoSuchMethodError : method not found: 'forEach'     | Receiver: null     | Arguments: [Closure: (String) => dynamic] ERR : dart:core Object.noSuchMethod     | ../../../dart-git/dart/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart 321 BacktrackingSolver._getTransitiveDependers.walk     | ../../../dart-git/dart/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart 324 BacktrackingSolver._getTransitiveDependers     | ../../../dart-git/dart/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart 217 BacktrackingSolver._backtrack     | ../../../dart-git/dart/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart 194 BacktrackingSolver._traverseSolution.<fn>.<fn>     | dart:isolate _RawReceivePortImpl._handleMessage     |

---- End log transcript ----

munificent commented 10 years ago

I'll take a look.


Set owner to @munificent. Removed Priority-Unassigned label. Added Priority-High, Accepted labels.

nex3 commented 10 years ago

Issue #15570 has been merged into this issue.


cc @munificent.

sethladd commented 10 years ago

Issue #15570 has been merged into this issue.

munificent commented 10 years ago

Added Started label.

munificent commented 10 years ago

https://codereview.chromium.org/112473002/

munificent commented 10 years ago

Added Fixed label.

DartBot commented 9 years ago

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