pub list command failing with an exception #40
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)
Originally opened as dart-lang/sdk#3325
This issue was originally filed by [email protected]
What steps will reproduce the problem?
pub list
commandWhat 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.
The text was updated successfully, but these errors were encountered: