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
When building the html files locally with make.bat html I get the error below. This does not happen with Sphinx<8.2. I can see that it comes from sphinx\search\__init__.py which did not exist prior v8 of Sphinx right? I hope this is enough information. Thanks!
Traceback (most recent call last):
File "%homepath%\miniforge3\Lib\site-packages\sphinx\cmd\build.py", line 432, in build_main
app.build(args.force_all, args.filenames)
File "%homepath%\miniforge3\Lib\site-packages\sphinx\application.py", line 426, in build
self.builder.build_update()
File "%homepath%\miniforge3\Lib\site-packages\sphinx\builders\__init__.py", line 375, in build_update
self.build(
File "%homepath%\miniforge3\Lib\site-packages\sphinx\builders\__init__.py", line 454, in build
self.write(docnames, updated_docnames, method)
File "%homepath%\miniforge3\Lib\site-packages\sphinx\builders\__init__.py", line 735, in write
self.write_documents(docnames)
File "%homepath%\miniforge3\Lib\site-packages\sphinx\builders\__init__.py", line 749, in write_documents
self._write_serial(sorted_docnames)
File "%homepath%\miniforge3\Lib\site-packages\sphinx\builders\__init__.py", line 767, in _write_serial
self.write_doc_serialized(docname, doctree)
File "%homepath%\miniforge3\Lib\site-packages\sphinx\builders\html\__init__.py", line 684, in write_doc_serialized
self.index_page(docname, doctree, title)
File "%homepath%\miniforge3\Lib\site-packages\sphinx\builders\html\__init__.py", line 1021, in index_page
self.indexer.feed(pagename, filename, title, doctree)
File "%homepath%\miniforge3\Lib\site-packages\sphinx\search\__init__.py", line 503, in feed
word_store = self._word_collector(doctree)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "%homepath%\miniforge3\Lib\site-packages\sphinx\search\__init__.py", line 554, in _word_collector
_feed_visit_nodes(
File "%homepath%\miniforge3\Lib\site-packages\sphinx\search\__init__.py", line 643, in _feed_visit_nodes
_feed_visit_nodes(child, word_store=word_store, split=split, language=language)
File "%homepath%\miniforge3\Lib\site-packages\sphinx\search\__init__.py", line 643, in _feed_visit_nodes
_feed_visit_nodes(child, word_store=word_store, split=split, language=language)
File "%homepath%\miniforge3\Lib\site-packages\sphinx\search\__init__.py", line 643, in _feed_visit_nodes
_feed_visit_nodes(child, word_store=word_store, split=split, language=language)
File "%homepath%\miniforge3\Lib\site-packages\sphinx\search\__init__.py", line 608, in _feed_visit_nodes
elif isinstance(node, nodes.Element) and 'no-search'in node['classes']:
~~~~^^^^^^^^^^^
File "%homepath%\miniforge3\Lib\site-packages\docutils\nodes.py", line 602, in __getitem__
return self.attributes[key]
~~~~~~~~~~~~~~~^^^^^
KeyError: 'classes'
How to Reproduce
Unfortunately, I don't know which of my documentation files is triggering this error (and I have many), however, the error does not happen with Sphinx<8.2.
Are you able to provide a minimal reproducer? If not, can you please try with third-party extensions removed?
A
I will try. Is there any way to know more than the traceback? For example, what causes the creation of the node dictionary without classes? Because I used pdb.set_trace and many of the nodes are fine.
Describe the bug
When building the html files locally with
make.bat html
I get the error below. This does not happen withSphinx<8.2
. I can see that it comes fromsphinx\search\__init__.py
which did not exist prior v8 of Sphinx right? I hope this is enough information. Thanks!How to Reproduce
Unfortunately, I don't know which of my documentation files is triggering this error (and I have many), however, the error does not happen with
Sphinx<8.2
.Environment Information
Sphinx extensions
Additional context
No response
The text was updated successfully, but these errors were encountered: