Bug 512258 - NoticesView.qml uses Warnings enum which is not available
Summary: NoticesView.qml uses Warnings enum which is not available
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Weather widget (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-17 19:42 UTC by cwo
Modified: 2025-11-18 22:36 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cwo 2025-11-17 19:42:11 UTC
SUMMARY

I get lots of errors like 

qrc:/qt/qml/plasma/applet/org/kde/plasma/weather/NoticesView.qml:41: ReferenceError: Warnings is not defined

on both my computer with a master build and on stock Fedora.

I did not get these earlier, when no weather warning was in effect. The warning itself works, but there does not seem to be a color-coded icon (as the source assignment fails).

The enum is defined in warnings.h, but I'm not sure it's exported, and in any case the qml file (nor any other in the widget) does not import a qml module that would make it available.

STEPS TO REPRODUCE
1.  Have a weather warning for your location
2.  Have Weather widget enabled 

OBSERVED RESULT

runtime error in log, no icon 

EXPECTED RESULT

no runtime error, but icon

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

ADDITIONAL INFORMATION