Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lukasnevosad opened this issue Oct 1, 2024 · 1 comment
Labels
bug Something isn't working as expected p3 Issues that we currently consider unimportant product: vscode extension Issues related to the Dart Frog VSCode extension

Comments

@lukasnevosad
Copy link

lukasnevosad commented Oct 1, 2024

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

@lukasnevosad lukasnevosad added the bug Something isn't working as expected label Oct 1, 2024
@alestiago alestiago added the product: vscode extension Issues related to the Dart Frog VSCode extension label Oct 3, 2024
@tomarra tomarra added feature A new feature or request bug Something isn't working as expected p3 Issues that we currently consider unimportant and removed bug Something isn't working as expected feature A new feature or request labels Oct 10, 2024
@tomarra
Copy link
Contributor

tomarra commented Oct 10, 2024

Hi @lukasnevosad 👋 Thanks for opening this issue.

Seems like this is a valid bug but it's not a use case that we typically see or implement. Would love to hear a bit more about this use case ;)

If this is something that is blocking your development please feel free to work on a bug fix and open up a PR. If you have questions on how to go about doing this implementation we can also get feedback from the development team in this issue based on any suggestions you may have.

@tomarra tomarra moved this from Needs Triage to Backlog in VGV Open Source 🦄 🧙🌟 Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected p3 Issues that we currently consider unimportant product: vscode extension Issues related to the Dart Frog VSCode extension
Projects
Status: Backlog
Development

No branches or pull requests

3 participants