Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: LETARTARE on January 18, 2015, 11:01:31 am

Title: disappearance of script plugin menu ?
Post by: LETARTARE on January 18, 2015, 11:01:31 am
Hello,
for Code::Blocks svn 10035
Compiled by MinGW32 TDM 4.7.1 with wxWidgets 2.8.12 and VISTA

If you disable a plugin (or upload a new)
by example :
Quote
Plugins->manage plugins...->Koders query ->disable
The menu plugin scripts disappear :
Quote
Plugins->Find broken files in project
Project->Create package distribution

You must restart 'Code::Blocks' to recharge the missing menus.

Can you check your version?

Best regards

Title: Re: disappearance of script plugin menu ?
Post by: BlueHazzard on January 22, 2015, 01:51:18 am
Same here...
i think this is a logik error: In the function
void MainFrame::PluginsUpdated(cb_unused cbPlugin* plugin, cb_unused int status) in main.cpp:883
the menu is recreated, but the scripting plugins are just missing...

This function gets called every time a binary plugin gets installed/de installed (the event cbEVT_PLUGIN_INSTALLED is fired)

greetings
Title: Re: disappearance of script plugin menu ?
Post by: stahta01 on January 22, 2015, 03:08:38 am
Duplicated the missing "Find broken files in project" issue using self compiled CB SVN 9781.

Duplicated with release 13.12.

Duplicated with release 12.11.

Only saw the issue when deactivating a plugin; did NOT test any other way to cause problem.

Tim S.
Title: Re: disappearance of script plugin menu ?
Post by: LETARTARE on January 22, 2015, 04:20:00 pm
Hello,
thank you for checking.
Pending the amendment, I propose a solution that avoids restarting 'C::B'.
Tie all plugin scripts in 'Settings->Scripting'.
If the problem occurs, then just do it 'Settings->Scripting' then click to confirm the scripts then ok.
Thank you again.
Title: Re: disappearance of script plugin menu ?
Post by: BlueHazzard on January 22, 2015, 11:05:00 pm
( FYI: I fixed this bug in my sqrat port of c::b  https://github.com/bluehazzard/codeblocks_sf/commit/ae676a8e5310adfcb7a9986ec6da8326104d86b3 /branch: cb_push_candidate)
I don't think that there is a easy fix in the current version of c::b (but i took only a little look)

greetings
Title: Re: disappearance of script plugin menu ?
Post by: MortenMacFly on January 23, 2015, 09:22:02 am
( FYI: I fixed this bug in my sqrat port of c::b  https://github.com/bluehazzard/codeblocks_sf/commit/ae676a8e5310adfcb7a9986ec6da8326104d86b3 /branch: cb_push_candidate)
Good spot. Reminds me: What is the status of this branch and who is actively monitoring it? I did it once but it conflicted with my own changes so I had dropped it that time.

Do you have a "ToDo" / "Open Items" list? What is the meaning of your different GIT branches? Whats the one to start with?

This work really shouldn't get lost...
Title: Re: disappearance of script plugin menu ?
Post by: BlueHazzard on January 23, 2015, 01:44:14 pm
For the process see here:
http://forums.codeblocks.org/index.php/topic,18933.msg136004.html#msg136004