Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs

Dashboard
Notifications
Mark all as read
Q&A

Docutils rst2pseudoxml.py reported error: No role entry for "meth"

+3
−0

docutils's rst2pseudoxml.py is reporting this error: Unknown interpreted text role "meth". even though the build command: sphinx-build -b html -d build/doctrees source build/html runs fine and properly displays the method. I suspect I just have some mis-configuration somewhere because the role "meth" seems to be a standard one. I've searched extensively for information about this but haven't found anything that enables debugging it or correcting it.

Command:
rst2pseudoxml.py --strict source/writing.rst

Output:
source/writing.rst:4: (INFO/1) No role entry for "meth" in module "docutils.parsers.rst.languages.en".

The source line is:

`:meth:mymethod` method.

The Sphinx (version 4.2.0) and docutils (version 0.17.1) are installed in a python virtual env for Python3.8.

I appreciate any ideas on how to resolve this!

Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

1 answer

+4
−0

There is no resolution for this issue as the meth role is a syntax extension defined by Sphinx, in what it calls the Python "domain". The standard reStructuredText roles that Docutils supports do not include meth.

Why does this post require moderator attention?
You might want to add some details to your flag.

1 comment thread

Replacing docutils's rst2pseudoxml.py with a Sphinx appropriate linter/checker (1 comment)

Sign up to answer this question »