NativeScript / NativeScript/nativescript-cli
iOS app is restarted few times on HMR crash
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 204
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 8
Description
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)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the behavior with tns create jsApp --js, then tns run ios --hmr and the documented application import change. Trace the HMR and livesync restart handling; done means a crash causes two start attempts rather than five before livesync stops.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript
- Domain
- cli, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100