NativeScript / NativeScript/nativescript-cli
Exceptions in Android app entry point are sporadically not shown in the terminal
Open
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.
- Create new hello world js app.
- Throw an exception in app.js.
- Run the app.
- (Sometimes) The exception will be shown in the error activity, but not shown in the terminal.
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
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