Summary: | After restarting Kate, empty tabs appear "Untitled (2)", "Untitled (3)"... | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | vujo <trozemo> |
Component: | sessions | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bugreports.nmhj2, christoph, florine, kubry, mail, piotr.mierzwinski, rs_rs_rs_rs_rs |
Priority: | NOR | ||
Version: | 23.08.5 | ||
Target Milestone: | --- | ||
Platform: | FreeBSD Ports | ||
OS: | FreeBSD | ||
Latest Commit: | https://invent.kde.org/utilities/kate/-/commit/be856dbb927f2c4082218bc4e0360eb677c9c44f | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: |
My settings Session
kate-duplicated_tabs kate_duplicate_Untilted kate lost session |
Bug is still there in the latest stable 23.04.0 I confirm the problem on 23.04.0 Tested on other distributions. Problem not reproduced: - Kubuntu 22.04.2 (kubuntu-22.04.2-desktop-amd64.iso) Kate 21.12.3 (sudo apt install kate) - Lubuntu 22.10 (lubuntu-22.10-desktop-amd64.iso) Kate 22.08.2 (sudo apt install kate) The problem has been reproduced: - Ubuntu-23.04 (ubuntu-23.04-desktop-amd64.iso) Kate 22.12.3 (sudo apt install kate) Kate 23.04.1 (sudo snap install kate --classic) I confirm the problem on Kate 23.04.1 FreeBSD 13.2-STABLE I forgot to add that in order to reproduce the problem correctly, you need to save the session. Correct steps to reproduce the problem: 1) run Kate 2) Sessions -> Save Session -> "myName" 3) Settings -> Configure Kate -> Session -> check the box "Load last used session" check the box "Newly-created unsaved files" check the box "Files with unsaved changes" uncheck "Show welcome view for new windows" -> OK 4) File -> New 5) Enter text: "test" 6) File -> Quit 7) run Kate Repeat 6) File -> Quit 7) run Kate I confirm the problem on Kate 23.04.3 FreeBSD 13.2-STABLE Seems not related to FreeBSD. Same here (kate 22.12.3, Kubuntu 23.04). (In reply to Kristian Rink from comment #7) > Seems not related to FreeBSD. Same here (kate 22.12.3, Kubuntu 23.04). Yes, the problem is reproducible on different platforms. Are you reproducing this problem? Yes I do. (In reply to Kristian Rink from comment #9) > Yes I do. Can you write your OS and version of kate? (In reply to vujo from comment #10) > (In reply to Kristian Rink from comment #9) > > Yes I do. > > Can you write your OS and version of kate? Hmm. kate 22.12.3, Kubuntu 23.04 - I think I already provided that above...? I can also reproduce the bug in Kate 23.08.1 on Debian Testing. Additionally, it looks like there's actually new "Untitled" files being created, since the number of files in the session increases each time Kate is restarted. The old files can be found using "Quick Open" (in menu as "Go > Quick Open", or use "Ctrl + Alt + O"). I confirm the problem on Kate 23.08.4 FreeBSD 13.2-RELEASE-p4 I was told that this problem occurs if you are in a document without a name when you close Kate. Therefore, after closing and opening, Kate does not know this document and creates a new one. A related issue is that if an untitled document is selected when closing, then the next time you open Kate you will have the new untitled document selected instead of navigating to any of the saved documents. Seeing the same issue on current Kubuntu 23.10 with Kate 23.08.1 as well as with newest Kate 23.08.4 snap. The functionality to restore tabs with content for untitled documents was one of the great features of Kate, sad to see this not working anymore since about a year. Created attachment 168697 [details]
kate-duplicated_tabs
Confirm the problem. I attachment screen shot with my duplicated tabs.
I need to add, that I found this issue at December 2022, so almost 1.5 year ago, so in Plasma 5.x.
it's sad that till today nothing changed.
Created attachment 168698 [details]
kate_duplicate_Untilted
Another screenshot ("kate_duplicate_Untilted") coming from Plasma 5:
KDE Plasma Version: 5.26.80
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
$ apt show kate
Package: kate
Version: 4:22.08.3+p22.04+tunstable+git20221201.0102-0
In "About" I can see: "Kate, Version 23.03.70"
Git commit bb268e2be0ff118c277d2e5bffb98b6e00ece3ea by Christoph Cullmann. Committed on 10/09/2024 at 09:03. Pushed by cullmann into branch 'master'. fix session restore of tabs/views of untitled documents will allow us to restore the right tabs even for untitled documents and avoids that we create new untitled documents on session restore Related: bug 464703, bug 462112, bug 462523 M +22 -1 apps/lib/katedocmanager.cpp M +9 -0 apps/lib/katedocmanager.h M +37 -16 apps/lib/kateviewspace.cpp https://invent.kde.org/utilities/kate/-/commit/bb268e2be0ff118c277d2e5bffb98b6e00ece3ea Git commit be856dbb927f2c4082218bc4e0360eb677c9c44f by Christoph Cullmann. Committed on 13/09/2024 at 16:56. Pushed by cullmann into branch 'release/24.08'. fix session restore of tabs/views of untitled documents will allow us to restore the right tabs even for untitled documents and avoids that we create new untitled documents on session restore Related: bug 464703, bug 462112, bug 462523 (cherry picked from commit bb268e2be0ff118c277d2e5bffb98b6e00ece3ea) 1866ba36 store the id from the session we did load/save 06c49bc4 write out the id of the document and not the url 2da4f29e read both the new session stored with id and the old with url Co-authored-by: Christoph Cullmann <christoph@cullmann.io> M +22 -1 apps/lib/katedocmanager.cpp M +9 -0 apps/lib/katedocmanager.h M +37 -16 apps/lib/kateviewspace.cpp https://invent.kde.org/utilities/kate/-/commit/be856dbb927f2c4082218bc4e0360eb677c9c44f Created attachment 174659 [details]
kate lost session
I had session calling mySession2 with 2 regular files and on "untilted". As you can see on the screenshot there are 3 "untilted" it happened after another restart. Additionally I cannot close last one document clicking appearing close button after hover of mouse on item of list in document view
KDE Neon unstable, updated today
I don't quick Kate manually, only plasma kills it, because I turned on "restore session" in Plasma Below check content of my session directory piotr@Dell:~/.local/share/kate/stash/mySession2.katesession$ ls -l total 28 -rw-rw-r-- 1 piotr piotr 20 sep 19 02:32 'Document 0' -rw-rw-r-- 1 piotr piotr 152 sep 19 02:32 'Document 0~' -rw-rw-r-- 1 piotr piotr 18 oct 4 02:06 'Document 2' -rw-rw-r-- 1 piotr piotr 95 oct 3 00:35 'Document 2~' -rw-rw-r-- 1 piotr piotr 13 sep 19 02:33 'Document 3' -rw-rw-r-- 1 piotr piotr 364 sep 19 02:32 'Document 3~' -rw-rw-r-- 1 piotr piotr 122 aug 31 03:41 'Document 4' When Plasma kill and restore Kate happens the same. We meet several "Untilted" in "Documents" view. |
Created attachment 158145 [details] My settings Session Hello. STEP TO REPRODUCE Settings: Session -> "Newly-created unsaved files" 1. Open Kate 2. File -> New (a new "Untitled" tab will appear) 3. Enter some text, for example "test message" 4. File -> Quit 5. Open Kate OBSERVED RESULT Another new clutch "Untitled (2)" has appeared, which is empty. The previous tab "Untitled" contains our "test message" text. If you repeat step 4 and 5: 4. File -> Quit 5. Open Kate Then another empty tab "Untitled (3)" will appear, and so on. EXPECTED RESULT Empty tabs "Untitled (2)" ... "Untitled (3)" should not appear after restarting Kate. SOFTWARE/OS VERSIONS HardenedBSD 13.2 STABLE GhostBSD-22.06.18 (FreeBSD 13.1) KDE Plasma Version: 5.103 KDE Framework Version: 5.104.0 Qt Version: 5.15.8 ADDITIONAL INFORMATION Settings: Session -> "Newly-created unsaved files"