NativeScript / NativeScript/nativescript-cli

Warning message is returned in stdout instead of stderr

Open
#3,833 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

Exdcuting the following code returns a warning in the stdout argument.

Command
exec('tns --version', (err, stdout, stderr)

Output:

Support for macOS 10.12 is deprecated and will be removed in one of the next releases of NativeScript. Please, upgrade to the latest macOS version.
4.2.2

It will be better to return the warning message in the stderr argument.

  • CLI: 4.2.2

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

Reproduce the issue with exec('tns --version', ...) and observe which output stream receives the macOS deprecation warning. Trace the tns --version CLI entry point and its output handling; done means the warning is in stderr while 4.2.2 remains in stdout.

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.