You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifargs[0] =="sphinx-build":
args=args[1:]
# The easiest way to handle this is to just call sphinx-build but with# the Sphinx app object patched out - then we just use all the args it# was given!withmock.patch("sphinx.cmd.build.Sphinx") asm_Sphinx:
sphinx_build(args)
ifm_Sphinx.call_argsisNone:
returnNonesignature=inspect.signature(Sphinx)
keys=signature.parameters.keys()
values=m_Sphinx.call_args[0]
sphinx_args= {k: vfork, vinzip(keys, values)}
ifsphinx_argsisNone:
returnNone# `sphinx_args` at this point is an empty dictionary!returncls(
src_dir=sphinx_args["srcdir"],
conf_dir=sphinx_args["confdir"],
build_dir=sphinx_args["outdir"],
builder_name=sphinx_args["buildername"],
doctree_dir=sphinx_args["doctreedir"],
config_overrides=sphinx_args.get("confoverrides", {}),
force_full_build=sphinx_args.get("freshenv", False),
keep_going=sphinx_args.get("keep_going", False),
num_jobs=sphinx_args.get("parallel", 1),
quiet=sphinx_args.get("status", 1) isNone,
silent=sphinx_args.get("warning", 1) isNone,
tags=sphinx_args.get("tags", []),
verbosity=sphinx_args.get("verbosity", 0),
warning_is_error=sphinx_args.get("warningiserror", False),
)
Expected behavior
Esbonio's sphinx agent be able to parse a sphinx-build command correctly
Actual behavior
Esbonio rasies a cryptic error message when trying to launch a Sphinx process.
I'm still investigating but it appears that the latest release of Sphinx has broken the way esbonio tries to re-use Sphinx's command line parser.
Log output
(Optional) Settings from conf.py
No response
The text was updated successfully, but these errors were encountered: