Incorrect compiler_err
field contents from compile --format json
when compiling .cpp
file
#1698
Closed
3 tasks done
Labels
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
The
compiler_err
field of the machine readable output formats are incorrect when compiling a.cpp
file.I use Arduino CLI for compiling a combination of standard
.cpp
/.c
/.h
files. Because an.ino
file with the same name as the sketch is required I just put a blank.ino
file inside the folder.To reproduce
Structure of the test_sketch sketch:
Content of
main.cpp
:Current behavior
🐛 The value of the
compiler_err
field is\n
instead of the error output from the compiler.Expected behavior
The
compiler_err
field of the machine readable output contains the error output from the compiler.Arduino CLI version
Original report
0.21.1
Last verified with
b3e8f8a
Operating system
Windows
Operating system version
11
Additional context
When running the command without the
--format json
flag the output is correct.So I suspect it must have something to to with the conversion to JSON.
Issue checklist
The text was updated successfully, but these errors were encountered: