-
Notifications
You must be signed in to change notification settings - Fork 317
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
Error in _overwrite_pygments_css
: DirectoryHTMLBuilder' object has no attribute 'globalcontext'
#1096
Comments
hmm, hard to debug occasional failures. If you can come up with a test that fails reliably I can work on a fix. Currently I can't replicate with |
Indeed - I found it hard to replicate as well but it happened multiple times. I figured it'd be better to capture the error message in an issue in case others come across the same problem. If nobody else encounters this in the next 3-6 months, maybe we can just close this? |
fun fact since friday I got it one 1 build out of 2 systematically when building this doc: https://github.com/12rambau/sepal_ui but only on my mac computer. I don't see the error on my linux machine. Note that to solve it I use the good old hammer technique: run it ... twice
|
It seems like an easy fix might be to add a check for whether globalcontext exists before trying to use it. Maybe we could give that a shot and see if the intermittent errors go away |
If it happens only on second run with no changes to the docs in between, it might be that sphinx is not fully initializing because it detects that there's nothing to build. I'll take a look on Tuesday.
-------- Original Message --------
…On Jan 9, 2023, 02:36, Chris Holdgraf wrote:
It seems like an easy fix might be to add a check for whether globalcontext exists before trying to use it. Maybe we could give that a shot and see if the intermittent errors go away
—
Reply to this email directly, [view it on GitHub](#1096 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AAN2AU5EMPWZIE4JBJJB52DWRPEX7ANCNFSM6AAAAAATOEAYOM).
You are receiving this because you commented.Message ID: ***@***.***>
|
I can't replicate this (on Linux) even with @12rambau's tip of running |
In building the documentation with Sphinx 5.3, I am occasionally getting this error message:
I believe it's coming from this line:
pydata-sphinx-theme/src/pydata_sphinx_theme/__init__.py
Lines 905 to 907 in 13d4692
It still seems to be in-use by Sphinx, so not really sure what's going on:
https://github.com/sphinx-doc/sphinx/blob/ff202240abebd12b1e12c9052e11f785c401e725/sphinx/builders/html/__init__.py#L569-L573
Maybe we need to add a similar conditional?
The text was updated successfully, but these errors were encountered: