-
Notifications
You must be signed in to change notification settings - Fork 295
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
Web - VSCode launches on localhost:8080 by default, refused to connect #2911
Comments
I'm not unable to reproduce this, by creating a new project and clicking Run -> Run Without Debugging it ran on a random port: Could you capture a log?
Thanks! |
I tried to launch a new project with VSCode Flutter extension, however this time I got the right launch config
instead of the one that caused the error which contained
|
Ah, I see. Here only the "Dart & Flutter" option will invoke our code. If you run the others, it will invoke their debuggers. Let me know if you have any further issues/questions! |
I cant find window how to change environment |
@Dusica73 you'll have to be more specific for me to help. It would be better to file a new issue than comment on the bottom of closed issues. Thanks! |
Hi, I have the same problem and we're not alone. |
@WarmBreezeRising if deleting the Generally you shouldn't need a |
@DanTup Hi,
This file is the problem. Another way to have this bogus configuration is going to menu:
Another way to see the problem is searching in google: The are so many threads, unfortunatly not anwsering the problem. I suspect sometimes people are having different problems, but you'll find many questions with the auto-generated snippets I mentioned. Deleting it is painful, because you eventually have to delete it many times.
That maybe an answer which could help a lot of people (even if we just consider questions on stackoverflow). At least it worked for me. I used
I'm following the flutter first app tutorial, so, I don't have a real advised look upon all of that. I wonder if this could make a difference in the case you want to specify a launch url (does it make any sense ? I don't know for now). And I don't know why the But using those |
@WarmBreezeRising thanks for the info. The issue here is that the Chrome option you selected is unrelated to this extension, but something added by VS Code: The Chrome entry here is for running a simple web page in Chrome (it creates a This prompt should only appear if you don't have a Dart file open though. If you have a Dart file open and press |
I've opened a VS Code issue to see if this prompt could be made clearer (and not create a |
@DanTup Thanks for your replies and explanations. It helped a lot for me and hope it helps others. |
Describe the bug
It is concerning that the default Flutter app created in VSCode has a configuration that prevents a workable launch, following the official doc instructions. There is also no official documentation (and limited online community) coverage on this issue.
To Reproduce
Steps to reproduce the behavior:
then it launches as desired
Expected behavior
Screenshots
If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: