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

            Bug ID: 515346
           Summary: kate not removing temporary swp files upon closure
                    using "discard"
    Classification: Applications
           Product: kate
      Version First 25.12.1
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: application
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 189100
  --> https://bugs.kde.org/attachment.cgi?id=189100&action=edit
Reproducing the bug

SUMMARY
When opening a file, either from terminal or gui, then edit the file but do not
save, instead select discard upon closing kate.
The hidden temp file is not deleted. Opening the file again _sometimes_ causes
kate to show a warning at top claiming the file was not saved correctly.

STEPS TO REPRODUCE
1. open file
2. make changes
3. close file and select "discard"
4. look in folder where file is located, not hidden file created by kate
5. open file again
6. _sometimes_ get a warning about file not saved correctly

OBSERVED RESULT
The warning is very sporadic, on the side of rare and when it happens, there
are no logs I can find that reports errors.
The hidden files are always there though, and in my case is backed up witch is
not wanted since they are runtime files imho.
**If the warning is not shown,** the temporary file will get removed upon next
opening of the file using kate.

EXPECTED RESULT
Temporary file to be removed immediately upon manual closure with "discard".

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.1
Kernel Version: 6.18.7-arch1-1 (64-bit)
Graphics Platform: Wayland

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

Reply via email to