Closed
Description
Describe the problem
If you load a read only .ino then try to save the IDE does not notify that the file is Read Only and it appears to save to this file although it has not.
To reproduce
- Create a sketch.
- Use your operating system to set the read-only attribute of the sketch file.
- Make a change to the read-only sketch file in the Arduino IDE editor.
- Select File > Save from the Arduino IDE menus.
🐛 Arduino IDE does not communicate to the user that it could not save to the file. If you open the file in a text editor you will see the change was not saved.
Expected behavior
I would expect a popup or similar to notify the file was read-only
Arduino IDE version
Original report
Last verified with
Operating system
Windows
Operating system version
10
Additional context
The unsaved state is indicated by the ⬤ icon on the sketch tab, but this is not sufficient communication.
Additional reports:
- Saving sketches in a read-only filesystem. #1768
- https://forum.arduino.cc/t/download-of-ide-2-0-3-to-my-w10-pc-for-uno-where-is-it/1061945/21
- https://forum.arduino.cc/t/saving-files-on-windows-only-works-sometimes/1049690
- https://forum.arduino.cc/t/read-only-example-sketched/1079344
- https://forum.arduino.cc/t/interesting-file-saving-happenings/1136943
- https://forum.arduino.cc/t/cant-save-sketches-file-returns-to-original/1161762
- https://forum.arduino.cc/t/where-is-the-zip-libraries/1164433/61
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