NativeScript / NativeScript/nativescript-cli

Livesync fails when runtime version is tag string

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

Nobody has claimed this yet.

bug severity: low
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.2
  • Cross-platform modules: 5.3.1
  • Android Runtime: next
  • iOS Runtime: next

Describe the bug
When developing the tns-core-modules we often have next version tags set to the runtimes. This works fine with initial tns run, but if I checkout another branch, the next version tag returns and run the app again, it is built, installed and fails at deploy with invalid version: next.

To Reproduce

  1. Set next version tag to either ios or android runtime versions.
  2. Run tns run. This changes the runtime version to the actual next version string.
  3. Set the runtime version tag to next again - this simulates checking out another branch.
  4. Run tns run again.
    Result: fails with invalid version: next after build.

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 by running tns run with the Android or iOS runtime version set to next, then repeat after restoring that tag. Trace the CLI's runtime-version handling around the deploy step; done means the second run builds, installs, and deploys successfully without reporting invalid version: next.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, ios, javascript
Domain
cli, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.