-
-
Notifications
You must be signed in to change notification settings - Fork 398
Compile json output #1065
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
Compile json output #1065
Conversation
This is really awesome @cmaglie! Is there any chance of putting the sketch memory usage data in dedicated fields (perhaps in a structure that will accomodate support for additional memory types being added at some future time ala #480)? Having that information in a machine parseable format would be super useful to me. |
add me to the list of @per1234 's request: |
This is awesome! One thing that I'd love to see would be the compilation broken into an ordered list of compiler commands run by arduino-cli, with STDOUT and STDERR split out per command. That would make it a lot easier to read and debug builds. |
…lease" field is not set
896127c
to
e3c7d6e
Compare
@per1234
@obra |
Absolutely! And please don't misunderstand: I'm very happy to see this as-is :) Would you like me to open a feature request for the much-more-work version? If it's something that's too far in the future to be useful to have in the issue tracker, I 100% understand :) |
yes thanks! |
This PR implements the
--format json
output incompile
command.This is how a complete result looks like:
It gives the full compiler output in stdout and stderr (all at once when the build is completed), the build path, the libraries used, and if the compile is
success
ful or not.