Skip to content

Dart DevTools exited with code 66 #2128

Closed

Description

@advancedtw

dart tools fails to launch on vscode was working the morning and still works fine with android studio.
vscode 1.40.1
dart ext 3.6

Activity

  1. added
    in commandsRelates to commands (usually invoked from the command Palette)
    on Nov 25, 2019
  2. added this to the v3.7.0 milestone on Nov 25, 2019
  3. added
    awaiting infoRequires more information from the customer to progress
    on Nov 25, 2019
  4. DanTup commented on Nov 25, 2019

    @DanTup
    Member

    Could you try capturing a log by running the Dart: Capture Logs command, ticking Command Processes and DevTools then reproducing the issue?

    Thanks!

  5. advancedtw commented on Nov 25, 2019

    @advancedtw
    Author

    i was not aware of capture logs and thanks to that i fixed it. i copied devtools-0.1.11 from an other user and now it's working as expected but still I'm wondering what is the recommended way to repopulate this directory .pub-cache/hosted/pub.dartlang.org/
    also is it is it normal that my log shows : Flutter extension: 3.6.0 (not activated)
    thanks a bunch

    [5:57:23 AM] [DevTools] [Info] Spawning /Users/adtw/flutter/bin/cache/dart-sdk/bin/pub with args ["global","run","devtools","--machine","--enable-notifications","--try-ports","10"]
    [5:57:23 AM] [DevTools] [Info] PID: 556
    [5:57:23 AM] [DevTools] [Error] Could not find a file named "pubspec.yaml" in "/Users/adtw/.pub-cache/hosted/pub.dartlang.org/devtools-0.1.11".
    [5:57:23 AM] [DevTools] [Error]
    [5:57:24 AM] [DevTools] [Info] Process terminated! 66, null
    [5:57:24 AM] [General] [Error] Dart DevTools exited with code 66
    [5:57:24 AM] [General] [Error] Dart DevTools exited with code 66

  6. DanTup commented on Nov 26, 2019

    @DanTup
    Member

    Weird - I'm not sure how that folder would end up without a pubspec.

    The easiest way to fix is probably running pub global deactivate devtools then pub global activate devtools (though the second step will be run by the VS Code extension if you try to launch DevTools and it's not activated).

    also is it is it normal that my log shows : Flutter extension: 3.6.0 (not activated)

    If you've opened a folder that isn't a Flutter app, this is normal. If it is a Flutter app, then it suggests for some reason we might not be detecting it correctly. If that's the case, please file a new issue with a screenshot showing your folder layout (where the Flutter project is in relation to the top folder you opened) and an extension log.

    Thanks!

  7. removed
    awaiting infoRequires more information from the customer to progress
    in commandsRelates to commands (usually invoked from the command Palette)
    on Nov 26, 2019
  8. removed this from the v3.7.0 milestone on Nov 26, 2019
  9. bsutton commented on Jan 19, 2020

    @bsutton

    For other readers, I managed to get into this state because I managed to deleted my entire .pub-cache/hosted/pub.dartlang.org/ directory.

    The same approach (deactivate/activate) solved the problem.

  10. hellosagar commented on Apr 5, 2020

    @hellosagar

    @advancedtw @DanTup @bsutton
    Can Anyone help me I'm getting this issue Dart Dev Tools exited with code 225

  11. DanTup commented on Apr 6, 2020

    @DanTup
    Member

    @sagarkhurana00786 can you include a screenshot/description of where you're seeing this? If in VS Code, can you capture a log (see #2128 (comment))? Thanks!

  12. sgehrman commented on May 17, 2020

    @sgehrman

    same issue today. I did just upgrade flutter. This worked: deactivate devtools then pub global activate devtools

  13. DanTup commented on May 18, 2020

    @DanTup
    Member

    A new version of DevTools was released that doesn't have a build suffix, so I would not expect anyone to still see this.

    If you do still see it when launching DevTools from within VS Code, please let me know (or ping me in Discord), I'd like to understand why it's not updating.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions