Some stdout colored as stderr in Output view #1303
Labels
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
Arduino IDE receives two types of streams from Arduino CLI for display in the "Output" view, which are given distinct coloration to allow them to be visually differentiated by the user (#1064):
🐛 Some of the text from the stdout stream is given the stderr coloration.
To reproduce
Equipment
I encountered this during a "Burn Bootloader" operation with an AVR board. This adds a hardware prerequisite to the reproduction procedure.
Steps
🐛 The command, which is always printed to stdout, is colored red instead of the expected white.
Expected behavior
Output from stdout stream is always printed in white (or whatever color the theme dictates) in the "Output" view.
Arduino IDE version
Original report
2.0.0-rc9.1-snapshot-0b33b51
Last verified with
2.0.1-snapshot-bc264d1
Operating system
Windows
Operating system version
10
Additional context
I bisected the introduction of the bug to a54d7c8 (does not occur when using the build from the previous commit 84109e4).
I can see from the logs (the Burn Bootloader process was done with the
arduino.cli.daemon.debug
setting enabled) that the text with the unexpected coloration was indeed in theout_stream
field of the response from Arduino CLI, not theerr_stream
field:This is the Base64 encoding of the command:
Issue checklist
The text was updated successfully, but these errors were encountered: