Skip to content

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

Closed
@cmaglie

Description

@cmaglie

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
    I verified the problem still occurs when using the
    My report contains all necessary details

Activity

self-assigned this
on Sep 9, 2022
cmaglie

cmaglie commented on Sep 22, 2022

@cmaglie
MemberAuthor

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.

added this to the Arduino CLI 1.0 milestone on Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Participants

    @cmaglie@per1234

    Issue actions

      Machine-readable `--format yaml` produces text output while `--format json` doesn't · Issue #1872 · arduino/arduino-cli