NativeScript / NativeScript/nativescript-cli

Cannot connect to device socket when you open second tab in Chrome

未关闭
#3,654 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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.
  1. tns create app
  2. tna debig ios
  3. 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>

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

使用 tns debug ios 复现该问题,并在两个 Chrome 标签页中打开生成的 URL。从 lib/common/errors.jslib/device-sockets/ios/socket-proxy-factory.js 开始,尤其关注报告中的 socket 错误路径。完成的标准是第二个标签页不再为空,并且不再抛出 device-socket 连接错误。

由索引模型根据 Issue 内容生成。

评估

技术栈
ios, javascript
领域
cli, mobile
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。