-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
Saving sketch fails silently when files are read-only #1501
Comments
Thanks for your report @wilamsworld!
Since the meaning of this was not immediately apparent to me, I'll add my findings. File > SaveNormal saving via File > Save does not give the appearance of saving. The "dirty" marker remains on the sketch tab. File > Save As...There is no indication of a problem with the "Save As" operation but the new sketch does not contain the unsaved changes from the original read only file. Close windowThe IDE presents the usual save confirmation dialog. If you select Save, the window closes without any indication of a problem but the unsaved changes in the file are not saved. |
Closes arduino#1501 Upstream: eclipse-theia/theia#12354 Signed-off-by: Akos Kitta <[email protected]>
After proposing a fix in Theia (eclipse-theia/theia#12354), this is what IDE2 can provide "natively" as part of the next Theia version updates (#1976): readonly_1501.mp4Update:
IDE2 already has the patch in #1976—no need to wait for another Theia release cycle. |
Closes arduino#1501 Upstream: eclipse-theia/theia#12354 Signed-off-by: Akos Kitta <[email protected]>
Closes arduino#1501 Upstream: eclipse-theia/theia#12354 Signed-off-by: Akos Kitta <[email protected]>
Issues still exists in : I get no notification that the file is read-only and unable to be saved. |
I looked at the changelog for the nightly build and it listed:” - fix: warn user when IDE cannot save the sketch [8f8b46f]” |
👆 that was a fix for a different problem.
It's expected. This issue is open as it is not implemented yet. The fix is available neither from the nightly nor the release build, as it (kind of) depends on eclipse-theia/theia#12354. Thanks for your patience. |
Thank you - at least this is an improvement from zero notification that I had before. Anticipating the real fix. I read the bug you posted and it looks promising. A pop-up would be ideal. Thanks!! |
Closes: #1501 Ref: eclipse-theia/theia#12354 Signed-off-by: Akos Kitta <[email protected]>
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
🐛 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
The text was updated successfully, but these errors were encountered: