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 摘要。