Skip to content

Output tab show two different entries for a single package when no pub get has been run #5988

Closed

Description

@FMorschel

If you create a new Dart/Flutter project and do pub get on it twice, you'll see something similar on the output tab:

Image

But we should try to keep a single one if possible.

Somewhat related to:

Activity

  1. added this to the v3.132.0 milestone on Mar 23, 2026
  2. added
    in commandsRelates to commands (usually invoked from the command Palette)
    on Mar 23, 2026
  3. DanTup commented on Mar 24, 2026

    @DanTup
    Member

    @FMorschel do you have good steps to repro this? I'm struggling, and what I thought was the issue (that we tried to read the package name from .dart_tool before it existed) was wrong, as we read it from the pubspec.yaml!

  4. added
    awaiting infoRequires more information from the customer to progress
    on Mar 24, 2026
  5. FMorschel commented on Mar 24, 2026

    @FMorschel
    ContributorAuthor

    I could not reproduce it again either. I'll keep trying but I think we can close this for now. If I ever see this again I can let you know. Thanks for looking into this anyway!

  6. added and removed
    awaiting infoRequires more information from the customer to progress
    in commandsRelates to commands (usually invoked from the command Palette)
    on Mar 24, 2026
  7. removed this from the v3.132.0 milestone on Mar 24, 2026
  8. FMorschel commented on Mar 26, 2026

    @FMorschel
    ContributorAuthor

    Found it again and I now know exactly what happened. I've created the project with Dart: New Project and then did a pub get with the pubspec.yaml button.

    Image
  9. added this to the v3.132.0 milestone on Apr 1, 2026
  10. added
    in commandsRelates to commands (usually invoked from the command Palette)
    and removed on Apr 1, 2026
  11. DanTup commented on Apr 1, 2026

    @DanTup
    Member

    Thanks! This happens because in the "create" commands, we don't yet have a pubspec.yaml and therefore fail to read the package name from it. Working on a fix.

  12. modified the milestones: v3.132.0, v3.134.0 on Apr 1, 2026
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

    in commandsRelates to commands (usually invoked from the command Palette)is bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions