-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Regression in Sphinx 8.1.0: latexpdf: Build failures #13007
Comments
cc @jfbu |
@andreasabel can you confirm all the required LaTeX packages and ideally optional packages are installed? |
As the CI workflow helpfully provides "TeXLive details" it seems after comparing 8.0.2 build and 8.1.0 one that nothing has changed regarding the used LaTeX support. I will look at OP's repo but ideally I would need to get my hands on the Sphinx produced Update: as I can not reproduce the issue, probably a zip of build directory for failing build would not help me much, as I would need to have LaTeX running in a modified way to have more trace info, which I won't be able to do at my locale. |
I cloned https://github.com/agda/agda went to doc/user-manual, added to my python venv the missing sphinxcontrib_jquery and executed (sorry for French locale in reproduced output)
|
Your LaTeX is more recent than mine
versus mine
I am now updating it to retry the build. OK my TeXLive 2024 is fully up-to-date as of today and I build Agda.pdf with no hick-ups... (which is bad because I can't much help, the error message is too obscure to conclude for sure). |
Thanks for looking into this! Our CI uses a detailed LaTeX dependency list found here: https://github.com/agda/agda/blob/d0d880fdc8ce20f7da64473de9f29d57c163e4ab/src/github/workflows/user_manual.yml#L44-L78
I cannot produce the issue locally either (maybe because on my own machine I have a more complete LaTeX installation). Our extra packages are these: https://github.com/agda/agda/blob/d0d880fdc8ce20f7da64473de9f29d57c163e4ab/doc/user-manual/conf.py#L139-L144
|
Yes, this is annoying. We did not add dependencies at 8.1.0 as far as I recall. The error seems to arise at location of an admonition, which we touched at 7.4.0 not at 8.1.0 (again as far as I recall and from checking again the 8.1.0 CHANGES, patches were done this summer). However 8.1.0 does have a few LaTeX related changes. Nothing obviously in relation with the typically obscure LaTeX error message (but logically it should be the case). (LaTeX by default turns all tracing off so that error messages are usually only helpful to locate the line number, then we add tracing commands to try to understand better, but for this we need to have an environment reproducing the error). |
Is the build directory clean of previous LaTeX builds? (I guess so, only asking to be sure). |
This new code in 8.1.0 shows up in the LaTeX error message: https://github.com/sphinx-doc/sphinx/pull/12704/files#diff-a1afaa45ce0d76f824256e401717ff4b8636c83cf1d3c4309443364b746d902cR340
Can this be a clue? |
Not to me ;-).
The full Agda.log if available would perhaps allow to check what Just in case maybe try to add |
I have reproduced the error via letting LaTeX think fontawesome5 and fontawesome are both not present. Thus, this is an error on my part somewhere, sorry about that. Now checking closer. |
Ah, in the meanwhile I also just tried adding the Excellent! |
My bad sorry. I indeed completely forgot at some point to update a default hacky definition of |
A change at 8.1.0 related to the rendering in PDF of admonitions broke the build if user LaTeX installation was lacking both of fontawesome5.sty and fontawesome.sty. This was due to a missing change to some auxiliary LateX in sphinx.sty related to rendering of title bar icons.
As I comment at #13009, we do require on Ubuntu a dependency which includes fontawesome5... nevertheless I still consider my error as a regression because 7.4.0 carefully made sure things would work even without fontawesome5. Alas, a 8.1.0 patch changed the mechanism to avoid unneeded space in title bar if icons are not available, and an auxiliary in another LaTeX file should have been updated then, so PDF builds got broken on systems lacking both of fontawesome5 and fontawesome. So it is still regression of sorts, indeed. |
Describe the bug
Our CI for building the PDF of the Agda user manual failed with the advent of sphinx-8.1.0:
https://github.com/agda/agda/actions/runs/11278714539/job/31367805388#step:5:14
The same workflow succeeds with sphinx-8.0.1:
https://github.com/agda/agda/actions/runs/11275627170/job/31357520346#step:5:14
How to Reproduce
Reproduced by our CI (linked above).
Environment Information
Sphinx extensions
Additional context
No response
The text was updated successfully, but these errors were encountered: