Primary sketch filename not updated on sketch rename when it has a .pde
extension
#1111
Open
3 tasks done
Labels
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
An Arduino sketch is a folder. It is mandatory for the filename of the primary sketch file to match the sketch folder name. For this reason, the IDE must update the filename of the primary sketch file whenever an operation changes the sketch folder name:
The original file extension for Arduino language files in Arduino sketches was
.pde
. Support was later added for the.ino
file extension, but.pde
is still supported (though recently deprecated).🐛 If the primary sketch file has a
.pde
file extension, the file is not renamed along with the sketch folder. This results in an invalid sketch.To reproduce
HasPdeExtension.zip
HasPdeExtension
sketch folder.A "Save As" dialog will open.
🐛 The original HasPdeExtension sketch remains open in the Arduino IDE window instead of the expected result of the HasPdeExtensionMigrate sketch opening.
🐛 The primary sketch file was not renamed to match the sketch name.
🐛 The primary sketch file was not renamed to use the
.ino
file extension as promised by the notification:HasPdeExtensionMigrate
vs.HasPdeExtension
)🐛 The original HasPdeExtension sketch remains open in the Arduino IDE window instead of the expected result of the HasPdeExtensionSaveAs sketch opening.
🐛 The primary sketch file was not renamed to match the sketch name:
HasPdeExtensionSaveAs
vs.HasPdeExtension
)🐛 The original HasPdeExtension sketch remains open in the Arduino IDE window instead of the expected result of the HasPdeExtensionRename sketch opening.
🐛 The primary sketch file was not renamed to match the sketch name:
HasPdeExtensionRename
vs.HasPdeExtension
)Expected behavior
The primary sketch file is always renamed when an operation performed by Arduino IDE changes the sketch folder name.
Arduino IDE version
Original report
2.0.0-rc8
Last verified with
db0049d
Operating system
Windows, Linux
Operating system version
Additional context
Additional reports
Issue checklist
The text was updated successfully, but these errors were encountered: