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

            Bug ID: 464703
           Summary: Unsaved files of session cannot be saved on exit if a
                    directory has not yet been created
    Classification: Applications
           Product: kate
           Version: 22.12.1
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: sessions
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: mpeter.68...@simplelogin.co
  Target Milestone: ---

Created attachment 155535
  --> https://bugs.kde.org/attachment.cgi?id=155535&action=edit
screenshot of error popup referenced in step 5

SUMMARY
If I have unsaved files opened, and I close the Kate window, it will pop up
errors (one for every such file) indicating that it was not able to save it.
This happens if the `kate` directory in the user appdata/roaming directory
(usually at `c:\Users\<username>\AppData\Roaming\`) does not yet exist.


STEPS TO REPRODUCE
1. Make sure that the above mentioned directory does not exist
2. Open Kate
3. Save the session with "Sessions > Save Session" on the toolbar
3. Open one or more files, write something into them, but do not save them
4. Close Kate
5. Observe error popups
6. Open Kate and choose to load the saved session
7. Observe empty unsaved files

OBSERVED RESULT
Saving the session does not persist unsaved files

EXPECTED RESULT
Saving the session persists unsaved files, which are restored along with their
content when reopening the session

SOFTWARE/OS VERSIONS
Windows: 10
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Manually creating the folder at `c:\Users\<username>\AppData\Roaming\kate`
fixes session restore for Kate 22.08.1, but not for 22.12.1.

On 22.12.1, the error popup does not return, and the unsaved documents are
still persisted, but seemingly a new bug is present: on opening Kate and
loading the session, the files are not accessible in Kate. Despite that, when
loading the session, the files disappear from the
`c:\Users\<username>\AppData\Roaming\kate\stash\<session name>\` directory, and
reapper when Kate is closed.
I don't have access to releases between these 2 versions.

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

Reply via email to