Skip to content

Saving sketches in a read-only filesystem. #1768

Closed as not planned
Closed as not planned
@tistructor

Description

@tistructor

Describe the problem

If you save a sketch in a read-only filesystem you get no error message.
This way you think you have saved the project but at the restart the saved sketch opens before the file system was read-only.
As a result, losing subsequent changes.

To reproduce

Try saving a sketch in a read-only filesystem.

Expected behavior

A dialog box should be shown stating that the operation cannot be performed.

Arduino IDE version

2.0.3

Operating system

Linux

Operating system version

Linux Mint 21

Additional context

This particular problem happens because using linux and then moving to windows and then again to linux sometimes the disk where I save the projects, formatted NTFS is mounted by linux in read only.

The project is not located in the sketchbook folder but in my personal folder.
I don't know if this changes things, I haven't run tests on this.

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

conclusion: duplicateHas already been submittedtopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions