disable certain plugins

Julian Bäume julian at svg4all.de
Fri Sep 10 16:11:46 UTC 2010


On Friday 10 September 2010 17:12:04 Andreas Pakulat wrote:
> On 10.09.10 16:43:12, Julian Bäume wrote:
> > On Friday 10 September 2010 08:59:40 Andreas Pakulat wrote:
> > > On 10.09.10 04:14:05, Julian Bäume wrote: 
> > > > But
> > > > there are some plugins I can’t switch off. In the list of loaded
> > > > plugins, I can find some plugins, that I don’t expect to be there.
> > > > In the Modules configuration, I have the Qt documentation, CMake
> > > > documentation and cvs and svn plugins disabled, but they show up in
> > > > that list of loaded plugins.
> > > 
> > > You mean you disabled them under Settings->Configure KDevelop->Plugins
> > > and they still show up after a restart under Help->Loaded Plugins? That
> > > would be a bug.
> > 
> > This still happens, I will try to investigate. I removed all the dirs in
> > the sessions directory to have a clean start. When starting KTechLab
> > (the program, I’m talking about the whole time ;)), in the Help->Loaded
> > Plugins dialog, there are the 2 documentation plugins loaded. (CMake and
> > Qt) I think, that shouldn’t happen.
> 
> So they're not in the list of loaded plugins you return from
> defaultPlugins? At least disabling them manually seems to work (with
> kdevelop 4.0) here, they don't show up on next start.
 
I use the defaultPlugins to load one plugin, specific to the application. 
Nothing more. I can confirm, that the plugins get unloaded, when activating 
the plugin in the settings and deactivating them again. (no restart required 
here)

> > Any hints, why this might be? This isn’t importent, yet, so
> > I might find some time to have a deeper look into this.
> 
> If its about first start in a new session the logic of that piece of code
> is kinda complicated as it merges the existing info about enabled/disabled
> plugins with the list of default plugins. Possibly something is wrong
> there, the code in question is kdevplatform/shell/plugincontroller.cpp in
> PluginController::initialize().

Thats, where I would have started looking. :) I suspect the problem to be 
related to the DocumentationView. I have this ToolView active. I just checked 
the source and found it. The 
Shell::DocumentationController::documentationProviders() uses 
IPluginController::allPluginsForExtension() to find all documentation 
providers. IMHO it should only query all loaded plugins for the 
IDocumentationProvider interface.

bye then
julian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20100910/12b68917/attachment.sig>


More information about the KDevelop-devel mailing list