Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: oBFusCATed on October 13, 2009, 03:15:45 pm

Title: Reloading Script plugin
Post by: oBFusCATed on October 13, 2009, 03:15:45 pm
I have to develop a scrip plugin that packs all files in the workspace in a archive file so I can build it on another machine.

And I need to reload the plugin while I develop it, to see if the changes I've made are correct, how can I do that.
I've tried settings -> scripts -> remove and the add, but it doesn't work.
Title: Re: Reloading Scrip plugin
Post by: Jenna on October 13, 2009, 03:42:50 pm
Do you know, that we have a simple script-plugin, that packs all project (not wokspace) files in a zip-archive ?
You can enable it via "Settings -> Scripting... -> General -> Add".

Its called make_dist.script and can be found inside the codeblocks/share/scripts-folder.
On linux it's normally in $prefix/codeblocks/share/scripts, on windows in share/CodeBlocks/scripts below the codeblocks-installation directory.

About your question:
I don't know at the moment, I have to look into the sources, but have no time (still at work).

EDIT:
The scripts ad a menu-entry to the Projects-menu.
Title: Re: Reloading Scrip plugin
Post by: oBFusCATed on October 13, 2009, 03:46:18 pm
Yes, I've used it before but couldn't remember how it was called  :?

Thanks...


edit1:
It seems that I can't get the list of projects from the project manager in a script :(
Title: Re: Reloading Script plugin
Post by: oBFusCATed on October 14, 2009, 01:47:05 pm
I've added the bindings, will show the patch later...
But now I have another problem:

In script console I type:

Log(_T("test") == _T("test") ? _T("yes") : _T("no"));

and in the log I see "no", but if I type:

Log(1 == 1 ? _T("yes") : _T("no"));

I see "yes" in the log.
It seems that there is a wxString_OpCmp, but the debugger doesn't stop on the breakpoint, I've set there :(
So the question is how to compare wxStrings in squirrel?
Title: Re: Reloading Script plugin
Post by: oBFusCATed on October 15, 2009, 10:57:42 pm
I've uploaded a patch for the bindings: https://developer.berlios.de/patch/?func=detailpatch&patch_id=2840&group_id=5358
Title: Re: Reloading Script plugin
Post by: oBFusCATed on November 11, 2009, 06:53:34 pm
Hello, Morten I've seen that you have committed my patch for the binding, but have you looked at this problem:
Log(_T("test") == _T("test") ? _T("yes") : _T("no"));