8000 IDE 2 doesn't handle some file name changes well · Issue #2680 · arduino/arduino-cli · GitHub
[go: up one dir, main page]

Skip to content

IDE 2 doesn't handle some file name changes well #2680

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
PickyBiker opened this issue Jul 30, 2024 · 2 comments
8000
Closed
3 tasks done

IDE 2 doesn't handle some file name changes well #2680

PickyBiker opened this issue Jul 30, 2024 · 2 comments
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@PickyBiker
Copy link

Describe the problem

My sketch had 3 files: stepClass.h, stepClass.cpp and T4DualStep.ino. It was compiling okay. Changed the class file names to stepperClass.h and stepperClass.cpp, and also changed the #include in the .cpp file to the new name stepperClass.h

The IDE started reporting errors that were in the old file name stepClass.cpp which is still in the temp folder, even though there is no reference to that file anywhere in the scketch.

Details of this error and the sketch can be found here: https://forum.arduino.cc/t/code-compiles-in-old-ide-but-not-the-new-one/1286767

It is 100% repeatable

To reproduce

Use a PC, Tensy 4.0, IDE 2.3.2, and the sketch supplied in the origibl post. . Compile it and make certain the .cpp file has an error somewhere. Now rename the .cpp, .h, and the #include names. Correct the error in the new .cpp file and compile. This will reproduce the error. rename the temp file with the old name to .cpp.old. Compilation will once again succeed.

Expected behavior

Do not expect to see an error.

Arduino IDE version

2.3.2

Operating system

Windows

Operating system version

win 11

Additional context

no additional details

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
@PickyBiker PickyBiker added the type: imperfection Perceived defect in any part of project label Jul 30, 2024
@PickyBiker PickyBiker changed the title IDE 2 doesn't some file name changes well IDE 2 doesn't handle some file name changes well Jul 30, 2024
@per1234 per1234 self-assigned this Jul 30, 2024
@per1234 per1234 transferred this issue from arduino/arduino-ide Jul 30, 2024
@per1234 per1234 added the topic: code Related to content of the project itself label Jul 30, 2024
@per1234
Copy link
Contributor
per1234 commented Jul 30, 2024

Hi @PickyBiker. 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.

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 30, 2024
@per1234 per1234 added the conclusion: duplicate Has already been submitted label Jul 30, 2024
@PickyBiker
Copy link
Author
PickyBiker commented Jul 30, 2024 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: 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
0