Bug 382289 - Long-standing bug: Bookmarks are often forgotten.
Summary: Long-standing bug: Bookmarks are often forgotten.
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-13 04:02 UTC by Tim E. Real
Modified: 2024-10-19 21:11 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim E. Real 2017-07-13 04:02:48 UTC
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!
Comment 1 Jaka Kranjc 2017-09-19 15:59:30 UTC
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.
Comment 2 Justin Zobel 2022-11-10 08:51:59 UTC
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!
Comment 3 Jaka Kranjc 2022-11-12 20:03:20 UTC
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.
Comment 4 Jaka Kranjc 2022-11-12 20:06:47 UTC
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)
Comment 5 Tim E. Real 2022-11-13 00:16:30 UTC
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.
Comment 6 Sven Brauch 2022-11-13 00:29:30 UTC
This is almost certainly a KTextEditor bug, yes -- moving it there.
Comment 7 Christoph Cullmann 2024-10-19 21:11:25 UTC
Please try a more recent version. We did improve all that a bit in the last years.