Open marcel-22 opened 6 days ago
I have also upgraded all packages to the latest versions (including pygls), as far as was possible, but that did not solve the exception.
One of the things that esbonio
does when inspecting your sphinx project is to export your conf.py
to local a SQLite db where the server can easily query certain config values (like primary_domain
).
Unfortunately, it looks like it found something it couldn't handle correctly
keys must be str, int, float, bool or None, not re.Pattern
From the error, I'm not entirely sure where the issue is... but I'm guessing you a regular expression somewhere in your conf.py
. If you comment it out for a moment, does the issue go away?
In conf.py
we have the following statement, which is the same as in Sphinx docs: https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-linkcheck_allowed_redirects
linkcheck_allowed_redirects = {
# All HTTP redirections from the source URI to the canonical URI will be treated as "working".
r'https://sphinx-doc\.org/.*': r'https://sphinx-doc\.org/en/master/.*'
}
When I disable this statement and restart VS Code, the error goes away and the Esbonio HTML preview is working.
Great, thank you for the example option
Expected behavior
Have a working preview function with prerelease version 0.94.2 of Esbonio.
Actual behavior
Got an exception instead.
Log output
(Optional) Settings from conf.py
No response