NativeScript / NativeScript/nativescript-cli

Livesync fails when runtime version is tag string

未關閉
#4,539 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

bug severity: low
主要語言
JavaScript
星號
1.1k
分支
204
平均合併
1 天 9 小時
30 天內合併 PR
8

描述

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.

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

將 Android 或 iOS runtime 版本設為 next 後執行 tns run,以重現此問題,然後還原該標籤後再次執行。追蹤 CLI 在 deploy 步驟附近對 runtime 版本的處理;當第二次執行能夠成功建置、安裝並 deploy,且未回報 invalid version: next 時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
android, ios, javascript
領域
cli, mobile
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。