KDevelop Question

Hi,

I am using F41 KDE Spin. I wanted to give KDevelop a try so I installed it. But whenever I click “New Project” → “Get More Templates” KDevelop just freezes - I can minimize and maximize it but it does not appear to do anything, even if I leave it open for sometime. There are no errors shown. I eventually need to close it by killing the “kdevelop” process. Can someone please help me with how to get new templates?
PS: I initially installed KDevelop using Fedora Linux repo and then using Flatpak but the same issue persists. Thank you very much!

In case this helps anyone, here is the output of ‘kdevelop’ from the command line:

parichaya@viper:~$ kdevelop
beginResetModel called on cppcheck::ProblemModel(0x560c36ee0ff0) without calling endResetModel first
endResetModel called on cppcheck::ProblemModel(0x560c36ee0ff0) without calling beginResetModel first
kdevplatform.shell: Could not load plugin "kdevperforce" , it reported the error: "The variable P4CONFIG is not set. Is perforce installed on the system?" Disabling the plugin now.
beginResetModel called on ProblemReporterModel(0x560c36ff8a50) without calling endResetModel first
beginResetModel called on QSortFilterProxyModel(0x560c3739d1f0) without calling endResetModel first
endResetModel called on ProblemReporterModel(0x560c36ff8a50) without calling beginResetModel first
endResetModel called on QSortFilterProxyModel(0x560c3739d1f0) without calling beginResetModel first
/usr/bin/cat: /home/parichaya/.local/share/kdevelop/sessions/{352c8e8a-0363-4eb8-aadb-54ecdba34e48}/default.sh: No such file or directory
QAbstractItemModel::endInsertRows:  Invalid index ( 2 , 0 ) in model QSortFilterProxyModel(0x560c37956cf0)
QAbstractItemModel::endInsertRows:  Invalid index ( 2 , 0 ) in model QSortFilterProxyModel(0x560c37956cf0)
QAbstractItemModel::endInsertRows:  Invalid index ( 2 , 0 ) in model QSortFilterProxyModel(0x560c37956cf0)
QAbstractItemModel::endInsertRows:  Invalid index ( 3 , 0 ) in model QSortFilterProxyModel(0x560c37956cf0)
kdevplatform.shell: Could not load plugin "kdevbazaar" , it reported the error: "Unable to find Bazaar (bzr) executable. Is it installed on the system?" Disabling the plugin now.
file:///usr/lib64/qt6/qml/org/kde/kirigami/templates/private/DrawerHandle.qml:117:5: TypeError: Cannot read property 'width' of null

Also here is the pstack trace: pstack trace for kdevelo — Codefile

Maybe I just need to create the correct config file somewhere or change some setting in my system or install some specific package or something? Thank you.

Nice of you but you didn’t have all the debug symbols it seems.
Make sure you have debuginfod active.
I don’t how it is done in fedora.

I think you just hit a bug, either a compat issue or code that bitrotted and is not functional anymore. I do reproduce the issue in Arch.
You can report a bug to bugs.kde.org for kdevelop, with the stack trace with debug symbols would make it easier to fix.

I tried following the guide and installed all the libraries but was unable to get all the required symbols. sudo dnf provides did not help (I installed the file(s) individually but the symbols did not turn up). I can’t proceed any further unfortunately. I will have to wait for someone who is more proficient than me to get the backtrace with symbols and create the bug report. I don’t want to file a half-hearted report which will be unhelpful. Thank you for helping me out!

FYI this feature downloads its templates from KDevelop App Templates - KDE Store

Maybe you can install some manually.

1 Like