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 摘要。