Skip to content

Parallel build fails with sphinx-argparse v0.6.0 #98

Description

@loichuder

Since the v0.6.0 release of sphinx-argparse, our Sphinx builds launched in parallel (-j auto) fail with the following error:

Traceback
=========
      File ".../python3.12/site-packages/sphinx/util/parallel.py", line 126, in terminate
        self._result_funcs.pop(tid)
    KeyError: 0

This is clearly related to sphinx-argparse since the error disappears when the extension is not loaded in Sphinx.

I attach a ZIP containing a basic repo to reproduce the error: sphinx_parallel.zip

Running sphinx-build -j auto doc _build in the repo root produces the aforementioned error. Commenting the extensions = ["sphinxarg.ext"] in conf.py or using -j 1 makes the error disappear.

Version info

Versions
========

* Platform:         linux; (Linux-6.8.0-124-generic-x86_64-with-glibc2.39)
* Python version:   3.12.3 (CPython)
* Sphinx version:   9.1.0
* Docutils version: 0.22.4
* Jinja2 version:   3.1.6
* Pygments version: 2.20.0

Loaded Extensions
=================

* sphinx.ext.mathjax (9.1.0)
* alabaster (1.0.0)
* sphinxcontrib.applehelp (2.0.0)
* sphinxcontrib.devhelp (2.0.0)
* sphinxcontrib.htmlhelp (2.1.0)
* sphinxcontrib.serializinghtml (2.0.0)
* sphinxcontrib.qthelp (2.0.0)
* sphinx.ext.autodoc (9.1.0)
* sphinxarg.ext (0.6.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions