Skip to content

pub list command failing with an exception #3325

Closed
@DartBot

Description

@DartBot

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


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: '_SendPortImpl@6be832b.function' 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.

Activity

madsager

madsager commented on May 31, 2012

@madsager
Contributor

Added Area-Pub, Triaged labels.

munificent

munificent commented on Jun 6, 2012

@munificent
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 commented on Jun 5, 2015

@DartBot
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed-invalidClosed as we don't believe the reported issue is generally actionable

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @munificent@madsager@DartBot

        Issue actions

          pub list command failing with an exception · Issue #3325 · dart-lang/sdk