Bug 512005

Summary: Layout use of addWidget nullifies defined panel - javascript
Product: [Plasma] plasmashell Reporter: Jeff Hodd <jghodd>
Component: ScriptingAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: major CC: jghodd, kde, nate
Priority: NOR Keywords: regression
Version First Reported In: 6.5.0   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: tar file containing layout and l-and-f portions of the theme.

Description Jeff Hodd 2025-11-12 18:41:09 UTC
Created attachment 186730 [details]
tar file containing layout and l-and-f portions of the theme.

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
I have a layout-template and a look-and-feel that work together to install a top panel, 2 widgets on the desktop and the related wallpaper. When plasma was updated to 6.5, this theme stopped working. Essentially, I can get either the top panel, or the widgets, but not both. If the code for creating the panel and the code for installing the widgets are both present, only the widgets are installed, and the panel is nowhere to be seen. If I remove the code to install the widgets, the panel shows up. I don't know if this is a bug or a change in the API, but over the past month I've tried rearranging the javascript code every way I could think of, and still the same pattern held - either the widgets or the panel but not both. There is a single exception: if I run the theme with both the panel and the widgets code, only the widgets show up, but... if I run plasma-interactiveconsole and execute only "var panel = new Panel;", the panel shows up. Weird. But it does tell me that the code is correctly creating all components. Is there something I'm missing here?

STEPS TO REPRODUCE
1. Open SystemSettings->Global Themes
2. Run Bslx_SouthwestCanyon, loading all options

OBSERVED RESULT
Only the widgets appear on the screen. The top panel is missing.

EXPECTED RESULT
Both widgets and the top panel should appear.

SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 6.17.7
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19
Qt Version: 6.10

ADDITIONAL INFORMATION