NativeScript / NativeScript/nativescript-cli
iOS app is restarted few times on HMR crash
未关闭
还没有人认领这个 Issue。
bug
- 主要语言
- 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: 5.3.0
- iOS Runtime: 5.3.0
Describe the bug
To Reproduce
tns create jsApp --js && cd jsApptns run ios --hmr- Crash the app (e.g. edint app.js and require
/applicationinstead oftns-core-modules/application) - The app will try to start 5 times before the livesync process stop.
Expected behavior
The app should try to start 2 times (1 for the HMR sync and 1 for the HMR crash fallback)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用 tns create jsApp --js 复现该行为,然后运行 tns run ios --hmr 并应用文档所述的 application 导入更改。跟踪 HMR 和 livesync 的重启处理;完成标准是,发生崩溃时,在 livesync 停止之前只进行两次启动尝试,而不是五次。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- ios, javascript
- 领域
- cli, mobile-dev
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100