Skip to content
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

Fail on Docutils warning #2288

Merged
merged 1 commit into from
Jan 28, 2022
Merged

Fail on Docutils warning #2288

merged 1 commit into from
Jan 28, 2022

Conversation

AA-Turner
Copy link
Member

Fail the build on warnings or above from the Docutils reporter.

Prompted by Cam in #2285 (comment)

A

@CAM-Gerlach
Copy link
Member

CAM-Gerlach commented Jan 29, 2022

Response to your comment on #2285 ; moved here to avoid derailing that PR further.

You probably have Sphinx 4.3.*, not 4.4.0

Yup, I upgraded to 4.4.0 and see the errors now.

Fixed in #2288, you should be able to test with the bad commit bd3275f

Doesn't appear to be fixed at least from my testing; I rebased bd3275f on the latest main that includes your 5c62d9d (which I verified is indeed present on my branch git log, modified this PEP to ensure a rebuild was triggered and ran Sphinx again; I see the errors but it still says build succeeded, 27 warnings and echo $? is 0, whether I invoked it with python build.py --build-dirs, same invocation as the CI (minus the multiprocess flag) or with the stricter python -b -X dev build.py --nitpicky. Did it work in your testing?

Full output in case its useful:

$ python -b -X dev build.py -n

Running Sphinx v4.4.0
loading pickled environment... done
building [html]: targets for 2 source files that are out of date
updating environment: 0 added, 2 changed, 0 removed
reading sources... [100%] pep-0681
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0681.rst:422: ERROR: Unexpected indentation.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0681.rst:422: WARNING: Inline emphasis start-string without end-string.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0681.rst:426: WARNING: Block quote ends without a blank line; unexpected unindent.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0681.rst:430: ERROR: Unexpected indentation.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0681.rst:430: WARNING: Inline emphasis start-string without end-string.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0681.rst:434: WARNING: Block quote ends without a blank line; unexpected unindent.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0681.rst:440: WARNING: Inline emphasis start-string without end-string.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0681.rst:442: WARNING: Definition list ends without a blank line; unexpected unindent.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0681.rst:448: ERROR: Unexpected indentation.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0681.rst:532: ERROR: Unexpected indentation.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0681.rst:530: WARNING: Inline literal start-string without end-string.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0681.rst:704: ERROR: Indirect hyperlink target "pyright discussion"  refers to target "#converters", which does not exist.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0681.rst:704: ERROR: Unknown target name: "#converters".
looking for now-outdated files... none found
pickling environment... done
checking consistency... C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\docs\build.rst: WARNING: document isn't included in any toctree
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\docs\rendering_system.rst: WARNING: document isn't included in any toctree
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0484.txt:2490: WARNING: Citation [peps] is not referenced.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0520.txt:416: WARNING: Citation [nick_concern] is not referenced.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0520.txt:419: WARNING: Citation [orig] is not referenced.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0520.txt:422: WARNING: Citation [followup1] is not referenced.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0520.txt:425: WARNING: Citation [followup2] is not referenced.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0553.rst:283: WARNING: Citation [envar] is not referenced.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0554.rst:1645: WARNING: Citation [CSP] is not referenced.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0554.rst:1677: WARNING: Citation [mp-conn] is not referenced.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0554.rst:1686: WARNING: Citation [main-thread] is not referenced.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0554.rst:1709: WARNING: Citation [nathaniel-asyncio] is not referenced.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0554.rst:1712: WARNING: Citation [extension-docs] is not referenced.
C:\Users\C. A. M. Gerlach\Documents\dev\SpyderDev\other_repos\peps\pep-0593.rst:265: WARNING: Citation [struct-doc] is not referenced.
done
preparing documents... done
writing output... [100%] pep-0681
generating indices... done
writing additional pages... done
copying static files... done
copying extra files... done
dumping object inventory... done
build succeeded, 27 warnings.

The HTML pages are in build.

$ echo $?
0

