plasma-homeassistant icon indicating copy to clipboard operation
plasma-homeassistant copied to clipboard

[Bug] Error after first install and use

Open McTom234 opened this issue 10 months ago • 8 comments

Describe the bug I added the widget via KDE Discover and added the widget to my homescreen. I get this error:

file:///home/mctom234/.local/share/plasma/plasmoids/com.github.korapp.homeassistant/contents/ui/main.qml:13:25: Type FullRepresentation unavailable

file:///home/mctom234/.local/share/plasma/plasmoids/com.github.korapp.homeassistant/contents/ui/FullRepresentation.qml:66:28: Cannot assign object of type "Action" to property of type "Action_QMLTYPE_115*" as the former is neither the same as the latter nor a sub-class of it.

To Reproduce Steps to reproduce the behavior:

  1. Go to Discover
  2. Click on freshly (first) install the plasmoid
  3. Add the widget to the homescreen
  4. See error

Expected behavior Whatever the widget should do on the first use

Desktop (please complete the following information):

  • Distribution: Arch 6.8.6-zen1
  • KDE Plasma 6.0.3
  • KDE Frameworks 6.1.0

Additional context Maybe I am just missing some configuration steps. I am happy about every hint :smile:

McTom234 avatar Apr 19 '24 23:04 McTom234

I get the same error doing the same steps but while installing the plugin from the file from the kde store directly

chicco-carone avatar Apr 21 '24 14:04 chicco-carone

I'm not able to debug it right now, but I bet it's KDE Framework 6.1 changes.

korapp avatar Apr 22 '24 03:04 korapp

Is anyone experiencing this problem on KDE Plasma 6.0.4 and KDE Frameworks 6.1.0?

korapp avatar May 01 '24 11:05 korapp

Is anyone experiencing this problem on KDE Plasma 6.0.4 and KDE Frameworks 6.1.0?

I am experiencing this problem on KDE Plasma 6.0.4 and KDE Frameworks 6.1.0.

file:///home/ste/.local/share/plasma/plasmoids/com.github.korapp.homeassistant/contents/ui/main.qml:13:25: Type FullRepresentation unavailable

file:///home/ste/.local/share/plasma/plasmoids/com.github.korapp.homeassistant/contents/ui/FullRepresentation.qml:66:28: Cannot assign object of type "Action" to property of type "Action_QMLTYPE_100*" as the former is neither the same as the latter nor a sub-class of it.

SBado avatar May 01 '24 13:05 SBado

No problems with other widgets or the Plasma itself? I see that there have been some problems with the QML cache on Arch, causing similar errors of mismatched types.

korapp avatar May 02 '24 10:05 korapp

No, no other problems at the moment. If it helps, I'm using openSUSE Tumbleweed.

SBado avatar May 02 '24 13:05 SBado

I just tested the installation of a widget from Discover on a freshly installed, latest Tumbleweed (VM) - it works.

Can you check if deleting ~/.cache/plasmashell/qmlcache/ has any effect?

korapp avatar May 03 '24 14:05 korapp

Deleting ~/.cache/plasmashell/qmlcache/ had no effect, but the fact that a fresh install of Tumbleweed was working for you (by the way, thanks for your efforts!) made me realize that maybe I just had to update my packages. After a zypper dup it started working. Thank you!

SBado avatar May 03 '24 21:05 SBado

Same issue here on OpenSUSE Tumbleweed. I keep my system up to date, with at least weekly sudo zypper dup and reboot, and deleting the qmlcache as described above had no effect, even after reinstalling the widget. I finally got it working with:

  1. Uninstall the widget
  2. rm ~/.cache/plasmashell/qmlcache/*
  3. sudo zypper dup
  4. Reboot
  5. Reinstall the widget

Not sure what the magic sauce was, as I'd done each step in isolation several times, but there ya go.

reidprichard avatar May 31 '24 16:05 reidprichard

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jul 01 '24 00:07 github-actions[bot]

Hey @korapp, thanks for your efforts!

Unfortunately, the same error still exists on my system.

I have the following version running currently:

  • Distribution: Arch 6.9.8-zen1
  • KDE Plasma 6.1.2
  • KDE Frameworks 6.3.0
  • Qt: 6.7.2

I tried to remove the qmlcache without success.

I think I have an issue with QML on X11, but it could be a config issue as well. I haven't had time to debug this issue, it only exists on X11 tough. One comment recommended disabling the QML disk cache - I will give that a try, but since I removed the qmlcache manually, I don't have high expectations...

McTom234 avatar Jul 12 '24 06:07 McTom234

According to this issue, it should be fixed in Frameworks 6.4.

Until you get it, you can edit the plasmoid code locally - remove the Action and helpfulAction property

Its only use is to open the Readme file in case of missing libraries.

korapp avatar Jul 15 '24 17:07 korapp

Hey @korapp, thanks for your message. I installed version 6.4 and finally, everything works now! Thank you for your help and creating the widget at first!

McTom234 avatar Jul 16 '24 10:07 McTom234

I'm using framework 6.4, but the error seems to still be around even on this version. (Plasma 6.1.4)

dgalli1 avatar Aug 12 '24 15:08 dgalli1