-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tags
plugin build error
#7960
Comments
Thanks for reporting and taking the time to try to narrow it down. Unfortunately, I'm not observing the bug, the build works fine:
It must be something else. I recommend to purge all caches and try to narrow it down further. To fix it, we need a minimal reproduction that show cases the problem, or we can't fix it. If you or somebody else can reproduce it, we'll reopen this issue. |
I haven't run it myself, but investigating from the error message, I got to this idea: The default mkdocs-material/src/plugins/tags/__init__.py Lines 38 to 40 in ebf1257
A Mapping The title can be fetched from the ---
title: 12345
---
# Title |
Hello, I've finally found the origin of the problem, even if I don't understand why the crashing occured (but @kamilkrzyskow was on the good track I think).
The crashing reason was the |
Perfect, thanks for sharing. I now know how to reproduce the error. Create two articles which share the same tag, and use the aforementioned title + another title that is a string. This will be fed to the sorting function, and the, boom:
Fixed in 4861c7d. Reopening and keeping open until released. |
Oh right, I didn't run it myself, so I missed the crucial part of adding tags to the front matter to trigger the tag comparison 😅 Thanks for the follow up, at least I now know, that I guessed right 🤘 , and that's probably the same fix I would make, as the EDIT: ---
title: '20240425'
--- |
Released as part of 9.6.3. |
Context
Building error since 9.6.x upgrade
Bug description
Our building pipeline fails every time a
tags.md
file is present in the repo. The file can be empty (like we did until the 9.6.x version) or containing a<!-- material/tags -->
section.The stack trace :
Related links
Reproduction
I've try to reproduce the bug but I was unable to do this on a fresh new install in a virtual env... I've copied every bit of my original doc site and the config files but it builds correctly.
I've compared the version number of every
pip
packages installed in our production environment VS the virtual one and they are exactly the same.9.6.1-tags-plugin-build-error.zip
Steps to reproduce
mkdocs-material
from pre-3.6.x version to 3.6.xtags
plugin enabledBrowser
No response
Before submitting
The text was updated successfully, but these errors were encountered: