-
-
Notifications
You must be signed in to change notification settings - Fork 403
JSON format not working properly with compile command #174
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
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I created two sketches. One that should compile correctly and one that shouldn't :
void setup() {
}
void loop() {
}
void setup() {
a;
}
void loop() {
} Then I ran the following commands : ./arduino-cli compile --format json --fqbn arduino:avr:uno Success which gave me this
And this : ./arduino-cli compile --format json --fqbn arduino:avr:uno Fail Which gave me this
The behavior seem to have slightly changed since I originally created this issue but the problem is still present in 0.9.0
|
@Renaud11232 We will remove that (@rsora this is another one of those sections in which we should update the help text) |
Oh OK Now I know :) Thanks for the clarification |
Just to clarify: while I confirm all @ubidefeo said, we also have a bug here. We're not in full control of the output from the lower layers of the CLI and some informations that should be collected by the logger and correctly displayed through the |
@masci I had this conversation with @cmaglie in the past when I had some stuff not showing up in my |
Yes we can and should get control of stdout/stderr for any subprocess the CLI starts, there was a tentative mitigation you can see here #364 but we decided not to proceed because the real fix consists in refactoring the low-level module we use to handle info and error messages "from below" (for the curious, I'm talking about this nasty module https://github.com/arduino/arduino-cli/tree/master/legacy/builder/i18n). |
Calculate SHA256 over firmware image uploaded via OTA
Use new arduino/setup-task action name in CI/CD workflows
I'm happy to report that this bug no longer occurs. I am able to reproduce it with Arduino CLI 0.9.0, but not with the latest build (unfortunately it is not clear which revision(s) provided the fix):
There is still that " |
When using
--format json
with thecompile
command, the output is not properly formatted as JSON inversion 0.3.6-alpha.preview
Successful compilation
Running
Outputs
On stdout
Failed compilation
Running
Outputs
On stdout
On stderr
The text was updated successfully, but these errors were encountered: