Bug 501111

Summary: Kate suddenly exchanges file
Product: [Applications] kate Reporter: branch8475 <branch8475>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: christoph
Priority: NOR    
Version First Reported In: 24.12.2   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description branch8475 2025-03-05 19:08:15 UTC
SUMMARY
Sometimes a file, which is opened in a tab in Kate, is suddenly exchanged by an auto save file.
The content of the document is preserved, but now the document suddenly points to a file in the auto save folder.

For example "$HOME/Documents/Example.txt" is suddenly exchanged by "$HOME/.var/app/org.kde.kate/data/kate/stash/ExampleSession.katesession/Document 2". The file name "Document <number>" is automatically given by Kate.

STEPS TO REPRODUCE
1. Open Kate
2. Open a  document as a tab in a Kate session
3. Edit the Document

OBSERVED RESULT

Sometimes after a while the document suddenly points to an auto save file

EXPECTED RESULT

The document keeps pointing to the file from which it was opened.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 41
KDE Plasma Version: 6.3.1
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
Comment 1 Christoph Cullmann 2025-03-18 22:32:16 UTC
Fixed with the other bug and follow up https://invent.kde.org/utilities/kate/-/commit/9e0b3c65630191a32aca260986dcd885748d1916

*** This bug has been marked as a duplicate of bug 499482 ***