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 ignores unhandled command-line arguments #13043

Closed
danrubel opened this issue Sep 4, 2013 · 6 comments
Closed

Pub ignores unhandled command-line arguments #13043

danrubel opened this issue Sep 4, 2013 · 6 comments
Assignees
Milestone

Comments

@danrubel
Copy link

danrubel commented Sep 4, 2013

Ran pub offline and got the following...

SDK version 0.1.2.0_r27056

.../dart-sdk/bin/pub install --trace 'install' '--offline'
Resolving dependencies...
Could not resolve URL "https://pub.dartlang.org".

­0 fail (file:///Volumes/data/b/build/slave/dart-editor-mac/build/dart/sdk/lib/_internal/pub/lib/src/utils.dart:355:3)

­1 PubHttpClient.send.<anonymous closure> (file:///Volumes/data/b/build/slave/dart-editor-mac/build/dart/sdk/lib/_internal/pub/lib/src/http.dart:50:15)

­2 _CatchErrorFuture._zonedSendError (dart:async/future_impl.dart:409:24)

­3 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)

­4 _ZoneBase._runInZone (dart:async/zone.dart:74:15)

­5 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)

­6 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)

­7 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)

­8 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)

­9 _FutureImpl._setError (dart:async/future_impl.dart:189:23)

­10 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)

­11 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)

­12 _ZoneBase._runInZone (dart:async/zone.dart:74:15)

­13 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)

­14 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)

­15 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)

­16 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)

­17 _FutureImpl._setError (dart:async/future_impl.dart:189:23)

­18 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)

­19 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)

­20 _ZoneBase._runInZone (dart:async/zone.dart:74:15)

­21 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)

­22 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)

­23 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)

­24 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)

­25 _FutureImpl._setError (dart:async/future_impl.dart:189:23)

­26 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)

­27 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)

­28 _ZoneBase._runInZone (dart:async/zone.dart:74:15)

­29 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)

­30 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)

­31 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)

­32 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)

­33 _FutureImpl._setError (dart:async/future_impl.dart:189:23)

­34 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)

­35 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)

­36 _ZoneBase._runInZone (dart:async/zone.dart:74:15)

­37 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)

­38 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)

­39 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)

­40 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)

­41 _FutureImpl._setError (dart:async/future_impl.dart:189:23)

­42 _FutureImpl._chain (dart:async/future_impl.dart:288:23)

­43 _FutureImpl._setOrChainValue (dart:async/future_impl.dart:328:27)

­44 _SubscribeFuture._zonedSendError (dart:async/future_impl.dart:432:21)

­45 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)

­46 _ZoneBase._runInZone (dart:async/zone.dart:74:15)

­47 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)

­48 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)

­49 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)

­50 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)

­51 _FutureImpl._setError (dart:async/future_impl.dart:189:23)

­52 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)

­53 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)

­54 _ZoneBase._runInZone (dart:async/zone.dart:74:15)

­55 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)

­56 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)

­57 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)

­58 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)

­59 _FutureImpl._setError (dart:async/future_impl.dart:189:23)

­60 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)

­61 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)

­62 _ZoneBase._runInZone (dart:async/zone.dart:74:15)

­63 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)

­64 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)

­65 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)

­66 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)

­67 _FutureImpl._setError (dart:async/future_impl.dart:189:23)

­68 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)

­69 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)

­70 _ZoneBase._runInZone (dart:async/zone.dart:74:15)

­71 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)

­72 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)

­73 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)

­74 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)

­75 _FutureImpl._setError (dart:async/future_impl.dart:189:23)

­76 _ThenFuture._zonedSendValue (dart:async/future_impl.dart:374:16)

­77 _TransformFuture._sendValue.<anonymous closure> (dart:async/future_impl.dart:348:48)

­78 _ZoneBase._runInZone (dart:async/zone.dart:82:17)

­79 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)

­80 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)

­81 _TransformFuture._sendValue (dart:async/future_impl.dart:348:26)

­82 _FutureImpl._setValueUnchecked (dart:async/future_impl.dart:184:26)

­83 _FutureImpl._setValue (dart:async/future_impl.dart:174:23)

­84 _SyncCompleter._setFutureValue (dart:async/future_impl.dart:46:21)

­85 _Completer.complete (dart:async/future_impl.dart:16:20)

­86 _SendPortImpl.call.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:106:27)

­87 _ReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:81:92)

