-
-
Notifications
You must be signed in to change notification settings - Fork 402
Previous file persists in build folder after renaming non-.ino
sketch code file
#1240
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
Open
3 tasks done
Labels
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
This is related to arduino/arduino-builder#86, I think the changes I have in mind for that issue will also fix this one. |
3 tasks
3 tasks
3 tasks
/tmp/.../sketch/
after renaming non-.ino
sketch code file
3 tasks
/tmp/.../sketch/
after renaming non-.ino
sketch code file.ino
sketch code file
3 tasks
3 tasks
3 tasks
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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
The previous file persists in the sketch build folder after a sketch code file with extension other than
.ino
/.pde
is renamed.🐛 This can result in spurious compilation errors or confusing bugs. Arduino CLI users can work around the bug by adding the
--clean
flag to their command, but the only workaround for Arduino IDE users is to manually clean the build folder.To reproduce
🐛
foo.cpp
is still present in the build folder even though not present in the sketch.foo.cpp
is compiled in addition tobar.cpp
and the primary sketch file.Expected behavior
Files are always removed from the sketch build folder when no longer present in the sketch.
Arduino CLI version
Original report
Arduino IDE 1.6.9
Last verified with
0.34.1
Operating system
Operating system version
Additional context
Workaround
Arduino CLI users
Run an
arduino-cli compile
command with the--clean
flag.Arduino IDE users
For example, in this error:
Additional reports
Keywords
rename
header
.h
.cpp
.c
C++
Issue checklist
The text was updated successfully, but these errors were encountered: