Skip to content

bug: TOC is displaying full path names for attributes after upgrading from 1.16.8 to 1.16.10 #271

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

Open
davlee1972 opened this issue Apr 10, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@davlee1972
Copy link

Description of the bug

Table of Contents is displaying full path names for attributes after upgrading from 1.16.8 to 1.16.10.

Before package upgrade from 1.16.8

Image

After package upgrade to 1.16.10

Image

To Reproduce

Upgrading mkdocstrings-python from 1.16.8 to 1.16.10 broke the TOC
Installing collected packages: mkdocstrings-python
Attempting uninstall: mkdocstrings-python
Found existing installation: mkdocstrings-python 1.16.8
Uninstalling mkdocstrings-python-1.16.8:
Successfully uninstalled mkdocstrings-python-1.16.8
Successfully installed mkdocstrings-python-1.16.10

Downgrading mkdocstrings-python from 1.16.10 to 1.16.8 fixed the TOC
Installing collected packages: mkdocstrings-python
Attempting uninstall: mkdocstrings-python
Found existing installation: mkdocstrings-python 1.16.10
Uninstalling mkdocstrings-python-1.16.10:
Successfully uninstalled mkdocstrings-python-1.16.10
Successfully installed mkdocstrings-python-1.16.8

@davlee1972 davlee1972 added the unconfirmed This bug was not reproduced yet label Apr 10, 2025
@davlee1972
Copy link
Author

davlee1972 commented Apr 11, 2025

Created a pull request to fix this.. version 1.16.9 typo swapped attribute.name with attribute_name in the toc jinja.

Pull Request: #272

@pawamoy
Copy link
Member

pawamoy commented Apr 14, 2025

Thank you for the report and PR @davlee1972! 🚀 The PR looks good, I'll likely add regression tests to it very soon 🙂

@pawamoy pawamoy added bug Something isn't working and removed unconfirmed This bug was not reproduced yet labels Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants