NativeScript / NativeScript/nativescript-cli
LiveSync related commands hang when devices for sync are disconnected
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 5.3.0
- Cross-platform modules: Not applicable
- Android Runtime: Not applicable
- iOS Runtime: Not applicable
- Plugin(s):Not applicable
Describe the bug
Whenever all devices/emulators/simulators that we are using for LiveSync operation are disconnected or CLI is unable to sync changes on them, the command (tns debug, tns run, tns test...) should exit. Instead, it continues its execution and prepares the application.
To Reproduce
- Run
tns run <platform> - When the operation is running, disconnect all devices/stop all emulators/simulators on which you are syncing.
- Command should exit.
Instead it continues its execution.
Expected behavior
Once all devices used for liveSync are disconnected (or we have errors when trying to sync on them), command should exit and does not give incorrect impression that it still liveSyncs your project.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用 tns run <platform> 重现问题,然后比较当所有设备、模拟器或仿真器断开连接时,tns debug、tns run 和 tns test 如何处理 LiveSync。从命令入口跟踪 LiveSync 操作,并验证错误或所有同步目标的丢失会导致命令退出,而不是继续进行准备工作。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- cli, mobile
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100