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
{{ message }}
Repository navigation
Documentation job fails on CIs: duplicate token description of format_spec #85928
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"
Two issues about Sphinx 3.2.1 failing with "duplicate token description"
(posted on both) bpo-41760 'sign', multiple people nosy, failed where? bpo-41762 'format_spec', on Travis, PR by Victor Stinner (2.2.0 okay)
We 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."
New changeset e5cc5fd by Łukasz Langa (Miss Islington (bot)) in branch '3.9': bpo-41762: Fix usage of productionlist markup in the doc (GH-22281) e5cc5fd
Activity
vstinner commentedon Sep 11, 2020
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
vstinner commentedon 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-literals
vstinner commentedon Sep 11, 2020
I 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"
vstinner commentedon Sep 11, 2020
Oh. It seems like the warning only occurs randomly!? It is gone on one of my PR.
corona10 commentedon Sep 12, 2020
>>> sphinx.__version__ '3.2.1I can reproduce this issue consistantly on my local machine with this environment.
terryjreedy commentedon Sep 12, 2020
Two issues about Sphinx 3.2.1 failing with "duplicate token description"
(posted on both)
bpo-41760 'sign', multiple people nosy, failed where?
bpo-41762 'format_spec', on Travis, PR by Victor Stinner (2.2.0 okay)
vstinner commentedon Sep 12, 2020
I closed bpo-41760 as a duplicate of this issue.
vstinner commentedon Sep 12, 2020
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
vstinner commentedon Sep 16, 2020
".. productionlist::" markup is related to "Grammar production displays":
https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#grammar-production-displays
We 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."
vstinner commentedon Sep 18, 2020
New changeset 8af239e by Victor Stinner in branch 'master':
bpo-41762: Fix usage of productionlist markup in the doc (GH-22281)
8af239e
miss-islington commentedon Sep 18, 2020
New changeset c053402 by Miss Islington (bot) in branch '3.9':
bpo-41762: Fix usage of productionlist markup in the doc (GH-22281)
c053402
vstinner commentedon Sep 18, 2020
New changeset c5cddc1 by Miss Islington (bot) in branch '3.8':
bpo-41762: Fix usage of productionlist markup in the doc (GH-22281) (GH-22300)
c5cddc1
vstinner commentedon Sep 18, 2020
I fixed the issue.
See bpo-35293 for deprecation warnings.
ambv commentedon Oct 5, 2020
New changeset e5cc5fd by Łukasz Langa (Miss Islington (bot)) in branch '3.9':
bpo-41762: Fix usage of productionlist markup in the doc (GH-22281)
e5cc5fd