Skip to content

Error: 'GroupPlugin' object has no attribute 'is_serve' when deploying with mike #6520

Closed Answered by kamilkrzyskow
shamoon asked this question in Q&A
Discussion options

You must be logged in to vote

I don't really understand why mike triggers the on_config event for every plugin during load, probably mike assumes that every plugin makes modifications in on_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 that on_startup runs before on_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…

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@kamilkrzyskow
Comment options

@kamilkrzyskow
Comment options

@shamoon
Comment options

@kamilkrzyskow
Comment options

Answer selected by squidfunk
@squidfunk
Comment options

@shamoon
Comment options

@squidfunk
Comment options

@shamoon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants