arduino / arduino-ide

Arduino IDE 2.x
https://www.arduino.cc/en/software
GNU Affero General Public License v3.0
2.07k stars 353 forks source link

SaveAs also copies old binary builds #2420

Open ednieuw opened 3 weeks ago

ednieuw commented 3 weeks ago

Describe the problem

When a file name is saved with File SaveAs the exported compiled binary file is placed in the 'build' folder with the previous files that are copied into the new named folder. It is very confusing when the IDE1 is also used that places the .bin file in the INO source folder.

To reproduce

Compile a file and perform Export compiled binary Save the file with File SaveAs with a new name Export compiled binary Look in the 'build' folder.

Expected behavior

The Export compiled binary should have its new name used with File SaveAs in a clean 'build' folder. That is not with the previous 'build' folder contents.

Arduino IDE version

2.3.3 nightly 20240422

Operating system

Windows

Operating system version

W11

Additional context

No response

Issue checklist