NativeScript / NativeScript/nativescript-cli
Cannot connect to device socket when you open second tab in Chrome
オープン
まだ誰も着手していません。
bug
debug
os: ios
to-be-checked
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 204
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
tns debug ios と、2つの Chrome タブで開いた生成 URL を使って問題を再現します。まず lib/common/errors.js と lib/device-sockets/ios/socket-proxy-factory.js を確認し、特に報告されているソケットエラーの経路を調べます。完了の条件は、2つ目のタブが空でなくなり、device-socket 接続エラーが発生しないことです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- ios, javascript
- 領域
- cli, mobile
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 35/100