NativeScript / NativeScript/nativescript-cli

snapshot generation is executed twice if you have both emulator and device attached

Open
#5,103 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

  • CLI: 6.2.1

To Reproduce

  1. tns create js_app --js
  2. tns run android --release --key-store-path {} --key-store-password {} --key-store-alias {} --key-store-alias-password {} --env.uglify --env.snapshot
  3. 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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.