Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Enhancements to debian packages
Jenna:
C::B ships with many plugins, but not all users need all of them.
At the moment the user can disable them via the "Plugin" menu.
But the plugins will still be loaded and this seems to increase the load-time on some systems.
The only solution to prevent plugins from loading is to delete (or rename) the according library.
I just added debconf-scripts that let the user decide, which plugins should be loaded on start.
I do this by renaming the (unchecked) libs to *.do_not_load in the postinst-script, so they can be reenabled at any ty by simply running "dpkg-reconfigure codeblocks" or "dpkg-reconfigure codeblocks-contrib".
oBFusCATed:
--- Quote from: jens on February 07, 2011, 09:36:09 am ---The only solution to prevent plugins from loading is to delete (or rename) the according library.
--- End quote ---
Replace 'The only' with 'The easiest'.
The current plugin loading code/scheme is wrong/broken, but I'm sure no one is going fix it...
ollydbg:
--- Quote from: jens on February 07, 2011, 09:36:09 am ---The only solution to prevent plugins from loading is to delete (or rename) the according library.
--- End quote ---
we can create an "allow plugin list", so we only load these plugins.
BTW:
it was really annoying when debugging C::B with a lot of plugins under windows. the load time of gdb will be really slow.
Jenna:
--- Quote from: oBFusCATed on February 07, 2011, 09:56:46 am ---
--- Quote from: jens on February 07, 2011, 09:36:09 am ---The only solution to prevent plugins from loading is to delete (or rename) the according library.
--- End quote ---
Replace 'The only' with 'The easiest'.
The current plugin loading code/scheme is wrong/broken, but I'm sure no one is going fix it...
--- End quote ---
Maybe some day, if someone (me ?) finds the time.
At the moment there is another (most likely more important) issue to look into:
If compiler-library is removed, you can not open any files with "File->Open" or from recent file list, because C::B crashes immediately.
That's the cause, why I inhibit renaming of compiler pluzgin via debconf.
--- Quote from: ollydbg on February 07, 2011, 10:10:00 am ---
--- Quote from: jens on February 07, 2011, 09:36:09 am ---The only solution to prevent plugins from loading is to delete (or rename) the according library.
--- End quote ---
we can create an "allow plugin list", so we only load these plugins.
BTW:
it was really annoying when debugging C::B with a lot of plugins under windows. the load time of gdb will be really slow.
--- End quote ---
The clean soultion is not to load the library on startup, if the plugin is disabled and if possible unload it, if it gets disabled on runtime.
ollydbg:
@jens
several days ago, I used to change the code to let some plugin(only) loaded.
see here:
http://forums.codeblocks.org/index.php/topic,12951.msg87301.html#msg87301
Navigation
[0] Message Index
[#] Next page
Go to full version