Open dgw opened 5 years ago
Punted, per IRC. This will allow time for Exirel to develop a better solution, without starting with a kludge first.
Months later, and I'm still not sure how to fix that exactly.
Yup, year later, still no idea how to approach that properly.
Let's revisit this after we drop old Python crap for 8.0. If enough EOL Python versions go away, this might be simpler.
Here again from the future, musing that #1695 is kind of related.
Going along with the other plugin-related wishlist stuff. Not sure when this might get worked on, but it remains a wishlist item and I would like to look at it again after 8.0.
Upon realizing I had a
reddit.py
in/var/lib/sopel/modules
that shadowed the built-in one (preventing me from seeing the effects of edits to it), I deleted the outdated file and attempted to reloadreddit
so I could get on with debugging & testing the issue at hand:Note that immediately saying
Kaede: load reddit
worked just fine. Clearly the plugin system can adapt, but maybe there's a race condition?I've only seen this with a single-file plugin, but that's only because my Sopel bot doesn't have any directory-based plugins (I avoid writing them because of other known reloading problems). Presumably it affects any plugin, if the type changes (e.g. from a file in
.sopel/modules
to a submodule insopel.modules.*
)? Needs more testing, though preferably not at almost 01:00 local time. 😁Assigning to the crazy Frenchman who wrote the new plugin handlers, since he'll be able to figure out where to start debugging faster than anyone else. 😛