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
Documentation job fails on CIs: duplicate token description of format_spec #85928
Comments
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 |
There are two format_spec definitions: "format_spec ::= [[fill]align][sign][#][0][width][grouping_option][.precision][type]" "format_spec ::= (literal_char | NULL | replacement_field)*" |
I failed to reproduce the issue locally. I tried: cd Doc |
Oh. It seems like the warning only occurs randomly!? It is gone on one of my PR. |
>>> sphinx.__version__
'3.2.1 I can reproduce this issue consistantly on my local machine with this environment. |
I closed bpo-41760 as a duplicate of this issue. |
The error message was different but similar: Warning, treated as error: |
".. productionlist::" markup is related to "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." |
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:
The text was updated successfully, but these errors were encountered: