https://bugs.kde.org/show_bug.cgi?id=505135

            Bug ID: 505135
           Summary: Save and restore unsaved files broken again, changes
                    are silently lost
    Classification: Applications
           Product: kate
      Version First 25.04.1
       Reported In:
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: critical
          Priority: NOR
         Component: sessions
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: groszdaniel...@gmail.com
  Target Milestone: ---

SUMMARY
If the Automatically save and restore Newly-created unsaved files and/or Files
with unsaved changes options are enabled, Kate doesn't prompt if there are
unsaved changes when closing it, but the changes are not restored when
reopening the session.

In the case of newly created unsaved files, tabs corresponding to unsaved files
get opened when reopening Kate, but they are empty.

STEPS TO REPRODUCE
1. Open Kate with a saved session.
2. Under Settings / Configure Kate... / Sessions, enable Automatically save and
restore Files with unsaved changes (or Newly-created unsaved files), if it's
not already enabled.
3. Close Kate and open it again with the saved session. (I'm not sure if this
step is necessary, it seems to me that these settings don't fully take effect
for already opened sessions.)
4. Open a file (or create a new file).
5. Make some changes (but don't save it).
6. Close Kate.
7. Reopen Kate with the same session.

OBSERVED RESULT
The contents of the file are as before the changes (or it's empty, in the case
of a new file).

EXPECTED RESULT
The changes are preserved.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250522
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.6-1-default (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Unlike the earlier, similar Bug 449229, it happens whether I quit Kate with
Ctrl+Q or by closing the window.
Could be related to the fixing of Bug 497478, a bug in 24.12.0 where open
files' paths randomly got replaced with those of stash files when automatic
save/restore was enabled. (In 24.12.0 the automatic save/restore feature itself
did work.)
Bug 493665 concerns the case when Kate is closed irregularly (SIGKILL, computer
crashes etc.), but in 25.04.1 automatic save/restore seems to be entirely
broken, even when quitting Kate normally.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to