Dart DevTools fails to connect in vscode-serve-web (Connection Refused to 127.0.0.1)
- Langage dominant
- Dart
- Étoiles
- 1.7k
- Forks
- 404
- Merge moyen
- 6 j 17 h
- PR mergées (30 j)
- 18
Description
### Environment:
- VS Code Version: 1.119.0
- Dart/Flutter Extension Version: v3.134.0
- Start Command: code serve-web
- OS: Linux
### Description:
When using VS Code via serve-web (browser-based), the Dart/Flutter extension attempts to launch or connect to DevTools using 127.0.0.1. However, in a web-based IDE sandbox, 127.0.0.1 refers to the user's local machine (client) rather than the remote host where the DevTools server is actually running.
### Steps to Reproduce:
1. Launch VS Code using code serve-web or a similar web-based hosting.
2. Start a Flutter/Dart project.
3. Click on "Flutter" from the Activity Bar.
4. The embedded Webview or the redirected URL fails because it points to http://127.0.0.1:9100.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Start from the VS Code serve-web integration that builds or opens the DevTools URL, then reproduce the failure described in this issue with a web-hosted workspace. Done means the browser-based IDE reaches the remote DevTools server rather than attempting to connect to 127.0.0.1:9100.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- dart, vscode
- Domaine
- developer-experience, devtools, networking
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- Calme
- Clarté
- À clarifier
- Accessibilité débutants
- 35/100