Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
message reporting from script-fu
#1
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
Reply
#2
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).
Reply
#3
(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
Reply
#4
Maybe what's needed in my case is a "message console" rather than an "error console".
Reply


Forum Jump: