NativeScript / NativeScript/nativescript-cli
Cannot connect to device socket when you open second tab in Chrome
未关闭
还没有人认领这个 Issue。
bug
debug
os: ios
to-be-checked
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
Try to debug ios on device. If you open URL on second tab you will see that it is empty and exception will throw.
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
- CLI: 4.1.0
- Runtime(s): 4.1.0
Please tell us how to recreate the issue in as much detail as possible.
- tns create app
- tna debig ios
- copy the URL and paste it in 2 tabs in chrome
the second tab is empty and there is error:
at Errors.fail (/usr/local/lib/node_modules/nativescript/lib/common/errors.js:125:28)
at Errors.failWithoutHelp (/usr/local/lib/node_modules/nativescript/lib/common/errors.js:135:21)
at SocketProxyFactory.<anonymous> (/usr/local/lib/node_modules/nativescript/lib/device-sockets/ios/socket-proxy-factory.js:91:38)
at Generator.throw (<anonymous>)
at rejected (/usr/local/lib/node_modules/nativescript/lib/device-sockets/ios/socket-proxy-factory.js:5:65)
at <anonymous>
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用 tns debug ios 复现该问题,并在两个 Chrome 标签页中打开生成的 URL。从 lib/common/errors.js 和 lib/device-sockets/ios/socket-proxy-factory.js 开始,尤其关注报告中的 socket 错误路径。完成的标准是第二个标签页不再为空,并且不再抛出 device-socket 连接错误。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- ios, javascript
- 领域
- cli, mobile
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 35/100