Skip to content

fix: Two dart_frog projects in the same workspace cause the dev server to start with a wrong current path #1533

Open
@lukasnevosad

Description

@lukasnevosad

Description

I have created a second dart_frog project in my workspace and later found out that the first one stopped working suddenly when run with the Dart Frog: Start and Debug Development Server. The reason seems to be that the working directory is set incorrectly.

Steps To Reproduce

  1. Create two dart_frog projects in the same workspace (folder), e.g. parent/alpha, parent/beta
  2. Execute command Dart Frog: Start and Debug Development Server
  3. The extension will find the two projects and asks which one to start. Select beta and continue with the startup
  4. Observe that beta has started, however the current working dir in the started beta project (Directory.current.path) will point to alpha.

Expected Behavior

Directory.current.path should correspond to the directory of the correct project.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as expectedp3Issues that we currently consider unimportantproduct: vscode extensionIssues related to the Dart Frog VSCode extension

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions