Skip to content

Sphinx tabs issue #196

@Alexandru-C

Description

@Alexandru-C

Describe the bug

context
When I run 'make html' it stops at an exception from tabs.py

bug
Exception occurred:
File "/Users/user/dev/DocsFlutter/DocsFlutter/.venv/lib/python3.9/site-packages/sphinx_tabs/tabs.py", line 143, in run
tabs_id = self.env.temp_data["tabs_stack"][-1]
KeyError: 'tabs_stack'
The full traceback has been saved in /var/folders/kf/nv2rp1zj2y73_75sdtccplp40000gn/T/sphinx-err-qoc3cau4.log, if you want to report the issue to the developers.

The conf.py file is:

-- Project information -----------------------------------------------------

project = 'DocsFlutter'
copyright = '2024, Company'
author = 'name'

-- General configuration ---------------------------------------------------

extensions = [
'sphinx_tabs.tabs',
'sphinx.ext.autodoc',
'sphinx.ext.todo',
'sphinx.ext.viewcode',
]
templates_path = ['_templates']
exclude_patterns = []

-- Options for HTML output -------------------------------------------------

html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static', 'images'] # Ensure your images directory is included

Reproduce the bug

I run make html and it crashes.

List your environment

Platform: darwin; (macOS-14.5-arm64-arm-64bit)
Python version: 3.9.6 (default, Mar 29 2024, 10:51:09)
[Clang 15.0.0 (clang-1500.3.9.4)])
Python implementation: CPython
Sphinx version: 7.3.7
Docutils version: 0.20.1
Jinja2 version: 3.1.4
Pygments version: 2.18.0

I am using Pycharm for IDE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions