Review Request 122874: for plugincontroller.cpp

Guy Maurel guy-kde at
Wed Mar 18 17:08:51 UTC 2015

This is an automatically generated e-mail. To reply, visit:

(Updated March 18, 2015, 5:08 p.m.)

Review request for KDevelop, Alex Richardson and Milian Wolff.


Please set the correct group next time, added.

Repository: kdevplatform


9. 3. 2015

As a newcomer I don't set all the environment variables I should have set!
This gives me the opportunity to check the error messages I might get.

So happens to me as I start kdevelop.
I get a window but it doesn't really work.
I just get the error message:
Can't load plugin "KDevXyz123" because a factory to load the plugin could not be obtained: "The shared library was not found."

This is for a newcomer as I too little help.

My proposal generates a longer message such as:
Can't load plugin "KDevXyz123" "The shared library was not found." 
Plugin search paths are ("/usr/lib/qt/plugins", "/usr/local/bin", "/home/guy-kde/.kde/lib/kde4/plugins", "/usr/lib/kde4/plugins") 
The environment variable QT_PLUGIN_PATH might be not correctly set
And some more...

I put this before the line:
    auto factory = loader.factory();

because it is not wise to look for a factory if the loader is not correct.

The method PluginController::loadPluginInternal( const QString &pluginId )
returns a IPlugin *, which might be nullptr.

Some of the calls of this method take care of the return value, some others not.
Should it be wise to care care at every calls?


  shell/plugincontroller.cpp 362bfb07cea3ae10921027a6f41f4d47913eed7c 




Guy Maurel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the KDevelop-devel mailing list