-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
Option to disable "Used Library" and "Used Platform" output when compiling #2796
Comments
I would also really like this option. The information I want to see at the end of the compilation is the memory usage. This extra wall of output just pushes that off screen and tells me information I already know. |
A possible fix in #2820.
@Tyler-Barnes @obra WDYT? |
Awesome. Thank you! That looks great for my purposes. (I actually like the memory usage not printing in --quiet mode) |
@obra Also, did you know about this GH action for CI builds: https://github.com/arduino/compile-sketches |
I feel like Memory usage lines and no libraries report is better than memory usage lines and a library report. I'm not going to kick and scream too loudly if I can't get exactly what I want. Although, I'd love to find a way to not have the memory usage lines. I presume Arduino's preference is that the 'default' output remains the same as it is today and that you not complicate the output options too much. I thought about whether the log level could get used to tease these bits out output apart and I don't think there's a good way to do that. I do wonder if the middle-ground here might be "Show the build size/memory usage report If we're building with --quiet and the build is too big or uses too much memory" - At that point, it's rightly a warning? |
but this won't cover the common case where the dev is keeping an eye on the sketch size. Maybe the best compromise is to remove the libraries recap in the default case, something like this:
|
On Jan 21, 2025, at 11:12 PM, Cristian Maglie ***@***.***> wrote:
I do wonder if the middle-ground here might be "Show the build size/memory usage report If we're building with --quiet and the build is too big or uses too much memory" - At that point, it's rightly a warning?
but this won't cover the common case where the dev is keeping an eye on the sketch size. Maybe the best compromise is to remove the libraries recap in the default case, something like this:
I like it
Command line
A successful build shows
A build with errors shows
arduino-cli compile
Sketch size
Sketch size, used libraries
arduino-cli compile -v
Build commands, sketch size, used libraries
Build commands, sketch size, used libraries
arduino-cli compile -q
nothing
Errors only
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
My grip is only that the libraries are at the end. Just put them above the size information and I'm happy. I like verbose output, but I don't like the last thing to be libraries pushing the size information up. If I can only remove them with -quiet then I'm still in the same spot. |
Unfortunately moving the libraries recap before the sketch size requires a lot more work because it needs a general improvement on the compiler output logging system. I've in it my task list but it's low priority for now. By the way, the change proposed in #2820 is already a good improvement, so I'm going to merge that for the next release. |
Describe the request
When building a single sketch, the "Used Library" and "Used Platform" output from arduino-cli are great, but when building a test suite, it can somewhat clutter STDOUT.
--quiet
does not suppress that output--show-properties=disabled
does not suppress that output.It would be delightful to have a command-line option to suppress that output.
I could probably cobble together some code as a proposed PR if a maintainer provided some guidance about whether a good implementation was likely to be accepted and what the name of the option should be / what the right implementation strategy was.
Describe the current behavior
(To the best of my knowledge, and based on my not-so-great go skills) It is not currently possible to disable the printing of the after-
arduino-cli compile
build summary that looks something like this:Arduino CLI version
1.1.1
Operating system
macOS
Operating system version
15.2
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: