Skip to content

Saving sketches in a read-only filesystem. #1768

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
tistructor opened this issue Dec 13, 2022 · 1 comment
Closed
3 tasks done

Saving sketches in a read-only filesystem. #1768

tistructor opened this issue Dec 13, 2022 · 1 comment
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@tistructor
Copy link

tistructor commented Dec 13, 2022

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
@tistructor tistructor added the type: imperfection Perceived defect in any part of project label Dec 13, 2022
@per1234 per1234 self-assigned this Dec 13, 2022
@per1234
Copy link
Contributor

per1234 commented Dec 13, 2022

Hi @tistructor >. Thanks for taking the time to submit an issue.

I see we have another report about this at #1501.

It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 13, 2022
@per1234 per1234 added conclusion: duplicate Has already been submitted topic: code Related to content of the project itself labels Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants