Bug 366363

Summary: Does not load qml files to show in the plasmoid due to new PluginCheck feature
Product: [Applications] kdeconnect Reporter: Eldhrimer <vico.220895>
Component: plasmoidAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED INTENTIONAL    
Severity: grave CC: aleixpol
Priority: NOR    
Version First Reported In: 1.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Eldhrimer 2016-08-02 21:41:59 UTC
I just compiled the 1.0 release (Fedora latest is 0.9.6 in its repo). Everything went okay except for the optional Wayland requisite (wich I didn't have).
Relogged and there was the next error  message in the plasmoid (in spanish):
--------------------------------------
Error al cargar archivo QML: file:///usr/local/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/main.qml:48:34: Type FullRepresentation unavailable
file:///usr/local/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/FullRepresentation.qml:55:23: Type DeviceDelegate unavailable
file:///usr/local/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/DeviceDelegate.qml:72:17: Type Sftp unavailable
file:///usr/local/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/Sftp.qml:26:1: PluginChecker is not a type
---------------------------------------
Then I made a backup of the files, and loaded the old qml files that were in the 0.9.6 installation.
Refreshed the Plasma Desktop and everything went OK, except for the fact that there was no Find My Phone feature (obviously). I retried loading up again the backup. Same error.
Also, when right-clicked and selected "Settings" it just showed me the keyboard shorcut panel, not the kdeconnect module.


Reproducible: Always

Steps to Reproduce:
1. Load up the new QML files.

Actual Results:  
Plasmoid displayed an error message. No KCM.

Expected Results:  
Should have just opened the plasmoid normally.

KDE Plasma 5.7.2
Comment 1 Aleix Pol 2016-08-03 09:05:14 UTC
Are you sure it's not because you're trying to install it in /usr/local?
Comment 2 Eldhrimer 2016-08-03 15:03:01 UTC
I just 'make install'd in /usr/ and the same error appeared:
---------------------------------
Error al cargar archivo QML: file:///usr/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/main.qml:48:34: Type FullRepresentation unavailable
file:///usr/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/FullRepresentation.qml:55:23: Type DeviceDelegate unavailable
file:///usr/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/DeviceDelegate.qml:94:13: Type Battery unavailable
file:///usr/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/Battery.qml:26:1: PluginChecker is not a type
------------------------------------------
 Also if I uninstall the distro given package, a new error pops up:
-------------------------------------------
Error al cargar archivo QML: file:///usr/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/main.qml:24:1: module "org.kde.kdeconnect" is not installed
-------------------------------------------
So... It's failing to import the module that it is? I'm a bit confused.
Comment 3 Aleix Pol 2016-08-03 15:15:56 UTC
Can you paste us the output of executing: plasmawindowed org.kde.kdeconnect
Comment 4 Eldhrimer 2016-08-03 21:56:42 UTC
Here it is:
------------------------------------------
Error al cargar archivo QML: file:///usr/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/main.qml:24:1: module "org.kde.kdeconnect" is not installed
------------------------------------------
Comment 5 Eldhrimer 2016-08-04 21:00:40 UTC
Sorry, I just comment what showed up in the window. The console output was:
-----------------
No metadata file in the package, expected it at: "/usr/local/share/plasma/plasmoids/org.kde.kdeconnect//metadata.desktop"
No metadata file in the package, expected it at: "/usr/local/share/plasma/plasmoids/org.kde.kdeconnect//metadata.desktop"
org.kde.plasma: invalid fallback path in  "/usr/local/share/plasma/plasmoids/org.kde.kdeconnect/"
Unable to load applet "org.kde.kdeconnect" with arguments ()
----------------
Comment 6 Eldhrimer 2016-08-08 03:44:18 UTC
Ok, since no additional help has been provided, I'm returning to use 0.9.6.
Hope to see this update soon in the repo.
Comment 7 Aleix Pol 2016-08-08 23:38:48 UTC
Error al cargar archivo QML: file:///usr/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/main.qml:24:1: module "org.kde.kdeconnect" is not installed
 This clearly shows it's wrongly installed. It's a set up issue.