Gimp-Forum.net
Debug plugin registration failure - 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: Debug plugin registration failure (/Thread-Debug-plugin-registration-failure)



Debug plugin registration failure - snapzilla - 10-02-2020

GIMP 2.10.2 (revision 1)
Windows 10

When GIMP fails to register a plugin where does it reportĀ the reason(s) forĀ failing the registration?


RE: Debug plugin registration failure - Ofnuts - 10-03-2020

It is displayed in the Gimp console, which of course is not that easy to get at in Windows. Technically it is not Gimp that fails to register a plugin, it's the plugin that fails to register to Gimp, because it croaked during the registration process (or on startup when Gimp runs it to let it register). A simple Python syntax error is enough.

See here for some hints.

You can also run the script in a terminal:

Code:
Path\to\Gimp\Python.exe the_script.py

Any major syntax errors that would prevent it to run (unbalanced parentheses or quotes, indentation problems) will show up. If it says it's missing "gimpfu", good news, it can run ("gimpfu" is only available when run from Gimp).


RE: Debug plugin registration failure - snapzilla - 10-03-2020

Thanks for this.

I found another aid to having clean code for my plugin.

I've extended my editor with pylint - just have to scan past all the pdb 'errors'.