Open tk0miya opened 6 years ago
There are comment about duplication on domain. I think we have to check and warn duplications at here. https://github.com/sphinx-doc/sphinx/blob/020c51532bc70289926797e878856997415cd2f8/sphinx/domains/std.py#L549-L571
Fixed by #4882
I just want to add that I tried this with CPython build and still the warning is not shown for duplicate labels.
Parallel build :
mkdir -p build
Building NEWS from Misc/NEWS.d with blurb
PATH=./venv/bin:$PATH sphinx-build -j auto -b html -d build/doctrees -D latex_elements.papersize= . build/html
Running Sphinx v1.8.1
/Users/karthikeyansingaravelan/stuff/python/cpython/Doc/venv/lib/python3.6/site-packages/sphinx/application.py:927: RemovedInSphinx20Warning: app.add_description_unit() is now deprecated. Use app.add_object_type() instead.
RemovedInSphinx20Warning)
making output directory...
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 470 source files that are out of date
updating environment: 470 added, 0 changed, 0 removed
reading sources... [100%] tutorial/stdlib .. whatsnew/index
waiting for workers...
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] whatsnew/index
waiting for workers...
generating indices... genindex py-modindex
writing additional pages... download index search opensearch
copying images... [100%] using/win_installer.png
copying downloadable files... [100%] includes/tzinfo_examples.py
copying static files... done
copying extra files... done
dumping search index in English (code: en) ... done
dumping object inventory... done
build succeeded.
The HTML pages are in build/html.
Build finished. The HTML pages are in build/html.
make html 216.09s user 6.84s system 228% cpu 1:37.64 total
Non-parallel build : (duplicate label warning in example.rst is not shown for the parallel build)
mkdir -p build
Building NEWS from Misc/NEWS.d with blurb
PATH=./venv/bin:$PATH sphinx-build -b html -d build/doctrees -D latex_elements.papersize= . build/html
Running Sphinx v1.8.1
/Users/karthikeyansingaravelan/stuff/python/cpython/Doc/venv/lib/python3.6/site-packages/sphinx/application.py:927: RemovedInSphinx20Warning: app.add_description_unit() is now deprecated. Use app.add_object_type() instead.
RemovedInSphinx20Warning)
making output directory...
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 470 source files that are out of date
updating environment: 470 added, 0 changed, 0 removed
reading sources... [100%] whatsnew/index
/Users/karthikeyansingaravelan/stuff/python/cpython/Doc/distutils/examples.rst:5: WARNING: duplicate label examples, other instance in /Users/karthikeyansingaravelan/stuff/python/cpython/Doc/c-api/typeobj.rst
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] whatsnew/index
generating indices... genindex py-modindex
writing additional pages... download index search opensearch
copying images... [100%] using/win_installer.png
copying downloadable files... [100%] includes/tzinfo_examples.py
copying static files... done
copying extra files... done
dumping search index in English (code: en) ... done
dumping object inventory... done
build succeeded, 1 warning.
The HTML pages are in build/html.
Build finished. The HTML pages are in build/html.
make html 162.59s user 2.51s system 95% cpu 2:53.40 total
Thanks
@tk0miya as this issue is still open I comment here instead of opening a new issue. With sphinx version 7.3.7 we can again reproduce the described behavior. Is this a known limitation (given that closed intermediately) or a recent regression?
Problem
-j N
optionProcedure to reproduce the problem
Here is my Dockerfile.
Error logs / results
On non-parallel mode, there are 5 warnings for duplicated label.
On the other hand, with
-j
option, there are no warnings.Expected results
Reproducible project / your project
Environment info