You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building the documentation using the LaTeX builder, the following error occurs:
....
File "<...>/python3.12/site-packages/docutils/nodes.py", line 186, in walkabout
if child.walkabout(visitor):
^^^^^^^^^^^^^^^^^^^^^^^^
[Previous line repeated 7 more times]
File "<...>/python3.12/site-packages/docutils/nodes.py", line 178, in walkabout
visitor.dispatch_visit(self)
File "<...>/python3.12/site-packages/sphinx/util/docutils.py", line 616, in dispatch_visit
method(node)
File "<...>/python3.12/site-packages/sphinx/writers/latex.py", line 772, in visit_desc_signature
if node.parent['objtype'] != 'describe' and node['ids']:
~~~~~~~~~~~^^^^^^^^^^^
File "<...>/python3.12/site-packages/docutils/nodes.py", line 596, in __getitem__
return self.attributes[key]
~~~~~~~~~~~~~~~^^^^^
KeyError: 'objtype'
This comes from a desc_signature node whose parent desc node does not define the 'objtype' attribute. This field is required by the LaTeX writer to determine how to render the object.
How to reproduce
Use the Rust extension in a Sphinx project.
Build with sphinx -b latex ....
Observe the crash during the desc_signature processing.
Cause
The extension creates a desc node but does not assign the required 'objtype' attribute, which is expected by the LaTeX writer.
Suggested fix
Add a proper 'objtype' to the desc node when building custom Rust directives:
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Description
When building the documentation using the LaTeX builder, the following error occurs:
This comes from a
desc_signature
node whose parent desc node does not define the 'objtype' attribute. This field is required by the LaTeX writer to determine how to render the object.How to reproduce
Use the Rust extension in a Sphinx project.
Build with
sphinx -b latex ....
Observe the crash during the desc_signature processing.
Cause
The extension creates a desc node but does not assign the required 'objtype' attribute, which is expected by the LaTeX writer.
Suggested fix
Add a proper 'objtype' to the desc node when building custom Rust directives:
The text was updated successfully, but these errors were encountered: