Author Topic: Reloading Script plugin  (Read 5454 times)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Reloading Script plugin
« 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.
« Last Edit: October 13, 2009, 05:53:31 pm by 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!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Reloading Scrip plugin
« Reply #1 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Reloading Scrip plugin
« Reply #2 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 :(
« Last Edit: October 13, 2009, 03:54:53 pm by 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!]

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Reloading Script plugin
« Reply #3 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?
(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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Reloading Script plugin
« Reply #4 on: October 15, 2009, 10:57:42 pm »
(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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Reloading Script plugin
« Reply #5 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"));
(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!]