Skip to content

Renaming Tab after sucessful build causes build failure #2870

Closed as duplicate of#1240
@HattonLe

Description

@HattonLe

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

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

conclusion: duplicateHas already been submittedtopic: build-processRelated to the sketch build processtopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions