Author Topic: [linux] Plugin does not get installed correctly after uninstall  (Read 3842 times)

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
[linux] Plugin does not get installed correctly after uninstall
« 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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: [linux] Plugin does not get installed correctly after uninstall
« Reply #1 on: October 16, 2017, 01:23:09 am »
Windows or linux?
(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!]

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: [linux] Plugin does not get installed correctly after uninstall
« Reply #2 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...
« Last Edit: October 16, 2017, 01:57:33 am by BlueHazzard »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: [linux] Plugin does not get installed correctly after uninstall
« Reply #3 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:
« Last Edit: October 16, 2017, 02:05:45 am by 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.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
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.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: [linux] Plugin does not get installed correctly after uninstall
« Reply #5 on: October 16, 2017, 04:26:36 am »
@ollydbg: yes, this is the error message i see on windows...