errbot icon indicating copy to clipboard operation
errbot copied to clipboard

Add doc warning for risky plugin names (related to #1694)

Open somsomin opened this issue 8 months ago • 1 comments

This PR resolves Issue #1694 by adding a warning for plugin folders named lib, test, or utils. These names may cause plugin loading conflicts due to Python module resolution or backend-specific files (e.g., Slack's lib.py).

I reproduced the issue by creating a plugin in a lib/ folder, which failed to load silently. I added a log.warning(...) message in plugin_manager.py to alert developers early. I also added a documentation warning in docs/plugindevelopment.rst to guide plugin authors.

Let me know if you'd like anything adjusted.

somsomin avatar Apr 24 '25 04:04 somsomin

If you intended to push code changes to this PR, you should adjust the title as it no longer only addresses documentation.

nzlosh avatar Apr 26 '25 06:04 nzlosh