@AA-Turner
Copy link
Member Author

A very quick check on CI (branch https://github.com/AA-Turner/peps/tree/test-bad-commit, run https://github.com/AA-Turner/peps/runs/4987962794) errors out.

The interesting bit is why your system doesn't fail locally. Can you try shift-deleting the build folder and try again?

A

@AA-Turner
Copy link
Member Author

AA-Turner commented Jan 29, 2022

For comparison, output with (nearly) the same command. Note the failure happened as soon as 681 was read, and during the read stage.

A

(venv) I:\Adam\...\peps>python -b -X dev build.py --build-dirs
Running Sphinx v4.4.0
making output directory... done
building [dirhtml]: targets for 583 source files that are out of date
updating environment: [new config] 583 added, 0 changed, 0 removed
I:\Adam\...\peps\pep-0003.txt:72: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0231.txt:616: WARNING: Footnote [8] is not referenced.
I:\Adam\...\peps\pep-0232.txt:250: WARNING: Footnote [3] is not referenced.
I:\Adam\...\peps\pep-0262.txt:317: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0277.txt:106: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0292.txt:201: WARNING: Footnote [3] is not referenced.
I:\Adam\...\peps\pep-0292.txt:206: WARNING: Footnote [5] is not referenced.
I:\Adam\...\peps\pep-0299.txt:112: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0323.txt:478: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0323.txt:481: WARNING: Footnote [2] is not referenced.
I:\Adam\...\peps\pep-0326.txt:448: WARNING: Footnote [5] is not referenced.
I:\Adam\...\peps\pep-0326.txt:458: WARNING: Footnote [8] is not referenced.
I:\Adam\...\peps\pep-0326.txt:466: WARNING: Footnote [11] is not referenced.
I:\Adam\...\peps\pep-0329.txt:258: WARNING: Footnote [2] is not referenced.
I:\Adam\...\peps\pep-0336.txt:122: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0340.txt:566: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0343.txt:955: WARNING: Footnote [12] is not referenced.
I:\Adam\...\peps\pep-0355.txt:549: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0361.txt:273: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0366.txt:136: WARNING: Footnote [4] is not referenced.
I:\Adam\...\peps\pep-0370.txt:219: WARNING: Footnote [6] is not referenced.
I:\Adam\...\peps\pep-0371.txt:420: WARNING: Footnote [6] is not referenced.
I:\Adam\...\peps\pep-0371.txt:427: WARNING: Footnote [8] is not referenced.
I:\Adam\...\peps\pep-0395.txt:727: WARNING: Footnote [4] is not referenced.
I:\Adam\...\peps\pep-0413.txt:916: WARNING: Footnote [2] is not referenced.
I:\Adam\...\peps\pep-0419.txt:511: WARNING: Footnote [4] is not referenced.
I:\Adam\...\peps\pep-0419.txt:514: WARNING: Footnote [5] is not referenced.
I:\Adam\...\peps\pep-0425.txt:273: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0425.txt:276: WARNING: Footnote [2] is not referenced.
I:\Adam\...\peps\pep-0426.txt:1509: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0430.txt:208: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0430.txt:211: WARNING: Footnote [2] is not referenced.
I:\Adam\...\peps\pep-0430.txt:214: WARNING: Footnote [3] is not referenced.
I:\Adam\...\peps\pep-0432.txt:1381: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0432.txt:1384: WARNING: Footnote [2] is not referenced.
I:\Adam\...\peps\pep-0432.txt:1387: WARNING: Footnote [3] is not referenced.
I:\Adam\...\peps\pep-0432.txt:1390: WARNING: Footnote [4] is not referenced.
I:\Adam\...\peps\pep-0432.txt:1393: WARNING: Footnote [5] is not referenced.
I:\Adam\...\peps\pep-0432.txt:1396: WARNING: Footnote [6] is not referenced.
I:\Adam\...\peps\pep-0432.txt:1399: WARNING: Footnote [7] is not referenced.
I:\Adam\...\peps\pep-0432.txt:1403: WARNING: Footnote [8] is not referenced.
I:\Adam\...\peps\pep-0432.txt:1406: WARNING: Footnote [9] is not referenced.
I:\Adam\...\peps\pep-0432.txt:1409: WARNING: Footnote [10] is not referenced.
I:\Adam\...\peps\pep-0440.txt:1554: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0440.txt:1560: WARNING: Footnote [3] is not referenced.
I:\Adam\...\peps\pep-0440.txt:1578: WARNING: Footnote [9] is not referenced.
I:\Adam\...\peps\pep-0448.txt:232: WARNING: Footnote [3] is not referenced.
I:\Adam\...\peps\pep-0453.txt:1024: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0453.txt:1027: WARNING: Footnote [2] is not referenced.
I:\Adam\...\peps\pep-0453.txt:1030: WARNING: Footnote [3] is not referenced.
I:\Adam\...\peps\pep-0453.txt:1033: WARNING: Footnote [4] is not referenced.
I:\Adam\...\peps\pep-0453.txt:1036: WARNING: Footnote [5] is not referenced.
I:\Adam\...\peps\pep-0467.txt:238: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0467.txt:240: WARNING: Footnote [2] is not referenced.
I:\Adam\...\peps\pep-0467.txt:242: WARNING: Footnote [3] is not referenced.
I:\Adam\...\peps\pep-0467.txt:244: WARNING: Footnote [4] is not referenced.
I:\Adam\...\peps\pep-0467.txt:246: WARNING: Footnote [5] is not referenced.
I:\Adam\...\peps\pep-0467.txt:248: WARNING: Footnote [6] is not referenced.
I:\Adam\...\peps\pep-0480.txt:877: WARNING: Footnote [6] is not referenced.
I:\Adam\...\peps\pep-0480.txt:880: WARNING: Footnote [9] is not referenced.
I:\Adam\...\peps\pep-0480.txt:881: WARNING: Footnote [10] is not referenced.
I:\Adam\...\peps\pep-0484.txt:2463: WARNING: duplicate citation mypy, other instance in I:\Adam\...\peps\pep-0482.txt
I:\Adam\...\peps\pep-0484.txt:2475: WARNING: duplicate citation pyflakes, other instance in I:\Adam\...\peps\pep-0482.txt
I:\Adam\...\peps\pep-0484.txt:2478: WARNING: duplicate citation pylint, other instance in I:\Adam\...\peps\pep-0482.txt
I:\Adam\...\peps\pep-0488.txt:333: WARNING: Footnote [10] is not referenced.
I:\Adam\...\peps\pep-0491.txt:536: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0492.txt:1404: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0501.txt:557: WARNING: Footnote [#] is not referenced.
I:\Adam\...\peps\pep-0501.txt:560: WARNING: Footnote [#] is not referenced.
I:\Adam\...\peps\pep-0501.txt:563: WARNING: Footnote [#] is not referenced.
I:\Adam\...\peps\pep-0501.txt:566: WARNING: Footnote [#] is not referenced.
I:\Adam\...\peps\pep-0501.txt:568: WARNING: Footnote [#] is not referenced.
I:\Adam\...\peps\pep-0501.txt:570: WARNING: Footnote [#] is not referenced.
I:\Adam\...\peps\pep-0501.txt:572: WARNING: Footnote [#] is not referenced.
I:\Adam\...\peps\pep-0501.txt:574: WARNING: Footnote [#] is not referenced.
I:\Adam\...\peps\pep-0501.txt:577: WARNING: Footnote [#] is not referenced.
I:\Adam\...\peps\pep-0501.txt:580: WARNING: Footnote [#] is not referenced.
I:\Adam\...\peps\pep-0502.txt:688: WARNING: Footnote [10] is not referenced.
I:\Adam\...\peps\pep-0502.txt:692: WARNING: Footnote [11] is not referenced.
I:\Adam\...\peps\pep-0505.rst:858: WARNING: Footnote [5] is not referenced.
I:\Adam\...\peps\pep-0531.txt:634: WARNING: Footnote [4] is not referenced.
I:\Adam\...\peps\pep-0531.txt:637: WARNING: Footnote [5] is not referenced.
I:\Adam\...\peps\pep-0531.txt:640: WARNING: Footnote [6] is not referenced.
I:\Adam\...\peps\pep-0532.txt:885: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0532.txt:888: WARNING: Footnote [2] is not referenced.
I:\Adam\...\peps\pep-0532.txt:891: WARNING: Footnote [3] is not referenced.
I:\Adam\...\peps\pep-0535.txt:182: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1181: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1184: WARNING: Footnote [2] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1187: WARNING: Footnote [3] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1190: WARNING: Footnote [4] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1193: WARNING: Footnote [5] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1196: WARNING: Footnote [6] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1199: WARNING: Footnote [7] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1202: WARNING: Footnote [8] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1205: WARNING: Footnote [9] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1208: WARNING: Footnote [10] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1211: WARNING: Footnote [11] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1214: WARNING: Footnote [12] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1217: WARNING: Footnote [13] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1220: WARNING: Footnote [14] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1223: WARNING: Footnote [15] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1226: WARNING: Footnote [16] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1229: WARNING: Footnote [17] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1232: WARNING: Footnote [18] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1235: WARNING: Footnote [19] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1238: WARNING: Footnote [20] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1241: WARNING: Footnote [21] is not referenced.
I:\Adam\...\peps\pep-0538.txt:1244: WARNING: Footnote [22] is not referenced.
I:\Adam\...\peps\pep-0544.txt:1470: WARNING: duplicate citation typescript, other instance in I:\Adam\...\peps\pep-0482.txt
I:\Adam\...\peps\pep-0544.txt:1479: WARNING: duplicate citation typeshed, other instance in I:\Adam\...\peps\pep-0484.txt
I:\Adam\...\peps\pep-0544.txt:1482: WARNING: duplicate citation mypy, other instance in I:\Adam\...\peps\pep-0484.txt
I:\Adam\...\peps\pep-0544.txt:29: WARNING: duplicate label rationale, other instance in I:\Adam\...\peps\pep-0394.txt
I:\Adam\...\peps\pep-0544.txt:1032: WARNING: duplicate label rejected, other instance in I:\Adam\...\peps\pep-0526.txt
I:\Adam\...\peps\pep-0545.txt:573: WARNING: Footnote [2] is not referenced.
I:\Adam\...\peps\pep-0549.rst:128: WARNING: duplicate citation github, other instance in I:\Adam\...\peps\pep-0484.txt
I:\Adam\...\peps\pep-0550.rst:1702: WARNING: Footnote [4] is not referenced.
I:\Adam\...\peps\pep-0550.rst:1716: WARNING: Footnote [11] is not referenced.
I:\Adam\...\peps\pep-0550.rst:1718: WARNING: Footnote [13] is not referenced.
I:\Adam\...\peps\pep-0550.rst:1720: WARNING: Footnote [14] is not referenced.
I:\Adam\...\peps\pep-0550.rst:1722: WARNING: Footnote [15] is not referenced.
I:\Adam\...\peps\pep-0550.rst:1724: WARNING: Footnote [16] is not referenced.
I:\Adam\...\peps\pep-0553.rst:280: WARNING: duplicate citation impl, other instance in I:\Adam\...\peps\pep-0520.txt
I:\Adam\...\peps\pep-0557.rst:145: WARNING: duplicate label specification, other instance in I:\Adam\...\peps\pep-0544.txt
I:\Adam\...\peps\pep-0557.rst:672: WARNING: duplicate label discussion, other instance in I:\Adam\...\peps\pep-0544.txt
I:\Adam\...\peps\pep-0558.rst:1298: WARNING: Footnote [2] is not referenced.
I:\Adam\...\peps\pep-0558.rst:1322: WARNING: Footnote [10] is not referenced.
I:\Adam\...\peps\pep-0558.rst:1325: WARNING: Footnote [11] is not referenced.
I:\Adam\...\peps\pep-0558.rst:1328: WARNING: Footnote [12] is not referenced.
I:\Adam\...\peps\pep-0558.rst:1331: WARNING: Footnote [13] is not referenced.
I:\Adam\...\peps\pep-0565.rst:337: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0565.rst:340: WARNING: Footnote [2] is not referenced.
I:\Adam\...\peps\pep-0565.rst:343: WARNING: Footnote [3] is not referenced.
I:\Adam\...\peps\pep-0565.rst:346: WARNING: Footnote [4] is not referenced.
I:\Adam\...\peps\pep-0565.rst:349: WARNING: Footnote [5] is not referenced.
I:\Adam\...\peps\pep-0565.rst:352: WARNING: Footnote [6] is not referenced.
I:\Adam\...\peps\pep-0565.rst:355: WARNING: Footnote [7] is not referenced.
I:\Adam\...\peps\pep-0565.rst:358: WARNING: Footnote [8] is not referenced.
I:\Adam\...\peps\pep-0565.rst:361: WARNING: Footnote [9] is not referenced.
I:\Adam\...\peps\pep-0571.rst:360: WARNING: Footnote [18] is not referenced.
I:\Adam\...\peps\pep-0572.rst:1317: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0577.rst:806: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0577.rst:809: WARNING: Footnote [2] is not referenced.
I:\Adam\...\peps\pep-0577.rst:812: WARNING: Footnote [3] is not referenced.
I:\Adam\...\peps\pep-0577.rst:815: WARNING: Footnote [4] is not referenced.
I:\Adam\...\peps\pep-0593.rst:268: WARNING: duplicate citation mypy, other instance in I:\Adam\...\peps\pep-0544.txt
I:\Adam\...\peps\pep-0593.rst:274: WARNING: duplicate citation pycharm, other instance in I:\Adam\...\peps\pep-0482.txt
I:\Adam\...\peps\pep-0594.rst:650: WARNING: Footnote [6] is not referenced.
I:\Adam\...\peps\pep-0594.rst:651: WARNING: Footnote [7] is not referenced.
I:\Adam\...\peps\pep-0598.rst:885: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0598.rst:888: WARNING: Footnote [2] is not referenced.
I:\Adam\...\peps\pep-0598.rst:891: WARNING: Footnote [3] is not referenced.
I:\Adam\...\peps\pep-0601.txt:223: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0601.txt:225: WARNING: Footnote [2] is not referenced.
I:\Adam\...\peps\pep-0601.txt:227: WARNING: Footnote [3] is not referenced.
I:\Adam\...\peps\pep-0601.txt:229: WARNING: Footnote [4] is not referenced.
I:\Adam\...\peps\pep-0601.txt:231: WARNING: Footnote [5] is not referenced.
I:\Adam\...\peps\pep-0601.txt:233: WARNING: Footnote [6] is not referenced.
I:\Adam\...\peps\pep-0601.txt:235: WARNING: Footnote [7] is not referenced.
I:\Adam\...\peps\pep-0601.txt:237: WARNING: Footnote [8] is not referenced.
I:\Adam\...\peps\pep-0601.txt:239: WARNING: Footnote [9] is not referenced.
I:\Adam\...\peps\pep-0605.rst:1346: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0605.rst:1349: WARNING: Footnote [2] is not referenced.
I:\Adam\...\peps\pep-0605.rst:1352: WARNING: Footnote [3] is not referenced.
I:\Adam\...\peps\pep-0605.rst:1355: WARNING: Footnote [4] is not referenced.
I:\Adam\...\peps\pep-0605.rst:1358: WARNING: Footnote [5] is not referenced.
I:\Adam\...\peps\pep-0605.rst:1361: WARNING: Footnote [6] is not referenced.
I:\Adam\...\peps\pep-0617.rst:798: WARNING: Footnote [#] is not referenced.
I:\Adam\...\peps\pep-0622.rst:2223: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0622.rst:2235: WARNING: Footnote [5] is not referenced.
I:\Adam\...\peps\pep-0622.rst:2266: WARNING: duplicate label appendix a, other instance in I:\Adam\...\peps\pep-0400.txt
I:\Adam\...\peps\pep-0634.rst:140: WARNING: duplicate label guards, other instance in I:\Adam\...\peps\pep-0622.rst
I:\Adam\...\peps\pep-0634.rst:175: WARNING: duplicate label patterns, other instance in I:\Adam\...\peps\pep-0622.rst
I:\Adam\...\peps\pep-0634.rst:231: WARNING: duplicate label literal_pattern, other instance in I:\Adam\...\peps\pep-0622.rst
I:\Adam\...\peps\pep-0634.rst:267: WARNING: duplicate label capture_pattern, other instance in I:\Adam\...\peps\pep-0622.rst
I:\Adam\...\peps\pep-0634.rst:290: WARNING: duplicate label wildcard_pattern, other instance in I:\Adam\...\peps\pep-0622.rst
I:\Adam\...\peps\pep-0634.rst:337: WARNING: duplicate label sequence_pattern, other instance in I:\Adam\...\peps\pep-0622.rst
I:\Adam\...\peps\pep-0634.rst:417: WARNING: duplicate label mapping_pattern, other instance in I:\Adam\...\peps\pep-0622.rst
I:\Adam\...\peps\pep-0634.rst:472: WARNING: duplicate label class_pattern, other instance in I:\Adam\...\peps\pep-0622.rst
I:\Adam\...\peps\pep-0634.rst:598: WARNING: duplicate label appendix a, other instance in I:\Adam\...\peps\pep-0622.rst
I:\Adam\...\peps\pep-0635.rst:403: WARNING: duplicate label patterns, other instance in I:\Adam\...\peps\pep-0634.rst
I:\Adam\...\peps\pep-0635.rst:592: WARNING: duplicate label literal_pattern, other instance in I:\Adam\...\peps\pep-0634.rst
I:\Adam\...\peps\pep-0635.rst:681: WARNING: duplicate label capture_pattern, other instance in I:\Adam\...\peps\pep-0634.rst
I:\Adam\...\peps\pep-0635.rst:740: WARNING: duplicate label wildcard_pattern, other instance in I:\Adam\...\peps\pep-0634.rst
I:\Adam\...\peps\pep-0635.rst:907: WARNING: duplicate label sequence_pattern, other instance in I:\Adam\...\peps\pep-0634.rst
I:\Adam\...\peps\pep-0635.rst:967: WARNING: duplicate label mapping_pattern, other instance in I:\Adam\...\peps\pep-0634.rst
I:\Adam\...\peps\pep-0635.rst:1014: WARNING: duplicate label class_pattern, other instance in I:\Adam\...\peps\pep-0634.rst
I:\Adam\...\peps\pep-0636.rst:459: WARNING: duplicate label appendix a, other instance in I:\Adam\...\peps\pep-0634.rst
I:\Adam\...\peps\pep-0642.rst:1835: WARNING: Footnote [1] is not referenced.
I:\Adam\...\peps\pep-0642.rst:1838: WARNING: Footnote [2] is not referenced.
I:\Adam\...\peps\pep-0642.rst:1841: WARNING: Footnote [3] is not referenced.
I:\Adam\...\peps\pep-0642.rst:1844: WARNING: Footnote [4] is not referenced.
I:\Adam\...\peps\pep-0642.rst:1847: WARNING: Footnote [5] is not referenced.
I:\Adam\...\peps\pep-0642.rst:1850: WARNING: Footnote [6] is not referenced.
I:\Adam\...\peps\pep-0642.rst:1853: WARNING: Footnote [7] is not referenced.
I:\Adam\...\peps\pep-0642.rst:1856: WARNING: Footnote [8] is not referenced.
I:\Adam\...\peps\pep-0642.rst:1859: WARNING: Footnote [9] is not referenced.
I:\Adam\...\peps\pep-0642.rst:280: WARNING: duplicate label guards, other instance in I:\Adam\...\peps\pep-0634.rst
I:\Adam\...\peps\pep-0642.rst:318: WARNING: duplicate label patterns, other instance in I:\Adam\...\peps\pep-0635.rst
I:\Adam\...\peps\pep-0642.rst:561: WARNING: duplicate label wildcard_pattern, other instance in I:\Adam\...\peps\pep-0635.rst
I:\Adam\...\peps\pep-0642.rst:1866: WARNING: duplicate label appendix a, other instance in I:\Adam\...\peps\pep-0636.rst
I:\Adam\...\peps\pep-0644.rst:367: WARNING: Footnote [11] is not referenced.
I:\Adam\...\peps\pep-0645.rst:135: WARNING: Footnote [2] is not referenced.
I:\Adam\...\peps\pep-0645.rst:137: WARNING: Footnote [3] is not referenced.
I:\Adam\...\peps\pep-0645.rst:139: WARNING: Footnote [5] is not referenced.
I:\Adam\...\peps\pep-0654.rst:1499: WARNING: Footnote [13] is not referenced.
I:\Adam\...\peps\pep-0661.rst:323: WARNING: Footnote [5] is not referenced.
I:\Adam\...\peps\pep-0661.rst:324: WARNING: Footnote [6] is not referenced.
I:\Adam\...\peps\pep-0661.rst:325: WARNING: Footnote [7] is not referenced.
I:\Adam\...\peps\pep-0661.rst:326: WARNING: Footnote [8] is not referenced.
I:\Adam\...\peps\pep-0680.rst:411: WARNING: duplicate label appendix a, other instance in I:\Adam\...\peps\pep-0642.rst
I:\Adam\...\peps\pep-0681.rst:422: ERROR: Unexpected indentation.
Traceback (most recent call last):
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 2777, in text
    block = self.state_machine.get_text_block(flush_left=True)
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\statemachine.py", line 408, in get_text_block
    block = self.input_lines.get_text_block(self.line_offset,
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\statemachine.py", line 1358, in get_text_block
    raise UnexpectedIndentationError(self[start:end], source,
docutils.statemachine.UnexpectedIndentationError: (StringList(['# In this library, passing a resolver means that init must be False,', '# and the overload with Literal[False] enforces that.', '@overload', 'def model_field('], items=
[('I:\\Adam\\...\\peps\\pep-0681.rst', 417), ('I:\\Adam\\...\\peps\\pep-0681.rst', 418), ('I:\\Adam\\...\\peps\\pep-0681.rst', 419), ('I:\\Adam\\...\\peps\\pep-0681.rst', 420)]), 'I:\\
Adam\\...\\peps\\pep-0681.rst', 422)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "I:\Adam\...\peps\build.py", line 85, in <module>
    app.build()
  File "I:\Adam\...\peps\venv\lib\site-packages\sphinx\application.py", line 337, in build
    self.builder.build_update()
  File "I:\Adam\...\peps\venv\lib\site-packages\sphinx\builders\__init__.py", line 294, in build_update
    self.build(to_build,
  File "I:\Adam\...\peps\venv\lib\site-packages\sphinx\builders\__init__.py", line 308, in build
    updated_docnames = set(self.read())
  File "I:\Adam\...\peps\venv\lib\site-packages\sphinx\builders\__init__.py", line 415, in read
    self._read_serial(docnames)
  File "I:\Adam\...\peps\venv\lib\site-packages\sphinx\builders\__init__.py", line 436, in _read_serial
    self.read_doc(docname)
  File "I:\Adam\...\peps\venv\lib\site-packages\sphinx\builders\__init__.py", line 476, in read_doc
    doctree = read_doc(self.app, self.env, self.env.doc2path(docname))
  File "I:\Adam\...\peps\venv\lib\site-packages\sphinx\io.py", line 189, in read_doc
    pub.publish()
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\core.py", line 217, in publish
    self.document = self.reader.read(self.source, self.parser,
  File "I:\Adam\...\peps\venv\lib\site-packages\sphinx\io.py", line 109, in read
    self.parse()
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\readers\__init__.py", line 78, in parse
    self.parser.parse(self.input, document)
  File "I:\Adam\...\peps\venv\lib\site-packages\sphinx\parsers.py", line 101, in parse
    self.statemachine.run(inputlines, document, inliner=self.inliner)
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 170, in run
    results = StateMachineWS.run(self, input_lines, input_offset,
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\statemachine.py", line 239, in run
    context, next_state, result = self.check_line(
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\statemachine.py", line 451, in check_line
    return method(match, context, next_state)
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 2769, in underline
    self.section(title, source, style, lineno - 1, messages)
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 327, in section
    self.new_subsection(title, lineno, messages)
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 393, in new_subsection
    newabsoffset = self.nested_parse(
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 281, in nested_parse
    state_machine.run(block, input_offset, memo=self.memo,
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 196, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\statemachine.py", line 239, in run
    context, next_state, result = self.check_line(
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\statemachine.py", line 451, in check_line
    return method(match, context, next_state)
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 2769, in underline
    self.section(title, source, style, lineno - 1, messages)
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 327, in section
    self.new_subsection(title, lineno, messages)
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 393, in new_subsection
    newabsoffset = self.nested_parse(
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 281, in nested_parse
    state_machine.run(block, input_offset, memo=self.memo,
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 196, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\statemachine.py", line 239, in run
    context, next_state, result = self.check_line(
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\statemachine.py", line 451, in check_line
    return method(match, context, next_state)
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 2769, in underline
    self.section(title, source, style, lineno - 1, messages)
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 327, in section
    self.new_subsection(title, lineno, messages)
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 393, in new_subsection
    newabsoffset = self.nested_parse(
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 281, in nested_parse
    state_machine.run(block, input_offset, memo=self.memo,
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 196, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\statemachine.py", line 239, in run
    context, next_state, result = self.check_line(
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\statemachine.py", line 451, in check_line
    return method(match, context, next_state)
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 1165, in indent
    elements = self.block_quote(indented, line_offset)
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 1180, in block_quote
    self.nested_parse(blockquote_lines, line_offset, blockquote)
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 281, in nested_parse
    state_machine.run(block, input_offset, memo=self.memo,
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 196, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\statemachine.py", line 239, in run
    context, next_state, result = self.check_line(
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\statemachine.py", line 451, in check_line
    return method(match, context, next_state)
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\parsers\rst\states.py", line 2780, in text
    msg = self.reporter.error('Unexpected indentation.',
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\utils\__init__.py", line 231, in error
    return self.system_message(self.ERROR_LEVEL, *args, **kwargs)
  File "I:\Adam\...\peps\venv\lib\site-packages\docutils\utils\__init__.py", line 197, in system_message
    raise SystemMessage(msg, level)
docutils.utils.SystemMessage: I:\Adam\...\peps\pep-0681.rst:422: (ERROR/3) Unexpected indentation.

@AA-Turner
Copy link
Member Author

Tried with -n, which also failed as expected.
A

@CAM-Gerlach
Copy link
Member

Welp, you were spot on—I rm -rfed build and it indeed fails now as expected, so guess it was just something cached in there. Should have tried that to be sure, I just am lazy and impatient and don't like sitting through a multi-minute build process if I don't have to 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants