Repository navigation
Documentation job fails on CIs: duplicate token description of format_spec #85928
Description
Activity
https://travis-ci.com/github/python/cpython/jobs/383579366
Warning, treated as error:
/home/travis/build/python/cpython/Doc/library/string.rst:311:duplicate token description of format_spec, other instance in reference/lexical_analysis
- addeddocsDocumentation in the Doc dirDocumentation in the Doc dir3.10 (EOL)end of lifeend of life
on Sep 11, 2020 There are two format_spec definitions:
"format_spec ::= [[fill]align][sign][#][0][width][grouping_option][.precision][type]"
https://docs.python.org/dev/library/string.html#format-specification-mini-language"format_spec ::= (literal_char | NULL | replacement_field)*"
https://docs.python.org/dev/reference/lexical_analysis.html#formatted-string-literalsI failed to reproduce the issue locally. I tried:
cd Doc
make clean
make venv PYTHON=../python
./venv/bin/python -m pip install sphinx==2.2.0 blurb python-docs-theme
make check suspicious html SPHINXOPTS="-q -W -j4"Oh. It seems like the warning only occurs randomly!? It is gone on one of my PR.
>>> sphinx.__version__ '3.2.1I can reproduce this issue consistantly on my local machine with this environment.
I closed bpo-41760 as a duplicate of this issue.
I closed bpo-41760 as a duplicate of this issue.
The error message was different but similar:
Warning, treated as error:
/<<PKGBUILDDIR>>/Doc/library/string.rst:311:duplicate token description of sign, other instance in library/functions".. productionlist::" markup is related to "Grammar production displays":
https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#grammar-production-displaysWe can try to pass a different unique name to each ".. productionlist::" markup:
"The productionGroup argument to productionlist serves to distinguish different sets of production lists that belong to different grammars. Multiple production lists with the same productionGroup thus define rules in the same scope."
I fixed the issue.
See bpo-35293 for deprecation warnings.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields: