-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
The order of the compiler errors are indeterministic #1760
Comments
Hi @kittaakos, unfortunately this is not a bug. The compiler is run concurrently depending on how many CPUs you have. In this case, two parallel compilations fail at the same time ( |
Using the same attached sketch, I ran 20 consecutive verify with the same core for the same board. The order of the compiler errors was always the same. I did the compilation on the same machine. What is the difference? Click to see the output of the 20 Verify with Arduino Nano RP 2040 Connect with Arduino IDE 1.8.19
Thanks! |
Ensure that you have a syntax error in Since those two files should be compiled in parallel the order of the compile failure is not deterministic: it may fail Anyway, it may be just difficult to reproduce... |
Describe the problem
If I have a sketch with compiler errors, as a user of the CLI, I would expect the order of the errors is deterministic. It does not.
To reproduce
Errors.zip
Errors.zip
sketch somewhere. 👆First error with the first compile command:
First error with the second compile attempt:
Expected behavior
No matter how many times I compile the same broken sketch, the output on the stderr is the same.
Arduino CLI version
Version: nightly-20220614 Commit: 76fab32 Date: 2022-06-14T08:23:46Z
Operating system
macOS
Operating system version
12.3.1
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: