Version: unspecified (using KDE 4.7.2) OS: Linux Today I lost some work because I relied on kate to detect file changes. Kate somehow did not detect that I changed a file on a different machine. When I later saved the file I overwrote my earlier changes accidentally. Reproducible: Always Steps to Reproduce: 1. Open a file in kate on machine A. 2. Edit the file in kate 3. Edit and save the file on machine B. 4. Save the file in kate Actual Results: The changes in step 3 are lost and kate does not detect that the file changed underneath. Expected Results: In step 4 kate detects that the file has been changed externally and prompts for user interaction. The filesystem is mounted via NFS on both machines.
That depends on how your system is configured, i.e., whether the file notification system also works for NFS mounted partitions. This does not seem to be the case. It's no a kate issue, hence, forwarding.
I am not aware of any file change notification system that correctly works for NFS partitions. In my opinion kate should not depend on such a system. There is always the possibility that a notification is lost or not generated. To play on the save side kate should check before it saves whether the file has the expected contents. The current behaviour causes data loss.
Same problem with a CIFS mount. Version: 16.08.3 (using KDE Frameworks 5.28.0) OS: Linux
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version? If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
With Kate 22.04.3 and files on a cifs share the problem no longer exists. :-)