NativeScript / NativeScript/nativescript-cli

Exceptions in Android app entry point are sporadically not shown in the terminal

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

還沒有人認領這個 Issue。

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

描述

Please, provide the details below:

Did you verify this is a real problem by searching the [NativeScript Forum]

yes

Tell us about the problem

When an exception is thrown in the app entry points (e.g. app.js), the error is shown in the app error activity but sometimes it's not shown in the terminal.

Which platform(s) does your issue occur on?

Android

Please provide the following version numbers that your issue occurs with:
  • CLI: RC
  • Cross-platform modules: 4.2.0
  • Runtime(s): 4.2.0
Please tell us how to recreate the issue in as much detail as possible.
  1. Create new hello world js app.
  2. Throw an exception in app.js.
  3. Run the app.
  4. (Sometimes) The exception will be shown in the error activity, but not shown in the terminal.

貢獻指南

開啟貢獻指南

從這裡開始

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

研究方向

先使用新的 Hello World JavaScript 應用程式重現問題:在 app.js 中拋出例外,並在 Android 上執行。追蹤 CLI 如何將應用程式進入點的例外回報至終端機,而不是僅回報至錯誤 activity。完成的標準是:例外能一致地顯示在終端機以及應用程式的錯誤 activity 中。

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

評估

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

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

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