Skip to content
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

pub crashes or freezes when using dependency_overrides (Dart 1.7-dev.4.5) #21298

Closed
DartBot opened this issue Oct 10, 2014 · 20 comments
Closed
Assignees
Labels
P0 A serious issue requiring immediate resolution
Milestone

Comments

@DartBot
Copy link

DartBot commented Oct 10, 2014

This issue was originally filed by luiz....@gmail.com


I'm trying to upgrade my applications to Dart 1.7, but I'm having some problems when using the dependency_overrides option with the latest sdk.

To better illustrate these problems, I've created a github repository that simulates my development enviroment (It's just a bunch of folders with pubspec.yaml files):

https://github.com/luizmineo/dart-pub-errors

When running pub get in error1/test, it shows the following message:

Changed 1 dependency!
The null object does not have a method 'map'.

NoSuchMethodError: method not found: 'map'
Receiver: null
Arguments: [Closure: (dynamic) => dynamic]
This is an unexpected error. Please run

    pub --trace 'get'

and include the results in a bug report on http://dartbug.com/new.

Running the pub --trace 'get' command produces the attached error.

The second error is more complicated. If you run pub get in error2/test, it won't crash, but will hang for about 20 minutes, and exits with the follwing message:

Resolving dependencies... (13:27.3s)
Connection closed before full header was received

 


Attachment:
error_log.txt (7.84 KB)

@kasperl
Copy link

kasperl commented Oct 10, 2014

Bob, do you have any insights into what's going on here?


cc @ricowind.
Set owner to @munificent.
Added this to the 1.7 milestone.
Removed Priority-Unassigned label.
Added Priority-High, Area-Pub, Accepted labels.

@kasperl
Copy link

kasperl commented Oct 10, 2014

Seems to be a problem for multiple users (at least two). Bumping priority to make sure we figure out if this is a release blocker.


Removed Priority-High label.
Added Priority-Critical label.

@DartBot
Copy link
Author

DartBot commented Oct 10, 2014

This comment was originally written by @alan-knight


Bob and Nathalie are both unavailable. I'll see what I can figure out.

Preliminary comments
  - error1 does not seem to reproduce for me in bleeding edge, will check further
  - error2 does reproduce for me in bleeding edge, but it seems like it can be worked around by deleting the dependency override settings, doing a pub get, and then putting back the overrides and doing a second pub get.

@DartBot
Copy link
Author

DartBot commented Oct 10, 2014

This comment was originally written by luiz....@gmail.com


I've take another look at error1, and it seems to be related to the .pub directory (removing it solves the problem). I've removed this folder from the repository, considering it was unrelated, but you can retrieve it checking out the initial commit:

git checkout 5e4684d38e523b145012aa772e00c0a3b323d9be

Also, the workaround for error2 worked for me. Thanks.

@DartBot
Copy link
Author

DartBot commented Oct 10, 2014

This comment was originally written by @alan-knight


  • I can't reproduce error1 in the latest dev version (downloading the editor and running pub from dart-sdk/bin) SDK version 1.7.0-dev.4.5, running on a Mac. By the way, thank you for the awesome reproduction cases.
  • It's not clear that error2 is actually a barback bug. It might be, it might be a known behaviour change, or I don't know what.

The solver is backtracking indefinitely and not able to solve the version constraints, but I think that may be due to the specific constraints involved with the overrides. The constraint problems seem likely to involve the analyzer version, which is where a lot of the backtracking is happening. By fiddling around with the pubspecs in the overrides (removing the version numbers in their pubspecs and setting all the dependencies to any, plus something else that I now can't seem to get to happen again) I was able to get it to resolve, but it used analyzer version 18 and other back-level versions.

I'm not good enough at reading pub solver logs to figure out where the issue is. If this resolved with older versions there might be a behaviour change in pub which is the reason. One that I know of is that (I believe) it now treats 0.22.0-dev.1 as being >= 0.22.0, where previous releases treated it as less than 0.22.0. But if that's the reason I don't know why that would make it solve successfully if something had already been resolved without the overrides.

So I'm going to say that without more information these don't look like release-blocking problems, but it would be good if Bob or Nathalie would weigh in.

@DartBot
Copy link
Author

DartBot commented Oct 10, 2014

This comment was originally written by @alan-knight


Ok, if I check out that version I can reproduce error1. And pub cache repair doesn't help.

So that's worth looking into.

@DartBot
Copy link
Author

DartBot commented Oct 12, 2014

This comment was originally written by luiz....@gmail.com


I've added another scenario to the repository (error3), but this one doesn't involve the dependency_overrides option.

If you run pub get in error3/, it'll show the following error:

Incompatible version constraints on analyzer:

  • code_transformers 0.1.4 depends on version >=0.13.0 <0.14.0
  • di 3.3.1 depends on version >=0.15.0 <0.22.0

The problem is that the pubspec.yaml file contains only one package that depends on code_transformers (di). If you remove the di package from the dependencies list, and run pub deps, you won't see both code_transformers or analyzer in the package tree.

test 0.0.1
|-- collection 1.0.0
|-- crypto 0.9.0
|-- grinder 0.6.0
| |-- args 0.12.0+2
| | '-- collection...
| '-- quiver 0.18.2
| '-- path...
|-- http 0.11.1+1
| |-- path...
| |-- stack_trace...
| '-- http_parser 0.0.2+5
| |-- collection...
| |-- crypto...
| '-- string_scanner 0.1.0
| |-- path...
| '-- source_span 1.0.0
| '-- path...
|-- mime 0.9.0+3
|-- route_hierarchical 0.5.0
| |-- browser 0.10.0+2
| '-- logging 0.9.2
|-- shelf 0.5.5
| |-- collection...
| |-- http_parser...
| |-- path...
| '-- stack_trace...
|-- stack_trace 1.1.1
| '-- path 1.3.0
'-- unittest 0.11.0+5
    |-- stack_trace...
    '-- matcher 0.11.1

I hope that helps to figure out what's going on.

@DartBot
Copy link
Author

DartBot commented Oct 12, 2014

This comment was originally written by javiers...@gmail.com


Just encountered an error that seems to be like this one, more similar to the 3º error described. Just downloaded a few minutes ago the version 1.7.0-dev.4.5 version of the bundle (sdk, editor, dartium). My dependencies file:

name: Arquitecture
version: 0.0.1
description: An app to learn pieces of knowlage
dependencies:
  angular: 0.12.0
  angular_ui: 0.5.5
  browser: any

Note: doing the hack to make it work in Ubuntu 13.10, 14.04, 14.10 and mints (https://code.google.com/p/dart/issues/detail?id=12325).
SO Version used => updated Kubuntu 14.10 Tech Preview

The pub --trace 'get' output:

Resolving dependencies...
Got dependencies!
The null object does not have a method 'map'.

NoSuchMethodError: method not found: 'map'
Receiver: null
Arguments: [Closure: (dynamic) => dynamic]
dart:async _Completer.completeError
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/entrypoint.dart 78 Entrypoint.acquireDependencies.<fn>.<fn>.join0.join1.join2.<fn>.join3.<fn>
dart:isolate _RawReceivePortImpl._handleMessage
===== asynchronous gap ===========================
dart:async _Future.then
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/entrypoint.dart 65 Entrypoint.acquireDependencies.<fn>.<fn>.join0.join1.join2.<fn>.join3
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/entrypoint.dart 86 Entrypoint.acquireDependencies.<fn>.<fn>.join0.join1.join2.<fn>
dart:isolate _RawReceivePortImpl._handleMessage
===== asynchronous gap ===========================
dart:async _Future.then
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/entrypoint.dart 58 Entrypoint.acquireDependencies.<fn>.<fn>.join0.join1.join2
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/entrypoint.dart 99 Entrypoint.acquireDependencies.<fn>.<fn>.join0.join1
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/entrypoint.dart 109 Entrypoint.acquireDependencies.<fn>.<fn>.join0
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/entrypoint.dart 115 Entrypoint.acquireDependencies.<fn>.<fn>
dart:isolate _RawReceivePortImpl._handleMessage
===== asynchronous gap ===========================
dart:async _Future.then
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/entrypoint.dart 51 Entrypoint.acquireDependencies.<fn>
dart:isolate _RawReceivePortImpl._handleMessage
===== asynchronous gap ===========================
dart:async scheduleMicrotask
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/entrypoint.dart 44 Entrypoint.acquireDependencies
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/command/get.dart 22 onRun
dart:async Future.Future.sync
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/command.dart 113 PubCommand.run
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 133 invokeCommand.<fn>.break0.join0
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 143 invokeCommand.<fn>.break0
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 201 invokeCommand.<fn>.continue0
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 155 invokeCommand.<fn>.continue0.<fn>.join2.join3
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 161 invokeCommand.<fn>.continue0.<fn>.join2
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 197 invokeCommand.<fn>.continue0.<fn>
dart:isolate _RawReceivePortImpl._handleMessage
===== asynchronous gap ===========================
dart:async _Future.then
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 148 invokeCommand.<fn>.continue0
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 204 invokeCommand.<fn>
dart:isolate _RawReceivePortImpl._handleMessage
===== asynchronous gap ===========================
dart:async scheduleMicrotask
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 112 invokeCommand
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 75 runPub.<fn>
dart:async Future.Future.sync
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/utils.dart 56 captureErrors.<fn>
package:stack_trace/src/chain.dart 78 Chain.capture
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/utils.dart 67 captureErrors
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 74 runPub
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 67 main.<fn>
dart:isolate _RawReceivePortImpl._handleMessage

---- Log transcript ----
FINE: Pub 1.7.0-dev.4.5
FINE: Clean up system cache temp directory /home/javi/.pub-cache/_temp.
SLVR: Solving dependencies:
    | - angular_ui 0.5.5 from hosted (angular_ui) (locked to 0.5.5)
    | - browser any from hosted (browser) (locked to 0.10.0+2)
    | - angular 0.12.0 from hosted (angular) (locked to 0.12.0)
SLVR: | angular 0.12.0 from hosted is locked
SLVR: * select angular 0.12.0 from hosted
SLVR: | angular_ui 0.5.5 from hosted is locked
SLVR: | * select angular_ui 0.5.5 from hosted
SLVR: | | browser 0.10.0+2 from hosted is locked
SLVR: | | * select browser 0.10.0+2 from hosted
SLVR: | | | analyzer 0.13.6 from hosted is locked
SLVR: | | | * select analyzer 0.13.6 from hosted
SLVR: | | | | args 0.10.0+2 from hosted is locked
SLVR: | | | | * select args 0.10.0+2 from hosted
SLVR: | | | | | barback 0.13.0 from hosted is locked
SLVR: | | | | | * select barback 0.13.0 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: | | | | | | source_span 1.0.0 from hosted is locked
SLVR: | | | | | | add implicit >=0.9.1 <2.0.0 pub dependency on stack_trace
SLVR: | | | | | | stack_trace 0.9.3+2 from hosted is locked
SLVR: | | | | | | * select source_span 1.0.0 from hosted
SLVR: | | | | | | | * select stack_trace 0.9.3+2 from hosted
SLVR: | | | | | | | | code_transformers 0.1.4+1 from hosted is locked
SLVR: | | | | | | | | * select code_transformers 0.1.4+1 from hosted
SLVR: | | | | | | | | | collection 0.9.4 from hosted is locked
SLVR: | | | | | | | | | * select collection 0.9.4 from hosted
SLVR: | | | | | | | | | | di 0.0.40 from hosted is locked
SLVR: | | | | | | | | | | * select di 0.0.40 from hosted
SLVR: | | | | | | | | | | | html5lib 0.10.0 from hosted is locked
SLVR: | | | | | | | | | | | * select html5lib 0.10.0 from hosted
SLVR: | | | | | | | | | | | | intl 0.9.10 from hosted is locked
SLVR: | | | | | | | | | | | | * select intl 0.9.10 from hosted
SLVR: | | | | | | | | | | | | | perf_api 0.0.9 from hosted is locked
SLVR: | | | | | | | | | | | | | * select perf_api 0.0.9 from hosted
SLVR: | | | | | | | | | | | | | | route_hierarchical 0.4.22 from hosted is locked
SLVR: | | | | | | | | | | | | | | * select route_hierarchical 0.4.22 from hosted
SLVR: | | | | | | | | | | | | | | | web_components 0.3.5+1 from hosted is locked
SLVR: | | | | | | | | | | | | | | | * select web_components 0.3.5+1 from hosted
SLVR: | | | | | | | | | | | | | | | | logging 0.9.2 from hosted is locked
SLVR: | | | | | | | | | | | | | | | | * select logging 0.9.2 from hosted
SLVR: | | | | | | | | | | | | | | | | | path 1.3.0 from hosted is locked
SLVR: | | | | | | | | | | | | | | | | | * select path 1.3.0 from hosted
SLVR: | | | | | | | | | | | | | | | | | | source_maps 0.9.4 from hosted is locked
SLVR: | | | | | | | | | | | | | | | | | | * select source_maps 0.9.4 from hosted
SLVR: | | | | | | | | | | | | | | | | | | | utf 0.9.0+1 from hosted is locked
SLVR: | | | | | | | | | | | | | | | | | | | * select utf 0.9.0+1 from hosted
SLVR: BacktrackingSolver took 0:00:00.223810 seconds.
    | - Requested 0 version lists
    | - Looked up 0 cached version lists
    | - Requested 20 pubspecs
    | - Looked up 1 cached pubspecs
    |
FINE: Resolving dependencies finished (0.2s).
IO : Deleting directory /home/javi/code/Arquitecture/packages.
FINE: Creating link for package 'angular'.
FINE: Creating /home/javi/code/Arquitecture/packages/angular pointing to /home/javi/.pub-cache/hosted/pub.dartlang.org/angular-0.12.0/lib
FINE: Creating link for package 'angular_ui'.
FINE: Creating /home/javi/code/Arquitecture/packages/angular_ui pointing to /home/javi/.pub-cache/hosted/pub.dartlang.org/angular_ui-0.5.5/lib
FINE: Creating link for package 'browser'.
FINE: Creating /home/javi/code/Arquitecture/packages/browser pointing to /home/javi/.pub-cache/hosted/pub.dartlang.org/browser-0.10.0+2/lib
FINE: Creating link for package 'analyzer'.
FINE: Creating /home/javi/code/Arquitecture/packages/analyzer pointing to /home/javi/.pub-cache/hosted/pub.dartlang.org/analyzer-0.13.6/lib
FINE: Creating link for package 'args'.
FINE: Creating /home/javi/code/Arquitecture/packages/args pointing to /home/javi/.pub-cache/hosted/pub.dartlang.org/args-0.10.0+2/lib
FINE: Creating link for package 'barback'.
FINE: Creating /home/javi/code/Arquitecture/packages/barback pointing to /home/javi/.pub-cache/hosted/pub.dartlang.org/barback-0.13.0/lib
FINE: Creating link for package 'source_span'.
FINE: Creating /home/javi/code/Arquitecture/packages/source_span pointing to /home/javi/.pub-cache/hosted/pub.dartlang.org/source_span-1.0.0/lib
FINE: Creating link for package 'stack_trace'.
FINE: Creating /home/javi/code/Arquitecture/packages/stack_trace pointing to /home/javi/.pub-cache/hosted/pub.dartlang.org/stack_trace-0.9.3+2/lib
FINE: Creating link for package 'code_transformers'.
FINE: Creating /home/javi/code/Arquitecture/packages/code_transformers pointing to /home/javi/.pub-cache/hosted/pub.dartlang.org/code_transformers-0.1.4+1/lib
FINE: Creating link for package 'collection'.
FINE: Creating /home/javi/code/Arquitecture/packages/collection pointing to /home/javi/.pub-cache/hosted/pub.dartlang.org/collection-0.9.4/lib
FINE: Creating link for package 'di'.
FINE: Creating /home/javi/code/Arquitecture/packages/di pointing to /home/javi/.pub-cache/hosted/pub.dartlang.org/di-0.0.40/lib
FINE: Creating link for package 'html5lib'.
FINE: Creating /home/javi/code/Arquitecture/packages/html5lib pointing to /home/javi/.pub-cache/hosted/pub.dartlang.org/html5lib-0.10.0/lib
FINE: Creating link for package 'intl'.
FINE: Creating /home/javi/code/Arquitecture/packages/intl pointing to /home/javi/.pub-cache/hosted/pub.dartlang.org/intl-0.9.10/lib
FINE: Creating link for package 'perf_api'.
FINE: Creating /home/javi/code/Arquitecture/packages/perf_api pointing to /home/javi/.pub-cache/hosted/pub.dartlang.org/perf_api-0.0.9/lib
FINE: Creating link for package 'route_hierarchical'.
FINE: Creating /home/javi/code/Arquitecture/packages/route_hierarchical pointing to /home/javi/.pub-cache/hosted/pub.dartlang.org/route_hierarchical-0.4.22/lib
FINE: Creating link for package 'web_components'.
FINE: Creating /home/javi/code/Arquitecture/packages/web_components pointing to /home/javi/.pub-cache/hosted/pub.dartlang.org/web_components-0.3.5+1/lib
FINE: Creating link for package 'logging'.
FINE: Creating /home/javi/code/Arquitecture/packages/logging pointing to /home/javi/.pub-cache/hosted/pub.dartlang.org/logging-0.9.2/lib
FINE: Creating link for package 'path'.
FINE: Creating /home/javi/code/Arquitecture/packages/path pointing to /home/javi/.pub-cache/hosted/pub.dartlang.org/path-1.3.0/lib
FINE: Creating link for package 'source_maps'.
FINE: Creating /home/javi/code/Arquitecture/packages/source_maps pointing to /home/javi/.pub-cache/hosted/pub.dartlang.org/source_maps-0.9.4/lib
FINE: Creating link for package 'utf'.
FINE: Creating /home/javi/code/Arquitecture/packages/utf pointing to /home/javi/.pub-cache/hosted/pub.dartlang.org/utf-0.9.0+1/lib
IO : Writing 1689 characters to text file /home/javi/code/Arquitecture/pubspec.lock.
FINE: Contents:
    | # Generated by pub
    | # See http://pub.dartlang.org/doc/glossary.html#lockfile
    | packages:
    | analyzer:
    | description: analyzer
    | source: hosted
    | version: "0.13.6"
    | angular:
    | description: angular
    | source: hosted
    | version: "0.12.0"
    | angular_ui:
    | description: angular_ui
    | source: hosted
    | version: "0.5.5"
    | args:
    | description: args
    | source: hosted
    | version: "0.10.0+2"
    | barback:
    | description: barback
    | source: hosted
    | version: "0.13.0"
    | browser:
    | description: browser
    | source: hosted
    | version: "0.10.0+2"
    | code_transformers:
    | description: code_transformers
    | source: hosted
    | version: "0.1.4+1"
    | collection:
    | description: collection
    | source: hosted
    | version: "0.9.4"
    | di:
    | description: di
    | source: hosted
    | version: "0.0.40"
    | html5lib:
    | description: html5lib
    | source: hosted
    | version: "0.10.0"
    | intl:
    | description: intl
    | source: hosted
    | version: "0.9.10"
    | logging:
    | description: logging
    | source: hosted
    | version: "0.9.2"
    | path:
    | description: path
    | source: hosted
    | version: "1.3.0"
    | perf_api:
    | description: perf_api
    | source: hosted
    | version: "0.0.9"
    | route_hierarchical:
    | description: route_hierarchical
    | source: hosted
    | version: "0.4.22"
    | source_maps:
    | description: source_maps
    | source: hosted
    | version: "0.9.4"
    | source_span:
    | description: source_span
    | source: hosted
    | version: "1.0.0"
    | stack_trace:
    | description: stack_trace
    | source: hosted
    | version: "0.9.3+2"
    | utf:
    | description: utf
    | source: hosted
    | version: "0.9.0+1"
    | web_components:
    | description: web_components
    | source: hosted
    | version: "0.3.5+1"
IO : Deleting link /home/javi/code/Arquitecture/web/packages.
FINE: Creating /home/javi/code/Arquitecture/web/packages pointing to ../packages
IO : Deleting link /home/javi/code/Arquitecture/web/partials/packages.
FINE: Creating /home/javi/code/Arquitecture/web/partials/packages pointing to ../../packages
IO : Deleting link /home/javi/code/Arquitecture/web/daos/packages.
FINE: Creating /home/javi/code/Arquitecture/web/daos/packages pointing to ../../packages
IO : Deleting link /home/javi/code/Arquitecture/web/services/packages.
FINE: Creating /home/javi/code/Arquitecture/web/services/packages pointing to ../../packages
IO : Deleting link /home/javi/code/Arquitecture/web/controllers/packages.
FINE: Creating /home/javi/code/Arquitecture/web/controllers/packages pointing to ../../packages
IO : Deleting link /home/javi/code/Arquitecture/web/vos/packages.
FINE: Creating /home/javi/code/Arquitecture/web/vos/packages pointing to ../../packages
IO : Deleting link /home/javi/code/Arquitecture/web/entities/packages.
FINE: Creating /home/javi/code/Arquitecture/web/entities/packages pointing to ../../packages
MSG : Got dependencies!
ERR : The null object does not have a method 'map'.
    |
    | NoSuchMethodError: method not found: 'map'
    | Receiver: null
    | Arguments: [Closure: (dynamic) => dynamic]
FINE: Exception type: NoSuchMethodError
ERR : dart:async _Completer.completeError
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/entrypoint.dart 78 Entrypoint.acquireDependencies.<fn>.<fn>.join0.join1.join2.<fn>.join3.<fn>
    | dart:isolate _RawReceivePortImpl._handleMessage
    | ===== asynchronous gap ===========================
    | dart:async _Future.then
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/entrypoint.dart 65 Entrypoint.acquireDependencies.<fn>.<fn>.join0.join1.join2.<fn>.join3
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/entrypoint.dart 86 Entrypoint.acquireDependencies.<fn>.<fn>.join0.join1.join2.<fn>
    | dart:isolate _RawReceivePortImpl._handleMessage
    | ===== asynchronous gap ===========================
    | dart:async _Future.then
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/entrypoint.dart 58 Entrypoint.acquireDependencies.<fn>.<fn>.join0.join1.join2
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/entrypoint.dart 99 Entrypoint.acquireDependencies.<fn>.<fn>.join0.join1
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/entrypoint.dart 109 Entrypoint.acquireDependencies.<fn>.<fn>.join0
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/entrypoint.dart 115 Entrypoint.acquireDependencies.<fn>.<fn>
    | dart:isolate _RawReceivePortImpl._handleMessage
    | ===== asynchronous gap ===========================
    | dart:async _Future.then
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/entrypoint.dart 51 Entrypoint.acquireDependencies.<fn>
    | dart:isolate _RawReceivePortImpl._handleMessage
    | ===== asynchronous gap ===========================
    | dart:async scheduleMicrotask
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/entrypoint.dart 44 Entrypoint.acquireDependencies
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/command/get.dart 22 onRun
    | dart:async Future.Future.sync
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/command.dart 113 PubCommand.run
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 133 invokeCommand.<fn>.break0.join0
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 143 invokeCommand.<fn>.break0
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 201 invokeCommand.<fn>.continue0
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 155 invokeCommand.<fn>.continue0.<fn>.join2.join3
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 161 invokeCommand.<fn>.continue0.<fn>.join2
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 197 invokeCommand.<fn>.continue0.<fn>
    | dart:isolate _RawReceivePortImpl._handleMessage
    | ===== asynchronous gap ===========================
    | dart:async _Future.then
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 148 invokeCommand.<fn>.continue0
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 204 invokeCommand.<fn>
    | dart:isolate _RawReceivePortImpl._handleMessage
    | ===== asynchronous gap ===========================
    | dart:async scheduleMicrotask
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 112 invokeCommand
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 75 runPub.<fn>
    | dart:async Future.Future.sync
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/utils.dart 56 captureErrors.<fn>
    | package:stack_trace/src/chain.dart 78 Chain.capture
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/lib/src/utils.dart 67 captureErrors
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 74 runPub
    | /mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub_generated/bin/pub.dart 67 main.<fn>
    | dart:isolate _RawReceivePortImpl._handleMessage

---- End log transcript ----

Best regards.
Javi

@DartBot
Copy link
Author

DartBot commented Oct 12, 2014

This comment was originally written by @alan-knight


Javi - that sounds like error1. Did you try deleting the .pub directory (and probably do a pub cache repair just for good measure) and retrying?

@DartBot
Copy link
Author

DartBot commented Oct 12, 2014

This comment was originally written by @alan-knight


Luiz. I think this is not a pub bug but a version constraint issue that there aren't valid versions for what you're looking for. I think the root cause is known, which is that analyzer is revving rapidly, and lots of things depend on it. So, I don't know the whole cause, but if you look at the trace
  - di requires analyzer < 0.22.0. This may have been ok before when pub would accept 0.22.0-dev.1 as being <22, but that's really not correct. If you won't accept 0.22.0 stable, you probably don't want 0.22.0 dev versions.
  - analyzer 0.21.x requires args between 0.10.0 and 0.12.0
  - grinder requires args > 0.12.0+02

I haven't followed this all the way through, but basically I think this is pushing it onto old versions of everything. I'm suspicious that the quickest answer is di to allow the latest analyzer, or grinder to allow older versions of args.

@DartBot
Copy link
Author

DartBot commented Oct 12, 2014

This comment was originally written by luiz.min...@gmail.com


Thanks! You are right. Using an older version of grinder (which requires an older version of args) solves the problem.

@DartBot
Copy link
Author

DartBot commented Oct 12, 2014

This comment was originally written by javiers...@gmail.com


Alan - Deleting the .pub_cache and the .pub directories did the trick is this behaviour known or if encounter this again should report it, because last time it happened after just a few minutes of use.

Thanks.

@DartBot
Copy link
Author

DartBot commented Oct 13, 2014

This comment was originally written by whesse@chromium.org


I can reproduce the issue on MacOS, using the git checkout from luizmineo, at revision5e4684d38e523b145012aa772e00c0a3b323d9be

The problem persists if the bin and deps directories are deleted from .pub, and even if transformers/transformers.snapshot is deleted. It is caused somehow by the manifest.txt file in .pub/transformers. It would be easier to debug this with instructions for running pub from the files in sdk/lib/_internal/pub_generated in the repository, rather than from the sdk (which uses a snapshot, I think), because then debug code could be added to detect from which point the exception is thrown.

@nex3
Copy link
Member

nex3 commented Oct 13, 2014

@whesse: You can run pub from the debug sources using the "sdk/bin/pub" script.

I'll see if I can figure out a fix for this.


Set owner to @nex3.

@nex3
Copy link
Member

nex3 commented Oct 13, 2014

I can't reproduce this on Linux, but I'll try to work with Alan to figure out what's going on.

@nex3
Copy link
Member

nex3 commented Oct 13, 2014

Managed to find a repro, will have a patch shortly.


Added Started label.

@nex3
Copy link
Member

nex3 commented Oct 13, 2014

Fixed in r41087.


Added Fixed label.

@kasperl
Copy link

kasperl commented Oct 14, 2014

The fix has been pushed to the dev channel in 1.7.0-dev.4.6. Is it possible for you to verify that it works, Luiz?

@DartBot
Copy link
Author

DartBot commented Oct 14, 2014

This comment was originally written by luiz.m...@gmail.com


I'm no longer able to reproduce error1 with 1.7.0-dev.4.6, so I can confirm that it was fixed.

However, I'm still able to reproduce error2 (but I can workaround it as Alan suggested). Should I open another bug for it?

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 A serious issue requiring immediate resolution
Projects
None yet
Development

No branches or pull requests

3 participants