NativeScript / NativeScript/nativescript-cli
Livesync fails when runtime version is tag string
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.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
- Set
nextversion tag to either ios or android runtime versions. - Run
tns run. This changes the runtime version to the actual next version string. - Set the runtime version tag to
nextagain - this simulates checking out another branch. - Run
tns runagain.
Result: fails withinvalid version: nextafter build.
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 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