Hello. For a long time now, if I recall even back in Qt4 before the switch to Qt5, KDevelop keeps forgetting my bookmarks. It happens in all distros I've used, like KUbuntu or this current openSUSE Tumbleweed. As a seasoned tracker, all I have been able to do so far is watch, and try to observe when it happens. But it's elusive, hard to pin down. The only clue I can provide is that it seems to have something to do with large files in a large project and/or the number of files open in the editor. I can only point you in the direction of our CMake based C++ project: Project: https://github.com/muse-sequencer/muse Website: http://muse-sequencer.org/ To recreate the problem, open the MusE cmake project. Open say, ten or twenty of the large "juicy" project files in the editor. As a test, which I just tried, also open the >2000 line "midi.cpp" file. Add some bookmarks to "midi.cpp", close and reopen KDevelop and MusE. The bookmarks are gone in "midi.cpp". If not that file, try some of the other files, surely sooner or later you'll hit several files where all bookmarks are forgotten. Some of our files are over two thousand lines long. Hope I can assist further. Thanks. Tim. Coding MusE and other projects in KDevelop since its inception. KDevelop rocks!
I can confirm this bug, but haven't tried that test case. I thought it kept happening when you reload a file (eg. after external change), but short tests don't agree.
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version? If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
I just reproduced it by: - having a file opened with some bookmarks - git stash - git stash pop They're all gone, also in other opened files.
Sorry, made a mistake: the bookmarks in other opened files remained. I forgot I removed one just before testing. And the version is: 5.7.211203 (21.12.3)
Hi thanks for taking a look. The bug remains very elusive, I still cannot pin down exactly what triggers it. Here is one thing that does usually trigger it, virtually every time: Occasionally KDevelop will crash. When I restart KDevelop and open the project, it will ask if I want to clear the cache. When I do that, I often find that my bookmarks are missing, or very messed up - being moved around especially into 'bunches' where I never originally placed them. It is not entirely clear to me that KDevelop is at fault. Rather Kate might be at fault. Possible? I thought I had mentioned this before, but I could swear that once I caught Kate running alone forgetting its bookmarks. But alas, it has been too long to be sure. Overall the bug is an annoyance but not a showstopper. May KDevelop continue to Rock! Thanks.
This is almost certainly a KTextEditor bug, yes -- moving it there.
Please try a more recent version. We did improve all that a bit in the last years.