Bug 429846 - Latte dock doesnt load items correctly and displays error message on plasmoids
Summary: Latte dock doesnt load items correctly and displays error message on plasmoids
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Plasma
Component: plasmoid (show other bugs)
Version: git (master)
Platform: Arch Linux Linux
: NOR grave
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-30 11:51 UTC by Nico
Modified: 2020-11-30 19:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Layout used (7.78 KB, text/plain)
2020-11-30 16:07 UTC, Nico
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nico 2020-11-30 11:51:37 UTC
SUMMARY
Latte plasmoids show dont open up correctly with the error message "Error loading QML file://ust/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/main.gml:1249:9: Type.AppleItem unavailable." on both Latte dock & panel which effectively prevents usage.

A screenshot is available here: https://forum.garudalinux.org/t/latte-dock-is-not-working-after-update-11-30-2020/1589

STEPS TO REPRODUCE
1. Update to latte-dock-git r4605.0f06f008-1
2. Relog

OBSERVED RESULT
See above linked screenshot. 
Latte dock items dont load corrently. 
"Error loading QML file://ust/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/main.gml:1249:9: Type.AppleItem unavailable." showing on both dock & bar

EXPECTED RESULT
Latte load items correctly

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Garuda Linux, kernel 5.9.11 5.20.3
(available in About System)
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.76
Qt Version: 5.15.2

Reverting to latte-dock-git-r4597.ac2ccc13-1 fixes the issue.
Comment 1 Michail Vourlakos 2020-11-30 15:38:12 UTC
I can not reproduce it...

try to clear cache if it makes any difference with:

latte-dock --cc
Comment 2 Nico 2020-11-30 16:07:48 UTC
Created attachment 133753 [details]
Layout used

That's the layout which triggers the issue
Comment 3 Nico 2020-11-30 16:08:15 UTC
Clearing cache does not make a difference.
Comment 4 Kan 2020-11-30 16:12:58 UTC
After upgrading to r4605.0f06f008-1, I am getting the same QML error as Nico reported. I did clear all my .cache, but the error still persists.

STEPS TO REPRODUCE
1. Update to latte-dock-git r4605.0f06f008-1
2. Relog

OBSERVED RESULT
See above linked screenshot. 
Latte dock items dont load corrently. 
"Error loading QML file://ust/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/main.gml:1249:9: Type.AppleItem unavailable." showing on both dock & bar

EXPECTED RESULT
Latte load items correctly

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: EndeavourOS, Kernel Version 5.9.10
Plasma: 5.20.3
KDE Framworks Version: 5.76.0
QT Version: 5.15.2
Comment 5 Michail Vourlakos 2020-11-30 16:24:08 UTC
Do you build Latte by yourself?
Comment 6 Kan 2020-11-30 16:27:35 UTC
(In reply to Michail Vourlakos from comment #5)
> Do you build Latte by yourself?

I built mine from AUR, latte-doc-git.
Comment 7 Michail Vourlakos 2020-11-30 16:34:44 UTC
(In reply to Kan from comment #6)
> (In reply to Michail Vourlakos from comment #5)
> > Do you build Latte by yourself?
> 
> I built mine from AUR, latte-doc-git.

There is a chance that AUR might be missing something.
Comment 8 Michail Vourlakos 2020-11-30 16:40:50 UTC
the attached layout works just for me...

please try to install Latte git version locally in your system without using any AUR infrastructure.
Comment 9 Michail Vourlakos 2020-11-30 16:48:24 UTC
found it ... it is my fault, I will fix it in a sec.
Comment 10 Michail Vourlakos 2020-11-30 16:49:22 UTC
Git commit af2ff10c429d6b4d4480fce41b927c8822f577fe by Michail Vourlakos.
Committed on 30/11/2020 at 16:48.
Pushed by mvourlakos into branch 'master'.

fix containment Debugger renaming

M  +2    -2    containment/package/contents/ui/applet/AppletItem.qml
M  +5    -5    containment/package/contents/ui/layouts/LayoutsContainer.qml

https://invent.kde.org/plasma/latte-dock/commit/af2ff10c429d6b4d4480fce41b927c8822f577fe
Comment 11 Nico 2020-11-30 17:20:27 UTC
Can confirm that this fixes the issue. Thanks for the quick fix!
Comment 12 Kan 2020-11-30 19:00:08 UTC
Can confirm all is fixed with the update. Thank you so much!