Skip to content

Renaming Tab after sucessful build causes build failure #2870

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

Closed
3 tasks done
HattonLe opened this issue Mar 20, 2025 · 2 comments
Closed
3 tasks done

Renaming Tab after sucessful build causes build failure #2870

HattonLe opened this issue Mar 20, 2025 · 2 comments
Assignees
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

Comments

@HattonLe
Copy link

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
@HattonLe HattonLe added the type: imperfection Perceived defect in any part of project label Mar 20, 2025
@per1234 per1234 self-assigned this Mar 20, 2025
@per1234 per1234 transferred this issue from arduino/arduino-ide Mar 20, 2025
@per1234 per1234 added topic: code Related to content of the project itself topic: build-process Related to the sketch build process labels Mar 20, 2025
@per1234
Copy link
Contributor

per1234 commented Mar 20, 2025

Hi @HattonLe. Thanks for taking the time to submit an issue.

I see we have another report about this at #1240.

It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

@HattonLe
Copy link
Author

HattonLe commented Mar 20, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants