NativeScript / NativeScript/nativescript-cli

No logs after application restart

Open
#4,263 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

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.1.0
  • Cross-platform modules: 5.1.0
  • Android Runtime: 5.1.0
  • iOS Runtime: 5.1.0

Describe the bug

The CLI does not output application logs (e.g. console.log, HMR logs) after application restart.

To Reproduce

tns run <platform> --hmr
restart (close/open) the application while the tns process is running

Expected behavior

The CLI outputs application logs (e.g. console.log, HMR logs).

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 tns run <platform> --hmr, then close and reopen the application while the tns process remains active. Trace the CLI's application-log handling across the restart and verify that console.log and HMR logs continue appearing afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.