News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

[linux] Plugin does not get installed correctly after uninstall

Started by BlueHazzard, October 16, 2017, 12:11:21 AM

Previous topic - Next topic

BlueHazzard

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
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?

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

BlueHazzard

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...

ollydbg

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:
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

ollydbg

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

BlueHazzard

@ollydbg: yes, this is the error message i see on windows...