Gimp-Forum.net
message reporting from script-fu - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP)
+---- Forum: Scripting questions (https://www.gimp-forum.net/Forum-Scripting-questions)
+---- Thread: message reporting from script-fu (/Thread-message-reporting-from-script-fu)



message reporting from script-fu - Ferris - 12-29-2020

Hi,

Is there any method of stopping gimp from
prefixing every message I send to the error console with...

!  scriptName Warning

...it's getting me down. Sad


RE: message reporting from script-fu - Ofnuts - 12-29-2020

None I know of. But then you shouldn't issue many messages, because if you haven't got the Gimp console up you would get a modal dialog instead.

Since you are on Linux, if you are using these messages to debug maybe you can  use (display ...) and (newline) instead to print things on stdout. If you start Gimp from a terminal, this should show up in said terminal (at least this is how python-fu behaves). The only downside of this solution is that you have to disable it for use by Windows users, because after 4K of output the script stalls (in my Python scripts I only output things if a specific environment variable is set).


RE: message reporting from script-fu - Ferris - 12-29-2020

(12-29-2020, 05:51 PM)Ofnuts Wrote: None I know of. But then you shouldn't issue many messages, because if you haven't got the Gimp console up you would get a modal dialog instead.

Since you are on Linux, if you are using these messages to debug maybe you can  use (display ...) and (newline) instead to print things on stdout. If you start Gimp from a terminal, this should show up in said terminal (at least this is how python-fu behaves). The only downside of this solution is that you have to disable it for use by Windows users, because after 4K of output the script stalls (in my Python scripts I only output things if a specific environment variable is set).

ok, thanks. I do have the error console up.
I edit a script, reload it, watch how it progresses on an image, read the messages for info and debugging.

Tried the console option, almost worked.
I get lots of window pop up messages in gimp and messages in the console.
used (gimp-message-set-handler 0).

Also the console is littered with messages from...
using gegl copy
using gegl copy
using gegl copy
using gegl copy
using gegl copy
using gegl copy
using gegl copy
using gegl copy


RE: message reporting from script-fu - Ferris - 12-29-2020

Maybe what's needed in my case is a "message console" rather than an "error console".