Python editor should detect externally modified scripts #139
Labels
Priority: High
Needs to be addressed as soon as possible
Status: Needs Review
Waiting for available reviewer to pick up this issue or PR
Type: Bug
This is a confirmed or unconfirmed bug
Describe the bug
The Python editor currently does not monitor the file on disk, meaning if you modify the file in another editor (or you have it in, say, a git repository and pull in some commits) and then click the save button in HAL, the external changes are lost.
Most IDEs can do this, so this will probably be unexpected for most users.
To Reproduce
Expected behavior
The editor must not overwrite a file that has been modified externally without asking for confirmation. The editor should display a subtle notification (no focus-stealing dialogs here) asking whether the user would like to re-load the file whenever HAL senses an external modification.
Additional context
gedit
does this well, maybe take a look there.The text was updated successfully, but these errors were encountered: