Skip to content

Removal of parser.set_application breaks parser #14371

@jgrey4296

Description

@jgrey4296

Describe the bug

PR #13644 and PR #13637 break my bibtex parser, as uses the set_application hook to get config values.
What is the preferred way of getting sphinx config values an extension registers, from a parser?
The docs still say to use set_application, .config and .env, all of which are deprecated.

How to Reproduce

Minimal reproduction would be to use a parser that accesses set_application, like sphinx_bib_domain and try to parse a .bib file.

Environment Information

Platform:              linux; (Linux-6.17.0-20-generic-x86_64-with-glibc2.39)
Python version:        3.12.3 (main, Mar  3 2026, 12:15:18) [GCC 13.3.0])
Python implementation: CPython
Sphinx version:        9.1.0
Docutils version:      0.21.2
Jinja2 version:        3.1.6
Pygments version:      2.19.2

Sphinx extensions

["sphinx_bib_domain"]

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions