Genio icon indicating copy to clipboard operation
Genio copied to clipboard

Path monitoring: unexpected behaviour when closing a modified file that has previously been moved along with its parent folder outside of the project

Open nexus6-haiku opened this issue 1 year ago • 2 comments

When a file is opened in the editor, Genio starts watching it for any change. If it has been modified and moved outside of the project folder as a consequence of moving its parent, Genio still thinks it belongs to the project and doeas not detach it. The only tangible consequence is that Genio prompts the user to seve it or discard the changes then the project it belongs to is closed. Further investigation is required but Genio doesn't seem to receive a notification for this event.

nexus6-haiku avatar Mar 24 '23 09:03 nexus6-haiku

It looks like the only way to fix this is from the ProjectBrowser: as soon as a file or a folder is moved outside the project we should check if the files are open in the editor and we should remove the project reference

Freaxed avatar Oct 19 '23 16:10 Freaxed

It's the other way around, if a file is open and we get a change notification, we should check if the file has been moved outside the project folder then we simply detach it without prompting the user (maybe just showing an alert). We don't get a notification on the moved file from the path monitor, we get it because the editor is monitoring the open file regardless and the entry_ref has changed.

nexus6-haiku avatar Oct 19 '23 18:10 nexus6-haiku