-
-
Notifications
You must be signed in to change notification settings - Fork 7k
When saving new tab .ino file closes if it has unsaved changes on 1.9.x beta build 10 #6827
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
Comments
As a follow-up: When I delete a tab when neither sketch nor tab are modified I see the following exception:
If the sketch has unsaved changes while deleting a tab, in addition to the exception occurring the sketch loses the unsaved changes E: Grammar |
Hi @jmusta , the issues seems related with the new filewatcher; it should solve the problem that, if you modify a sketch out of the Java IDE, when you save it back the external modifications are being overwritten. It is heavily based on the editor window focus status but it was only tested extensively on Linux so there could be subtle differences on other OSes.
Could you provide a screencast of what you are doing so I can reproduce it correctly (with all the focused/unfocused windows in the same place)? Thanks! |
This ensures that watcher is inactive when children views are focused Solves #6827
I tested it with build 12. The issue with saving in the original issue submission seems to be fixed. The bug with deleting the file that I included in the follow-up comment seems to still be present. |
Just pushed another fix (5dc6b65) about the sketch deletion, should be online right now. Thanks for testing! |
This ensures that watcher is inactive when children views are focused Solves #6827
Saving a new tab:
It does not anymore show me any exception messages even in when running as debug. I rechecked with build 12 and in that saving the new tab while the sketch has unsaved changes behaves correctly. Deleting tab while .ino file has unasaved changes At some point when I was playing around with the save and delete I received the following exception:
Unfortunately I have not been able to reproduce the exception. |
Thanks for the extensive report, the last commit had some unwanted side effects that I didn't consider properly. I'll be back when I have a proper solution. Thanks for testing! |
This ensures that watcher is inactive when children views are focused Solves arduino#6827
This ensures that watcher is inactive when children views are focused Solves #6827
This ensures that watcher is inactive when children views are focused Solves #6827
This ensures that watcher is inactive when children views are focused Solves #6827
This ensures that watcher is inactive when children views are focused Solves #6827
This ensures that watcher is inactive when children views are focused Solves #6827
@jmusta, did you ever get a chance to try the latest beta build? If so, did it resolve the issues you reported here? |
Sorry, I have not tested it. I'm currently rather busy, but I can try to find time to do it next week/this weekend. |
This ensures that watcher is inactive when children views are focused Solves arduino#6827
I tested this with build 36. The saving seems to be working fine and none of the files get closed with following steps:
When I deleted a tab while neither the ino file or tab were unsaved I the tab was successfully deleted, but I got the following error message:
|
This ensures that watcher is inactive when children views are focused Solves #6827
This ensures that watcher is inactive when children views are focused Solves #6827
When saving newly created tab while .ino file has modifications, the .ino ino file gets closed. The changes seem to be saved properly though. Tested on 1.9.x beta build 10 on Windows 10.
Following exception is displayed when I try to save the changes
The text was updated successfully, but these errors were encountered: