Saved code is shown in compilation error messages even when compiling dirty sketch #12
Labels
conclusion: off topic
Off topic for this repository
topic: CLI
Related to Arduino CLI
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the bug
When compiling a sketch with unsaved changes, the code in the editor is compiled (good), but the code from the saved version of the sketch is used in the error message when there is a compilation failure (bad).
To Reproduce
Steps to reproduce the behavior:
For example, if I have this sketch saved:
and this is the dirty version:
The compilation error:
Expected behavior
The code of the sketch that was compiled should be shown in the error output:
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Date: 2021-02-12T08:28:48.914Z
CLI Version: nightly-20210212 alpha [560025a6]
Additional context
The compilation of the dirty sketch is a new behavior introduced by f53013b as a fix for https://github.com/arduino/arduino-pro-ide/issues/432
The text was updated successfully, but these errors were encountered: