Skip to content

Sphinx 5.2.0: self-triggered warning Pygments lexer name 'pycon3' is not known #10861

@neutrinoceros

Description

@neutrinoceros

Describe the bug

Sphinx 5.2.0 broke unyt's docs, see yt-project/unyt#274

Warning, treated as error:
/home/runner/work/unyt/unyt/docs/index.rst:17:Pygments lexer name 'pycon3' is not known
ERROR: InvocationError for command /home/runner/work/unyt/unyt/.tox/py38-docs/bin/python -m sphinx -M html . _build -W (exited with code 2)

How to Reproduce

$ git clone https://github.com/yt-project/unyt
$ cd unyt
$ pip install -r requirements.txt
$ cd docs
$ python -m sphinx -M html "." "_build" -W

with requirements.txt:

pytest
sphinx
numpy
sympy
matplotlib!=3.5.0
dask[array,diagnostics]>=2021.04.1

Expected behavior

no error

Your project

https://github.com/yt-project/unyt

Screenshots

No response

OS

seen on Linux and Mac

Python version

reproduced with 3.8 and 3.10

Sphinx version

5.2.0

Sphinx extensions

sphinx.ext.autodoc, sphinx.ext.viewcode, sphinx.ext.doctest, sphinx.ext.napoleon, sphinx.ext.mathjax

Extra tools

No response

Additional context

Getting no error with Sphinx 5.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions