Skip to content

ERROR - unexpected error: SuperFencesCodeExtension.extend_super_fences() missing 1 required positional argument: 'reset #76

Description

@johnpiers

I ran an "update" (uv pip install --upgrade mkdocs-materialx) and it updated - pymdown-extensions==12.0.1 to + pymdown-extensions==12.1 and on restarting the server, got few hundred of these:

ERROR - unexpected error: SuperFencesCodeExtension.extend_super_fences() missing 1 required positional argument: 'reset'

To fix it I just reverted the change back to "12.0.1"

Clarification on the root cause:

The mkdocs-markmap plugin isn't bundled directly into this (MaterialX) theme's core repository.

The error occurs for users who have installed mkdocs-markmap in their local setups alongside mkdocs-materialx. The mkdocs-markmap extension hooks into pymdownx.superfences, which breaks globally on every page when pymdown-extensions automatically updates to v12.1+ due to a required 4th positional argument (reset) missing from the plugin's code.

Leaving this note here for anyone else using this (MaterialX) theme boilerplate who hits the same server crash—pinning pymdown-extensions==12.0.1 locally safely bypasses the issue until the markmap plugin gets an update.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions