Skip to content
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

sphinx 1.8.0 :type: can't process :term: references #5432

Closed
reaperhulk opened this issue Sep 14, 2018 · 2 comments
Closed

sphinx 1.8.0 :type: can't process :term: references #5432

reaperhulk opened this issue Sep 14, 2018 · 2 comments

Comments

@reaperhulk
Copy link

Problem

As of sphinx 1.8.0 :term: references in a :type: no longer appear to work.

Procedure to reproduce the problem

Use this rst:

.. glossary::

    test
        data


.. currentmodule:: foo.bar

.. class:: Baz

    .. attribute:: quux

        :type: :term:`test`

Then run sphinx-build against it with a default conf and you'll see: WARNING: py:class reference target not found: test

In 1.7.9 and before this would properly link.

Environment

  • Python 3.7
  • macOS 10.13
  • sphinx 1.8.0
@tk0miya tk0miya added this to the 1.8.1 milestone Sep 16, 2018
@tk0miya
Copy link
Member

tk0miya commented Sep 22, 2018

So far, py:attributes does not handle :type: field especially. But, since 1.8, it has been handled as types forcedly. I think #4047 contains a bug like this.
+1 for fixing this.

tk0miya added a commit to tk0miya/sphinx that referenced this issue Sep 22, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this issue Sep 22, 2018
tk0miya added a commit that referenced this issue Sep 22, 2018
…ermref

Fix #5432: py domain: :type: field can't process :term: references
@tk0miya
Copy link
Member

tk0miya commented Sep 22, 2018

Fixed by #5467.
Thank you for reporting.

@tk0miya tk0miya closed this as completed Sep 22, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants