Renaming Tab after sucessful build causes build failure #2870
Labels
conclusion: duplicate
Has already been submitted
topic: build-process
Related to the sketch build process
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
Renaming source file Tabs in a multi-file .cpp and .h project causes a build failure because the original files are not renamed\deleted in the arduino project .cache folder.
This bug has been present for years.
To reproduce
Successfully compile a multi-file .cpp and .h project.
Then rename the Tabs for a .cpp and .h file to be a different filename.
Then try to recompile.
It will fail saying duplicate definitions of methods etc...
To get a successful compile again, browse to the users ".cache/arduino/sketches" folder and either delete all the cache folders or find the relevant subfolder and delete the old files out of there.
Expected behavior
A clean recompile without errors.
Arduino IDE version
Doesn't matter
Operating system
N/A
Operating system version
Doen't matter
Additional context
This bug has been present for years. It occurs regardless of OS.
Issue checklist
The text was updated successfully, but these errors were encountered: