Skip to content

Everytime when saving changes to pubspec.yaml asks if packages should be gotten  #1988

Closed

Description

@escamoteur

Normally this Dialog that asks should only appear when opening a project.

Currently if you have project with a nested example project it will query every time you change any pubspec file

Activity

  1. added this to the v3.5.0 milestone on Sep 16, 2019
  2. added
    in commandsRelates to commands (usually invoked from the command Palette)
    on Sep 16, 2019
  3. DanTup commented on Sep 17, 2019

    @DanTup
    Member

    I haven't been able to repro this - I have an example sub-folder, with a pubspec.yaml in it, but editing either pubspec only runs pub get for that particular project.

    Anything else about your project that might be relevant? Does it repro if you run Dart: New Project , then copy paste a copy of itself into an example folder?

    I tried it when example has no .packages or pubspec.lock files too, thinking that might trigger it, but I still see the same.

  4. added
    awaiting infoRequires more information from the customer to progress
    on Sep 17, 2019
  5. escamoteur commented on Sep 17, 2019

    @escamoteur
    Author

    I just tried it again, it only happens when I open the project with a workspace.
    This is the project https://github.com/escamoteur/rx_widgets where I see it

  6. DanTup commented on Sep 17, 2019

    @DanTup
    Member

    Got it, thanks! It happens when you have a project that's in "two workspace folders" (here example is in its own, but also as a child of the parent folders workspace) so we found it twice, and thought there were multiple folders we needed to run for.

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

    awaiting infoRequires more information from the customer to progressin 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