---- Log transcript ----
FINE: Pub 0.1.2+0.r27056
SLVR: Solving dependencies:
    | - unittest any from hosted (unittest) (locked to 0.6.20+1)
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
SLVR: Could not get versions for unittest any from hosted (unittest):
    | Could not resolve URL "https://pub.dartlang.org".
    |
    | #­0 fail (file:///Volumes/data/b/build/slave/dart-editor-mac/build/dart/sdk/lib/_internal/pub/lib/src/utils.dart:355:3)
    | #­1 PubHttpClient.send.<anonymous closure> (file:///Volumes/data/b/build/slave/dart-editor-mac/build/dart/sdk/lib/_internal/pub/lib/src/http.dart:50:15)
    | #­2 _CatchErrorFuture._zonedSendError (dart:async/future_impl.dart:409:24)
    | #­3 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)
    | #­4 _ZoneBase._runInZone (dart:async/zone.dart:74:15)
    | #­5 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
    | #­6 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
    | #­7 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)
    | #­8 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)
    | #­9 _FutureImpl._setError (dart:async/future_impl.dart:189:23)
    | #­10 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)
    | #­11 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)
    | #­12 _ZoneBase._runInZone (dart:async/zone.dart:74:15)
    | #­13 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
    | #­14 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
    | #­15 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)
    | #­16 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)
    | #­17 _FutureImpl._setError (dart:async/future_impl.dart:189:23)
    | #­18 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)
    | #­19 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)
    | #­20 _ZoneBase._runInZone (dart:async/zone.dart:74:15)
    | #­21 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
    | #­22 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
    | #­23 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)
    | #­24 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)
    | #­25 _FutureImpl._setError (dart:async/future_impl.dart:189:23)
    | #­26 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)
    | #­27 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)
    | #­28 _ZoneBase._runInZone (dart:async/zone.dart:74:15)
    | #­29 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
    | #­30 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
    | #­31 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)
    | #­32 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)
    | #­33 _FutureImpl._setError (dart:async/future_impl.dart:189:23)
    | #­34 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)
    | #­35 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)
    | #­36 _ZoneBase._runInZone (dart:async/zone.dart:74:15)
    | #­37 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
    | #­38 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
    | #­39 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)
    | #­40 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)
    | #­41 _FutureImpl._setError (dart:async/future_impl.dart:189:23)
    | #­42 _FutureImpl._chain (dart:async/future_impl.dart:288:23)
    | #­43 _FutureImpl._setOrChainValue (dart:async/future_impl.dart:328:27)
    | #­44 _SubscribeFuture._zonedSendError (dart:async/future_impl.dart:432:21)
    | #­45 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)
    | #­46 _ZoneBase._runInZone (dart:async/zone.dart:74:15)
    | #­47 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
    | #­48 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
    | #­49 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)
    | #­50 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)
    | #­51 _FutureImpl._setError (dart:async/future_impl.dart:189:23)
    | #­52 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)
    | #­53 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)
    | #­54 _ZoneBase._runInZone (dart:async/zone.dart:74:15)
    | #­55 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
    | #­56 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
    | #­57 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)
    | #­58 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)
    | #­59 _FutureImpl._setError (dart:async/future_impl.dart:189:23)
    | #­60 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)
    | #­61 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)
    | #­62 _ZoneBase._runInZone (dart:async/zone.dart:74:15)
    | #­63 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
    | #­64 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
    | #­65 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)
    | #­66 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)
    | #­67 _FutureImpl._setError (dart:async/future_impl.dart:189:23)
    | #­68 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)
    | #­69 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)
    | #­70 _ZoneBase._runInZone (dart:async/zone.dart:74:15)
    | #­71 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
    | #­72 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
    | #­73 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)
    | #­74 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)
    | #­75 _FutureImpl._setError (dart:async/future_impl.dart:189:23)
    | #­76 _ThenFuture._zonedSendValue (dart:async/future_impl.dart:374:16)
    | #­77 _TransformFuture._sendValue.<anonymous closure> (dart:async/future_impl.dart:348:48)
    | #­78 _ZoneBase._runInZone (dart:async/zone.dart:82:17)
    | #­79 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
    | #­80 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
    | #­81 _TransformFuture._sendValue (dart:async/future_impl.dart:348:26)
    | #­82 _FutureImpl._setValueUnchecked (dart:async/future_impl.dart:184:26)
    | #­83 _FutureImpl._setValue (dart:async/future_impl.dart:174:23)
    | #­84 _SyncCompleter._setFutureValue (dart:async/future_impl.dart:46:21)
    | #­85 _Completer.complete (dart:async/future_impl.dart:16:20)
    | #­86 _SendPortImpl.call.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:106:27)
    | #­87 _ReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:81:92)
    |
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
SLVR: BacktrackingSolver took 0:00:00.211521 seconds.
    | - Requested 2 version lists
    | - Looked up 0 cached version lists
    | - Requested 0 pubspecs
    | - Looked up 1 cached pubspecs
    |
