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: VSCode failure to start a development server #1344

Open
ralfeus opened this issue Apr 12, 2024 · 1 comment
Open

fix: VSCode failure to start a development server #1344

ralfeus opened this issue Apr 12, 2024 · 1 comment
Labels
bug Something isn't working as expected waiting for response Waiting for follow up

Comments

@ralfeus
Copy link

ralfeus commented Apr 12, 2024

Description
Once a while the button "Start server" disappears from the bottom bar. If I try to start dev server from command menu I get an error:

Failed to find a Dart Frog project within the current workspace.

At the same time running dart_frog dev works just fine

Steps To Reproduce

  1. Open command menu (Ctrl + Shift + P)
  2. Choose Dart Frog: Start and Debug Development Server
  3. See error

Expected Behavior

Dev server is started

Screenshots
image

Additional Context

OS: MacOS on M1
Dart Frog project is one of 3 in the workspace

@ralfeus ralfeus added the bug Something isn't working as expected label Apr 12, 2024
@alestiago
Copy link
Contributor

Hi @ralfeus thanks for opening an issue! Sorry for not being able to catch-up sooner.

The extension does have some logic to figure out where the Dart Frog server is meant to be. When there are multiple ones, as in your case, you should be prompted to choose between them.

If you open VS Code with the directory that your dart_frog dev project is running as the root does it still show the warning?

I would like to reproduce this, can you share the directory structure of your project with the 3 dart frog projects?

@alestiago alestiago added the waiting for response Waiting for follow up label May 16, 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 waiting for response Waiting for follow up
Projects
Status: Community
Development

No branches or pull requests

2 participants