Renaming a tab does not remove the file from build cache #970
Labels
conclusion: duplicate
Has already been submitted
conclusion: off topic
Off topic for this repository
topic: CLI
Related to Arduino CLI
type: imperfection
Perceived defect in any part of project
Describe the problem
When renaming a tab, the old file with its old contents gets still compiled during the build. This leads to unexpected and very confusing compilation results and errors. User has no way to fix the issue apart from locating the build cache directory and clean it up manually.
To reproduce
foo.c
) and put some non-compiling code in it (likeFoobar foo;
).bar.c
).#define FOOBAR
).You'll see an error related the bad code you actually deleted (
Foobar foo;
) located in a file which should not exist anymore (foo.c
).If you locate the temporary build cache directory, you'll see that the old file was not removed.
Expected behavior
After a rename, the old file should be removed from the build directory and not be taken into account for compilation.
Arduino IDE version
Original report
2.0.0-rc6
Last verified with
d24a391
Operating system
macOS
Operating system version
10.15.7
Issue checklist
The text was updated successfully, but these errors were encountered: