NativeScript / NativeScript/nativescript-cli
snapshot generation is executed twice if you have both emulator and device attached
Open
Nobody has claimed this yet.
bug
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 204
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 8
Description
Environment
- CLI: 6.2.1
To Reproduce
tns create js_app --jstns run android --release --key-store-path {} --key-store-password {} --key-store-alias {} --key-store-alias-password {} --env.uglify --env.snapshot- In the logs you can see that snapshot generation and build are executed twice. Expected they should be executed only once.
Note: it is reproducible with --release build in general, not only with snapshot
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 issue with tns create js_app --js and the provided tns run android --release ... --env.snapshot command while both an emulator and device are attached. Start by comparing the logs for each target and trace the CLI entry point that schedules release builds and snapshot generation. Done means the release build and snapshot generation each run only once.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100