Skip to content

Saving sketch fails silently when files are read-only #1501

Closed
@wilamsworld

Description

@wilamsworld

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

  1. Create a sketch.
  2. Use your operating system to set the read-only attribute of the sketch file.
  3. Make a change to the read-only sketch file in the Arduino IDE editor.
  4. 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

7c86f1f

Last verified with

8f8b46f

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:

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions