--preprocess
key prints informational messages to the output
#2150
Labels
topic: CLI
Related to the command line interface
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
When it's needed to get the preprocessed C++ code of a sketch, one can use the
--preprocess
key (Print preprocessed code to stdout instead of compiling) and redirect the output to a file.This key works well, but in the end of the output it prints the list of cores and libraries used, like this:
If it would be printed to stderr, it would be OK, but since it's in the stdout, it appears in the resulting file, thereby breaking it.
To reproduce
Compile a sketch with
--preprocess
key.Expected behavior
The list of used cores and libraries should be disabled when using
--preprocess
key, or be printed to stderr (more preferable).Arduino CLI version
0.31.0
Operating system
macOS
Operating system version
macOS 13.3
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: