NativeScript / NativeScript/nativescript-cli

iOS app is restarted few times on HMR crash

Open
#4,466 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. tns create jsApp --js && cd jsApp
  2. tns run ios --hmr
  3. Crash the app (e.g. edint app.js and require /application instead of tns-core-modules/application)
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.