pyblish / pyblish-base

Pyblish base library - see https://github.com/pyblish/pyblish for details.
Other
123 stars 60 forks source link

UX bug with pyblish plugins with same classname #395

Open hannesdelbeke opened 8 months ago

hannesdelbeke commented 8 months ago

if 2 pyblish plugins have the same class name, they don't load in Pyblish. But since no error is thrown, it's hard to spot why the plugins don't load.

A suggestion would be to e.g. print an error message to the console.

(not tested with logging.debug yet, which by default is not enabled.)

BigRoy commented 8 months ago

It should be hitting this by default, skipping the duplicates and debug logging the entry.

hannesdelbeke commented 8 months ago

Thank you for locatting the exact line that handles this Roy.

It likely does hit that. Since log.debug is not enabled by default, the maya console prints nothing. Would changing this to a debug.warning (so it prints by default to the console) be a worse way of handling this?

This is a similar issue to this ticket https://github.com/pyblish/pyblish-base/issues/374