Created attachment 151706 [details] screenshot STEPS TO REPRODUCE 1. Open QtHelp homepage OBSERVED RESULT - Each entry listed multiple times EXPECTED RESULT - Each entry only listed once ADDITIONAL INFORMATION - Qt assistant only lists everything once - in /usr/share/qt5/doc each framework has only one file
Actually the duplicates are all 5.87
If I uncheck "Load Qt API documentation" and instead add /usr/share/qt5/doc below, everything is there only once in the combobox and their main pages only have one entry.
I experienced this bug multiple times in the past. I think the issue is that KDevelop does not properly refresh its database and keeps cached documentation entries, even after they are overwritten by newer versions during a system upgrade. The cache is stored in ~/.local/share/kdevelop/*.qhc
You are right after deleting that, it doesnt happen anymore But doing that I encountered another bug, there was initially no content at all. I had to toggle the checkbox in the settings so it would appear.
(In reply to David Redondo from comment #4) > You are right after deleting that, it doesnt happen anymore > > But doing that I encountered another bug, there was initially no content at > all. I had to toggle the checkbox in the settings so it would appear. Yes, I recall this bug too.
(In reply to David Redondo from comment #4) > But doing that I encountered another bug, there was initially no content at > all. I had to toggle the checkbox in the settings so it would appear. Looks like this other bug has been fixed (probably by Milian during the Qt 6 porting). I just found how Qt Creator detects missing documentation files in a function named cleanUpDocumentation(), then unregisters the corresponding documentation namespaces. I'll try to do the same cleanup on KDevelop start and finally fix this bug.
A possibly relevant merge request was started @ https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/672
Git commit bf50a33c1282523800efd12e4506c0dbcef9144f by Igor Kushnir. Committed on 18/10/2024 at 10:42. Pushed by igorkushnir into branch 'master'. QtHelpQtDoc: unregister obsolete documentations A system upgrade updates Qt documentation .qch files and increases namespace versions. Obsolete namespaces remain in ~/.local/share/kdevelop/qthelpcollection.qhc until the user removes this file manually. As a consequence, duplicate entries appear on the QtHelp home page. Unregister namespaces that are absent from currently existing QtHelp .qch files in order to prevent the duplicate entries and free up disk space. Subsequent commits will reuse the new helper function QtHelpProviderAbstract::cleanUpRegisteredDocumentations(). FIXED-IN: 6.1.241200 M +20 -0 plugins/qthelp/qthelpproviderabstract.cpp M +17 -0 plugins/qthelp/qthelpproviderabstract.h M +25 -6 plugins/qthelp/qthelpqtdoc.cpp https://invent.kde.org/kdevelop/kdevelop/-/commit/bf50a33c1282523800efd12e4506c0dbcef9144f