MSG : Resolving dependencies...
FINE: Clean up system cache temp directory /Users/danrubel/.pub-cache/_temp.
ERR : Could not resolve URL "https://pub.dartlang.org".
ERR : #­0 fail (file:///Volumes/data/b/build/slave/dart-editor-mac/build/dart/sdk/lib/_internal/pub/lib/src/utils.dart:355:3)
    | #­1 PubHttpClient.send.<anonymous closure> (file:///Volumes/data/b/build/slave/dart-editor-mac/build/dart/sdk/lib/_internal/pub/lib/src/http.dart:50:15)
    | #­2 _CatchErrorFuture._zonedSendError (dart:async/future_impl.dart:409:24)
    | #­3 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)
    | #­4 _ZoneBase._runInZone (dart:async/zone.dart:74:15)
    | #­5 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
    | #­6 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
    | #­7 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)
    | #­8 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)
    | #­9 _FutureImpl._setError (dart:async/future_impl.dart:189:23)
    | #­10 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)
    | #­11 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)
    | #­12 _ZoneBase._runInZone (dart:async/zone.dart:74:15)
    | #­13 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
    | #­14 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
    | #­15 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)
    | #­16 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)
    | #­17 _FutureImpl._setError (dart:async/future_impl.dart:189:23)
    | #­18 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)
    | #­19 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)
    | #­20 _ZoneBase._runInZone (dart:async/zone.dart:74:15)
    | #­21 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
    | #­22 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
    | #­23 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)
    | #­24 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)
    | #­25 _FutureImpl._setError (dart:async/future_impl.dart:189:23)
    | #­26 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)
    | #­27 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)
    | #­28 _ZoneBase._runInZone (dart:async/zone.dart:74:15)
    | #­29 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
    | #­30 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
    | #­31 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)
    | #­32 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)
    | #­33 _FutureImpl._setError (dart:async/future_impl.dart:189:23)
    | #­34 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)
    | #­35 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)
    | #­36 _ZoneBase._runInZone (dart:async/zone.dart:74:15)
    | #­37 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
    | #­38 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
    | #­39 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)
    | #­40 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)
    | #­41 _FutureImpl._setError (dart:async/future_impl.dart:189:23)
    | #­42 _FutureImpl._chain (dart:async/future_impl.dart:288:23)
    | #­43 _FutureImpl._setOrChainValue (dart:async/future_impl.dart:328:27)
    | #­44 _SubscribeFuture._zonedSendError (dart:async/future_impl.dart:432:21)
    | #­45 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)
    | #­46 _ZoneBase._runInZone (dart:async/zone.dart:74:15)
    | #­47 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
    | #­48 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
    | #­49 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)
    | #­50 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)
    | #­51 _FutureImpl._setError (dart:async/future_impl.dart:189:23)
    | #­52 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)
    | #­53 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)
    | #­54 _ZoneBase._runInZone (dart:async/zone.dart:74:15)
    | #­55 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
    | #­56 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
    | #­57 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)
    | #­58 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)
    | #­59 _FutureImpl._setError (dart:async/future_impl.dart:189:23)
    | #­60 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)
    | #­61 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)
    | #­62 _ZoneBase._runInZone (dart:async/zone.dart:74:15)
    | #­63 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
    | #­64 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
    | #­65 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)
    | #­66 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)
    | #­67 _FutureImpl._setError (dart:async/future_impl.dart:189:23)
    | #­68 _ThenFuture._zonedSendError (dart:async/future_impl.dart:380:14)
    | #­69 _TransformFuture._sendError.<anonymous closure> (dart:async/future_impl.dart:351:48)
    | #­70 _ZoneBase._runInZone (dart:async/zone.dart:74:15)
    | #­71 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
    | #­72 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
    | #­73 _TransformFuture._sendError (dart:async/future_impl.dart:351:26)
    | #­74 _FutureImpl._setErrorUnchecked (dart:async/future_impl.dart:211:26)
    | #­75 _FutureImpl._setError (dart:async/future_impl.dart:189:23)
    | #­76 _ThenFuture._zonedSendValue (dart:async/future_impl.dart:374:16)
    | #­77 _TransformFuture._sendValue.<anonymous closure> (dart:async/future_impl.dart:348:48)
    | #­78 _ZoneBase._runInZone (dart:async/zone.dart:82:17)
    | #­79 _ZoneBase._runUnguarded (dart:async/zone.dart:102:22)
    | #­80 _ZoneBase.executeCallback (dart:async/zone.dart:58:23)
    | #­81 _TransformFuture._sendValue (dart:async/future_impl.dart:348:26)
    | #­82 _FutureImpl._setValueUnchecked (dart:async/future_impl.dart:184:26)
    | #­83 _FutureImpl._setValue (dart:async/future_impl.dart:174:23)
    | #­84 _SyncCompleter._setFutureValue (dart:async/future_impl.dart:46:21)
    | #­85 _Completer.complete (dart:async/future_impl.dart:16:20)
    | #­86 _SendPortImpl.call.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:106:27)
    | #­87 _ReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:81:92)
    |

---- End log transcript ----

@munificent
Copy link
Member

.../dart-sdk/bin/pub install --trace 'install' '--offline'

You've got "install" in there twice. Pub should validate the arguments more thoroughly (the above should be an error), but what's happening is that it stops parsing options at the second "install" because it doesn't look like an option. So it never gets to the "--offline" at the end.


Added AsDesigned label.

@munificent
Copy link
Member

Re-opening. The real bug here is that pub's argument parsing doesn't flag the above call as an error. It should ensure that there are no unhandled arguments after the arg parser has pulled out the options.


Added Accepted label.
Changed the title to: "Pub ignores unhandled command-line arguments".

@munificent
Copy link
Member

Added this to the M8 milestone.

@munificent
Copy link
Member

Added Started label.

@munificent
Copy link
Member

Added Fixed label.

@DartBot
Copy link

DartBot commented Jun 5, 2015

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

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

No branches or pull requests

4 participants