Summary: | kdevelop : wizard does not create new classes | ||
---|---|---|---|
Product: | [Developer tools] kdevplatform | Reporter: | nmset <nmset> |
Component: | appwizard | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | igorkuo, nmset, yudahsshadow |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/karchive/4455503ce4910c65758138b44bc136de9fe32cd4 | Version Fixed In: | 5.112.0 |
Sentry Crash Report: |
Description
nmset
2023-10-17 13:11:04 UTC
This is likely a KArchive-related recent regression (not in KDevelop code, I think). Here is some of the output in systemd journal after trying to create a class from a template: kdevplatform.language: could not open template "/usr/share/kdevfiletemplates/templates/c_gobject.tar.bz2" ... kdevplatform.language: could not open template "/usr/share/kdevfiletemplates/templates/qwidget_pimpl.tar.bz2" kdevplatform.language: Entry "class.h" is mentioned in group "Header" but is not present in the archive kdevplatform.language: Entry "class.c" is mentioned in group "Implementation" but is not present in the archive kdevplatform.language: Entry "class.cpp" is mentioned in group "Implementation" but is not present in the archive Template-related KDevelop tests started failing recently with similar output. See also https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/499. I am getting this on opensuse tumbleweed as well. When I go to the folder via "Load template from file" the folder (/usr/share/kdevfiletemplates/templates for me) has nothing showing, despite both ls and dolphin showing the bzip archives. I installed a template via ghns and it also failed with a similar message and a blank folder it its location (~/.local/share/kdevfiletemplates/templates) Unzipping the installed template from ghns showed the .desktop files (but not the bzip archive) in the "Load template from file" picker window. Selecting the desktop file, once proper ownership and permissions were set, did nothing to add the template to the wizard. I also tried copying one of the default templates to ~/Downloads and unpacking it there. The file picker once again saw the .desktop but not .tar.bz2 files and selecting the .desktop file did not add the template, though no new messages appeared on the console. Upon closing the wizard, I got a new message of kdevplatform.language: Could not find a template archive for description "" archive file "" This is actually a regression in shared-mime-info 2.3. Fixed in KArchive 5.112.0 (https://commits.kde.org/karchive/4455503ce4910c65758138b44bc136de9fe32cd4). The regression is fixed in shared-mime-info 2.4: https://gitlab.freedesktop.org/xdg/shared-mime-info/-/commit/918d2610830d52c6b13cf7f7e35f68dcb1438ee7 (In reply to Igor Kushnir from comment #5) > The regression is fixed in shared-mime-info 2.4: Yes, it works as expected now, thanks. |