Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: BlueHazzard on October 16, 2017, 12:11:21 am

Title: [linux] Plugin does not get installed correctly after uninstall
Post by: BlueHazzard on October 16, 2017, 12:11:21 am
Hi,
If i uninstall a plugin, and reinstall it again with a *.cbplugin file, i get a error message that the plugin is not installed correctly. After closing codeblocks and reopening it, the plugin works correctly. As far as i can tell all resources are copied correctly and the library is loaded, but the
Code
namespace
{
    PluginRegistrant<pluginname> reg(_T("pluginname"));
}
is not called and for this m_RegisteredPlugins in sdk/pluginmamager.cpp:1025 is empty and for this the plugin is not detected as loaded.

To reproduce:
1) Create a *.cbplugin archive
2) Install the plugin over Plugins->Manage plugins...->Install
3) Close codeblocks
4) open codeblocks
5) Uninstall the plugin over Plugins->Manage plugins...->Uninstall
6) Reinstall the plugin over Plugins->Manage plugins...->Install

can someone reproduce this?
Title: Re: [linux] Plugin does not get installed correctly after uninstall
Post by: oBFusCATed on October 16, 2017, 01:23:09 am
Windows or linux?
Title: Re: [linux] Plugin does not get installed correctly after uninstall
Post by: BlueHazzard on October 16, 2017, 01:55:04 am
linux only

[Edit:] On windows you get a error message about the current resource zip archive is still in memory. But this is a different bug, not related to this and i remember to have fixed it a long time ago...
Title: Re: [linux] Plugin does not get installed correctly after uninstall
Post by: ollydbg on October 16, 2017, 01:58:26 am
Works fine under Windows(latest nightly build).

But I see a crash after I uninstall the BrowserTrack plugin, and click the "install new" button.  :(
So, I have to restart C::B, and install it again. 

EDIT: I just tried it again, I see that C::B always crash when I uninstall the BrowseTrack plugin.

EDIT2: I tried Abbreviation plugin, only a Error message shown up, see screen shot below:
Title: Re: [linux] Plugin does not get installed correctly after uninstall
Post by: ollydbg on October 16, 2017, 02:09:41 am
This is related issue: issue about Memory VFS already contains file xxx when re-enable a plugin (http://forums.codeblocks.org/index.php/topic,20952.0.html)
Title: Re: [linux] Plugin does not get installed correctly after uninstall
Post by: BlueHazzard on October 16, 2017, 04:26:36 am
@ollydbg: yes, this is the error message i see on windows...