Skip to content

Machine-readable --format yaml produces text output while --format json doesn't #1872

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
cmaglie opened this issue Sep 9, 2022 · 1 comment · Fixed by #2003
Closed
3 tasks done

Machine-readable --format yaml produces text output while --format json doesn't #1872

cmaglie opened this issue Sep 9, 2022 · 1 comment · Fixed by #2003
Assignees
Labels
conclusion: resolved Issue was resolved criticality: low Of low impact priority: medium Resolution is a medium priority topic: CLI Related to the command line interface type: imperfection Perceived defect in any part of project

Comments

@cmaglie
Copy link
Member

cmaglie commented Sep 9, 2022

Describe the problem

Machine-readable formatting produces text output.

To reproduce

$ arduino-cli core update-index --format yaml
Downloading index: package_index.tar.bz2 downloaded                                                                                 
Downloading index: package_esp8266com_index.json downloaded       
$

Expected behavior

$ arduino-cli core update-index --format yaml
$

Arduino CLI version

nightly

Operating system

N/A

Operating system version

all

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the nightly build
  • My report contains all necessary details
@cmaglie cmaglie added the type: imperfection Perceived defect in any part of project label Sep 9, 2022
@cmaglie cmaglie self-assigned this Sep 9, 2022
@cmaglie cmaglie added priority: medium Resolution is a medium priority criticality: low Of low impact topic: CLI Related to the command line interface labels Sep 9, 2022
@cmaglie
Copy link
Member Author

cmaglie commented Sep 22, 2022

Related:

$ arduino-cli compile -b alice:avr:alice --show-properties ~/testdata/bare_minimum
Warning: Board alice:avr:alice doesn't define a 'build.board' preference. Auto-set to: AVR_ALICE
_id=alice
build.arch=AVR
build.board=AVR_ALICE
build.core=arduino
build.core.path=/tmp/go-testsuite1676247329/Arduino15/packages/alice/hardware/avr/1.0.0/cores/arduino
build.fqbn=alice:avr:alice
[...cut...]

The output of compile --show-properties has the spurious warning: Warning: Board alice:avr:alice doesn't define a 'build.board' preference. Auto-set to: xxxxx
Since this message is not strictly related to the output it should be removed or sent to stderr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved criticality: low Of low impact priority: medium Resolution is a medium priority topic: CLI Related to the command line interface type: imperfection Perceived defect in any part of project
Projects
None yet
2 participants