Bug 372494

Summary: Error loading QML file: PluginChecker is not a type When compiling from source 1.0.2
Product: [Applications] kdeconnect Reporter: David Guerrero <dg3edg>
Component: commonAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED WORKSFORME    
Severity: major CC: aleixpol, dg3edg
Priority: NOR Keywords: triaged
Version First Reported In: 1.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of plasmoid

Description David Guerrero 2016-11-15 03:39:20 UTC
Created attachment 102242 [details]
Screenshot of plasmoid

Greetings

I have Kubuntu 16.04.1 and I'm trying to update KDE Connect from the source file (just as http://askubuntu.com/questions/817566/how-to-install-kde-connect-1-0-on-kubuntu ).

I have successfully set up the environment for compiling using [this guide from KDE](https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source) and I'm able to run the cmake to the source files [as you can see here.](http://paste.ubuntu.com/23478114/)

Then, I proceed to install using checkinstall and [gives this output](http://paste.ubuntu.com/23478142/) and proceed to reboot to apply the changes on the kdeconnect, but after rebooting, the plasmoid brings these errors:

    Error loading QML File: file:///usr/local/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/main.qml:48:34: Type FullRepresentation unavaliable
    Error loading QML File: file:///usr/local/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/FullRepresentation.qml:55:23: Type DeviceDelegate unavaliable
    Error loading QML File: file:///usr/local/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/DeviceDelegate.qml:92:13: Type Battery unavaliable
    file:///usr/local/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/Battery.qml:26:1: PluginChecker is not a type

I tried to "debug" starting the plasmoid from terminal, and this is the output:

    dguerrero@XPS:~$ plasmawindowed org.kde.kdeconnect
    org.kde.plasma: unversioned plugin detected, may result in instability
    org.kde.plasma: unversioned plugin detected, may result in instability
    org.kde.plasma: requesting config for "KDE Connect" without a containment!
    Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
    Error loading QML file: 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:70:17: Type Sftp unavailable
    file:///usr/local/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/Sftp.qml:26:1: PluginChecker is not a type

If I run ls to the route, all files are there

    root@XPS:~# ls -l /usr/local/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/
    total 32                                                                          
    -rw-r--r-- 1 root root 2351 nov 11 08:20 Battery.qml                              
    -rw-r--r-- 1 root root 1162 nov 11 08:20 CompactRepresentation.qml                
    -rw-r--r-- 1 root root 4998 nov 11 08:20 DeviceDelegate.qml                       
    -rw-r--r-- 1 root root 1648 nov 11 08:20 FindMyPhone.qml                          
    -rw-r--r-- 1 root root 1801 nov 11 08:20 FullRepresentation.qml
    -rw-r--r-- 1 root root 2165 nov 11 08:20 main.qml
    -rw-r--r-- 1 root root 1598 nov 11 08:20 Sftp.qml

I found PluginChecker in /usr/local/lib/x86_64-linux-gnu/qml/org/kde/kdeconnect/PluginChecker.qml

    root@XPS:~# find /usr/ -name PluginChecker*
    /usr/local/lib/x86_64-linux-gnu/qml/org/kde/kdeconnect/PluginChecker.qml          
    
I guessed it shouldn't be there, so i copied it to /usr/local/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/

As soon as I copied it there, plasmoid came to life.
Inmediately, I tried to pair my Sony Xperia Z2 (using android app v1.4.4 from play store) but after a few seconds after paired, disconnects for about minute, but I'm not sure if that is related with this same problem (hadn't that problem with 0.8 version and same app).


Reproducible: Always

Steps to Reproduce:
1. Purge current packages
2. Compile and install updated source packages


Actual Results:  
Plasmoid displayed multiple error messages.

Expected Results:  
Plasmoid loaded succesfully and show paired device.

Kubuntu 16.04.1
KDE Frameworks 5.18.0
KDE Plasma 5.5.5
Qt 5.5.1 (built against 5.5.1)
Kernel 4.4.0-47-generic
Comment 1 Aleix Pol 2016-11-16 00:11:09 UTC
Hi, you compiled it yourself, right?

Can you show me your install_manifest.txt? It should be in the root of your kdeconnect-kde build directory.

The PluginChecker is exported by the lib64/qml/org/kde/kdeconnect/qmldir plugin. 

Do you have the distribution's kdeconnect-kde installed as well? Could it be using the wrong library?
Comment 2 Aleix Pol 2018-01-16 22:39:38 UTC
Please answer the question.
Comment 3 Andrew Crouthamel 2018-09-28 03:33:48 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Andrew Crouthamel 2018-10-29 02:22:00 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!