User forums > Using Code::Blocks

Reloading Script plugin

(1/2) > >>

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

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

oBFusCATed:
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 :(

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

oBFusCATed:
I've uploaded a patch for the bindings: https://developer.berlios.de/patch/?func=detailpatch&patch_id=2840&group_id=5358

Navigation

[0] Message Index

[#] Next page

Go to full version