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 #40

Closed
DartBot opened this issue Jun 5, 2015 · 2 comments
Closed

pub list command failing with an exception #40

DartBot opened this issue Jun 5, 2015 · 2 comments
Labels
closed-invalid Closed as we don't believe the reported issue is generally actionable type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@DartBot
Copy link

DartBot commented Jun 5, 2015

Originally opened as dart-lang/sdk#3325

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.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/2909286?v=3" align="left" width="48" height="48"hspace="10"> Comment by madsager


Added Area-Pub, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/46275?v=3" align="left" width="48" height="48"hspace="10"> Comment by munificent


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.

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 type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

1 participant