Bug 486431 - Templates for C++ Plasmoids look for KF6PlasmaConfig
Summary: Templates for C++ Plasmoids look for KF6PlasmaConfig
Status: RESOLVED FIXED
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: libplasma (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-02 06:30 UTC by Matthias
Modified: 2024-11-11 12:46 UTC (History)
2 users (show)

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


Attachments
KF6PlasmaConfig not found (476.23 KB, image/png)
2024-05-02 06:30 UTC, Matthias
Details
Plasma QML Applet with QML Extension (469.49 KB, image/png)
2024-05-02 07:55 UTC, Matthias
Details
Plasma QML/C++ Applet (472.94 KB, image/png)
2024-05-02 07:55 UTC, Matthias
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias 2024-05-02 06:30:33 UTC
Created attachment 169086 [details]
KF6PlasmaConfig not found

SUMMARY
The two templates for C++ QML Plasmoids look for KF6PlasmaConfig, while they should look for PlasmaConfig. 
See screenshot

STEPS TO REPRODUCE
1.  Open up one of the C++ Plasmoid Templates
2.  See error message



Operating System: KaOS (2024) 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.8-1-next (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800U with Radeon Graphics
Memory: 13,5 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 82L0
System Version: Yoga Slim 7 Carbon 14ACN6
Comment 1 Igor Kushnir 2024-05-02 06:58:28 UTC
Are these the templates in question? https://invent.kde.org/plasma/libplasma/-/tree/8953e77ec26b90da0e79e3cf3ecb727034768d58/templates

They are part of the libplasma repository, not KDevelop, so perhaps change the Product field accordingly? You could even try to fix the templates yourself and create a libplasma merge request.
Comment 2 Matthias 2024-05-02 07:51:57 UTC
No, these are not even ported to 6
Comment 3 Matthias 2024-05-02 07:53:32 UTC
Those are the two templates, I mean. Upload Screenshots
Comment 4 Matthias 2024-05-02 07:55:06 UTC
Created attachment 169089 [details]
Plasma QML Applet with QML Extension
Comment 5 Matthias 2024-05-02 07:55:52 UTC
Created attachment 169090 [details]
Plasma QML/C++ Applet
Comment 6 Igor Kushnir 2024-05-02 10:52:57 UTC
Can you find the broken template files in /usr/share/kdevappwizard/templates/ and check which package provides them?

On my Qt 5 system different templates are provided by various packages: kdevelop, plasma-framework5, kio5, kirigami2, kdeplasma-addons, etc.
Comment 7 Igor Kushnir 2024-05-02 10:53:50 UTC
Found newer templates in the Plasma/6.0 branch: https://invent.kde.org/plasma/libplasma/-/tree/Plasma/6.0/templates
Comment 8 Matthias 2024-05-02 17:41:17 UTC
https://invent.kde.org/plasma/libplasma/-/tree/Plasma/6.0/templates/cpp-plasmoid6
https://invent.kde.org/plasma/libplasma/-/tree/Plasma/6.0/templates/qml-plasmoid6-with-qml-extension

Those are the two in question. 
I found, that the CMakeLists.txt in /plugin and /src had been adjusted by Nicolas 5 months ago, the CMakeLists.txt in the upper directory, has not seen such an adjustment. Could it be, that this is the cause?
Comment 9 Igor Kushnir 2024-05-02 17:49:32 UTC
(In reply to Matthias from comment #8)
> I found, that the CMakeLists.txt in /plugin and /src had been adjusted by
> Nicolas 5 months ago, the CMakeLists.txt in the upper directory, has not
> seen such an adjustment. Could it be, that this is the cause?
Sorry, I know almost nothing about plasmoids. Maybe someone else can answer that question and fix the issue.
Comment 10 Bug Janitor Service 2024-05-12 22:45:19 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/libplasma/-/merge_requests/1124
Comment 11 Nicolas Fella 2024-11-11 12:46:48 UTC
Git commit 23247f4d9b9a6080b06b8073ea37046c0c3e2c8b by Nicolas Fella.
Committed on 11/11/2024 at 12:44.
Pushed by nicolasfella into branch 'master'.

Fix applet template

M  +8    -7    templates/cpp-plasmoid6/CMakeLists.txt

https://invent.kde.org/plasma/libplasma/-/commit/23247f4d9b9a6080b06b8073ea37046c0c3e2c8b