NativeScript / NativeScript/nativescript-cli

LiveSync related commands hang when devices for sync are disconnected

未关闭
#4,495 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug debug livesync run unit testing
主要语言
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

  1. Run tns run <platform>
  2. When the operation is running, disconnect all devices/stop all emulators/simulators on which you are syncing.
  3. 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.

贡献指南

打开贡献指南

从这里开始

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

调研方向

使用 tns run <platform> 重现问题,然后比较当所有设备、模拟器或仿真器断开连接时,tns debugtns runtns test 如何处理 LiveSync。从命令入口跟踪 LiveSync 操作,并验证错误或所有同步目标的丢失会导致命令退出,而不是继续进行准备工作。

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

评估

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

把新 issue 发到你的邮箱

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