Dart DevTools fails to connect in vscode-serve-web (Connection Refused to 127.0.0.1)
未关闭
还没有人认领这个 Issue。
bug
ide-integration
ide: vs-code
P2
- 主要语言
- Dart
- 星标
- 1.7k
- 派生
- 404
- 平均合并
- 6 天 17 小时
- 30 天内合并 PR
- 18
描述
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:
- Launch VS Code using code serve-web or a similar web-based hosting.
- Start a Flutter/Dart project.
- Click on "Flutter" from the Activity Bar.
- The embedded Webview or the redirected URL fails because it points to http://127.0.0.1:9100.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从构建或打开 DevTools URL 的 VS Code serve-web 集成开始,然后使用 Web 托管的 workspace 重现此 issue 中描述的故障。完成的标准是,基于浏览器的 IDE 能够访问远程 DevTools 服务器,而不是尝试连接到 127.0.0.1:9100。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- dart, vscode
- 领域
- developer-experience, devtools, networking
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100