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 list command failing with an exception #3325

Closed
DartBot opened this issue May 31, 2012 · 3 comments
Closed

pub list command failing with an exception #3325

DartBot opened this issue May 31, 2012 · 3 comments
Labels
closed-invalid Closed as we don't believe the reported issue is generally actionable

Comments

@DartBot
Copy link

DartBot commented May 31, 2012

This issue was originally filed by [email protected]


What steps will reproduce the problem?

  1. Run pub list command

What is the expected output? What do you see instead?
I would except to see the contents of repositories listed or at least an error message, instead I'm getting this:

NoSuchMethodException : method not found: 'listDir'
Receiver: Instance of 'SystemCache'
Arguments: [null]
Unhandled exception:
NullPointerException : method: 'handleException'
Receiver: null
Arguments: [Closure: <T>(Dynamic) => Dynamic]
 0. Function: 'Object.noSuchMethod' url: 'bootstrap' line:473 col:137
 1. Function: 'FutureImpl.function' url: 'bootstrap_impl' line:565 col:350
 2. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:556 col:3
 3. Function: 'FutureImpl._setValue@924b4b8' url: 'bootstrap_impl' line:559 col:22
 4. Function: 'CompleterImpl.complete' url: 'bootstrap_impl' line:571 col:46
 5. Function: 'FutureImpl.function' url: 'bootstrap_impl' line:563 col:114
 6. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:556 col:3
 7. Function: 'FutureImpl._setValue@924b4b8' url: 'bootstrap_impl' line:559 col:22
 8. Function: 'CompleterImpl.complete' url: 'bootstrap_impl' line:571 col:46
 9. Function: 'FutureImpl.function' url: 'bootstrap_impl' line:567 col:61
 10. Function: 'FutureImpl.then' url: 'bootstrap_impl' line:549 col:182
 11. Function: 'FutureImpl.function' url: 'bootstrap_impl' line:566 col:82
 12. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:556 col:3
 13. Function: 'FutureImpl._setValue@924b4b8' url: 'bootstrap_impl' line:559 col:22
 14. Function: 'CompleterImpl.complete' url: 'bootstrap_impl' line:571 col:46
 15. Function: 'FutureImpl.function' url: 'bootstrap_impl' line:563 col:114
 16. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:556 col:3
 17. Function: 'FutureImpl._setValue@924b4b8' url: 'bootstrap_impl' line:559 col:22
 18. Function: 'CompleterImpl.complete' url: 'bootstrap_impl' line:571 col:46
 19. Function: '[email protected]' url: 'dart:isolate' line:22 col:346
 20. Function: '_ReceivePortImpl@6be832b._handleMessage@6be832b' url: 'dart:isolate' line:19 col:46

What version of the product are you using? On what operating system?
Dart build 8124, Mac OS X 10.7.4

Please provide any additional information below.
There is not much documentation available on pub usage, but still I would at least except an error message when being used incorrectly, not an exception.

@madsager
Copy link
Contributor

Added Area-Pub, Triaged labels.

@munificent
Copy link
Member

pub list doesn't really do anything at the moment. It was being used for some tests, but it's temporarily dead.


Added Invalid label.

@DartBot DartBot added Type-Defect closed-invalid Closed as we don't believe the reported issue is generally actionable labels Jun 6, 2012
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

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

copybara-service bot pushed a commit that referenced this issue Nov 11, 2022
Also removes package:oauth2 from DEPS (it is now vendored in pub).

See https://github.com/dart-lang/oauth2/issues/137.

Changes:
```
> git log --format="%C(auto) %h %s" 65c7f3e..6ac42d7
 https://dart.googlesource.com/pub.git/+/6ac42d76 Use package:vendor to vendor package:tar and package:oauth2 (#3638)
 https://dart.googlesource.com/pub.git/+/817fcf13 blast_repo fixes (#3646)
 https://dart.googlesource.com/pub.git/+/738d963c blast_repo fixes (#3644)
 https://dart.googlesource.com/pub.git/+/a73598b5 Refactor HTTP retries (#3325) (#3590)
 https://dart.googlesource.com/pub.git/+/5527068c New command `dart pub cache preload` (#3636)

```

Diff: https://dart.googlesource.com/pub.git/+/65c7f3e528f3f9978c4330cbd471070f17370f65~..6ac42d7644dedfcc500147ab47886eecab4b1b38/
Change-Id: I6d2dffcac67b4bd1c1c91be952cca65c84d85493
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/269301
Commit-Queue: Sigurd Meldgaard <[email protected]>
Reviewed-by: Jonas Jensen <[email protected]>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-invalid Closed as we don't believe the reported issue is generally actionable
Projects
None yet
Development

No branches or pull requests

3 participants