NativeScript / NativeScript/nativescript-cli

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

Open
#3,812 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

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.

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

Start by reproducing the issue with a new Hello World JavaScript app, throwing an exception in app.js, and running it on Android. Trace how the CLI reports exceptions from the app entry point to the terminal versus the error activity. Done means the exception is consistently shown in the terminal as well as the app error activity.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.