Error: 'GroupPlugin' object has no attribute 'is_serve' when deploying with mike #6520
-
Hi there, really confused as to why I'm getting the above error when trying to deploy via ci. We were previously using mike 1.1.2 and had no issues but have to upgrade to 2.0 for reasons. I realize this isnt the mike repository but I think the solution is here (or LMK if Im wrong about that). Now, when executing error: 'GroupPlugin' object has no attribute 'is_serve'
Error: Process completed with exit code 1. mkdocs.yml looks like: ...
plugins:
- group:
enabled: !ENV MKINSIDERS
plugins:
- optimize
- typeset
- social Appreciate any help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Is this the whole traceback of the error @shamoon? If possible I would like to see the full output. |
Beta Was this translation helpful? Give feedback.
I don't really understand why
mike
triggers theon_config
event for every plugin during load, probablymike
assumes that every plugin makes modifications inon_config
"as per the standard" and wants to manage a "finished" config object 🤔Therefore, I don't really know the best way forward when it comes to
mike
, but, ensuring thaton_startup
runs beforeon_config
would be a good start :P You could create an issue upstream about it @shamoon ✌️As for the PR here in mkdocs-material, I can make one later today if squidfunk won't be faster. Most plugins don't use the
on_startup
event, and when they use it it's typically to track if MkDocs is served, at least I think so. Therefore, it is safe t…