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
IndexError: list index out of range #10495
Comments
Getting the same in a Github Action, started happening yesterday, as the build switched to Sphinx 5:
|
Hi @cyring / @aaime -- is your project the Linux kernel? I can't really reproduce this on Windows. Can you try deleting as much of the docs as possible before it stops failing for a minimal reproducer? It's likely we'll do a A |
@AA-Turner in my case it's the GeoTools documentation. But oh... this is the output during the pip-action bit that sets up Sphinx, maybe you can figure out something from this?
|
Hello, The purpose is to build the latest mainstream Linux kernel. Fyi, I have been doing such kernel build once a week for months/years and this is the first time such issue is encountered. Hope it helps, feel free to ask other details. |
@cyring Sphinx should save a full log on failure, please could you upload it here? A |
I found a minimal reproducer from @aaime's GeoTools documentation (after working out how to read an XML build script!!): import shutil
from pathlib import Path
from sphinx.cmd.make_mode import run_make_mode
def write(filename, text): Path(filename).write_text(text, encoding="utf-8")
write("conf.py", '''\
''')
write("index.rst", '''\
:kbd:`blah - blah`
''')
shutil.rmtree("_build", ignore_errors=True)
run_make_mode(["html", ".", "_build", "-T", "-W"]) run as A |
Please find the log below:
|
That fix made it successfully. pacman -Ql python-sphinx | grep transforms.py
nano -l /usr/lib/python3.10/site-packages/sphinx/builders/html/transforms.py Here the ArchLinux Maintainers of |
Fixed by #10504. The fixed version will be released soon. Please wait for a moment. |
Describe the bug
make[1]: *** [Documentation/Makefile:96: htmldocs] Error 2
make: *** [Makefile:1678: htmldocs] Error 2
==> ERROR: A failure occurred in build().
Aborting...
How to Reproduce
Arch Build System
Expected behavior
linux-5.18.arch1-1-x86_64.pkg.tar.zst
linux-docs-5.18.arch1-1-x86_64.pkg.tar.zst
linux-headers-5.18.arch1-1-x86_64.pkg.tar.zst
Your project
archlinux
Screenshots
OS
Linux RYZEN 5.18.0-arch1-1 x86_64
Python version
Python 3.10.4
Sphinx version
sphinx-build 5.0.0
Sphinx extensions
sphinx-autogen 5.0.0
,sphinx-apidoc 5.0.0
,sphinx-quickstart 5.0.0
Extra tools
gcc (GCC) 12.1.0
,GNU Make 4.3
,ldd (GNU libc) 2.35
,git version 2.36.1
,GNU bash, version 5.1.16(1)
Additional context
No response
The text was updated successfully, but these errors were encountered: