Skip to content

Uncaught TypeError: stopwords.indexOf is not a function when searching after updating to Sphinx 9 #485

@vivaria

Description

@vivaria

I'm seeing the following uncaught error in the browser console:

sphinx_immaterial_theme.32136f45f91ae6956.min.js?v=a7a9472a:14 Uncaught TypeError: stopwords.indexOf is not a function
    at sphinx_immaterial_theme.32136f45f91ae6956.min.js?v=a7a9472a:14:73803
    at Generator.next (<anonymous>)
    at i (sphinx_immaterial_theme.32136f45f91ae6956.min.js?v=a7a9472a:1:1060)

And search is empty (other users have reported this same behavior):

Image

Here's the dependency diff between the last passing build and the newest build: https://www.diffchecker.com/EIOWRx5F/

And here's my conf.py:

Details
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'edisonrul.ing'
author = 'vivaria'
copyright = 'vivaria'
version = '0.0.2'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [
    'myst_parser',
    'sphinx_last_updated_by_git',
    'sphinx_immaterial'
]
myst_enable_extensions = [
    "amsmath",
    "attrs_inline",
    "colon_fence",
    "deflist",
    "dollarmath",
    "fieldlist",
    "html_admonition",
    "html_image",
    # "linkify",
    "replacements",
    "smartquotes",
    "strikethrough",
    "substitution",
    "tasklist",
]
templates_path = ['_templates']
exclude_patterns = []
suppress_warnings = ['epub.unknown_project_files']



# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = "sphinx_immaterial"
html_theme_options = {
    "edit_uri": "blob/main/docs/source",
    "repo_url": "https://github.com/vivaria/edisonrul.ing",
    "repo_name": "edisonrul.ing",
    "icon": {
        "repo": "fontawesome/brands/github",
        "edit": "material/file-edit-outline",
        "logo": "material/cards-playing"
    },
    "features": [
        "content.action.view",
        "content.action.edit",
        "navigation.expand",
        "navigation.footer"
    ],
    "font": {
        "text": "Funnel Sans",  # used for all the pages' text
        "code": "Roboto Mono"  # used for literal code blocks
    },
    "palette": [
        {
            "media": "(prefers-color-scheme: light)",
            "scheme": "default",
            "primary": "brown",
            "toggle": {
                "icon": "material/weather-night",
                "name": "Switch to dark mode",
            }
        },
        {
            "media": "(prefers-color-scheme: dark)",
            "scheme": "slate",
            "primary": "brown",
            "toggle": {
                "icon": "material/weather-sunny",
                "name": "Switch to light mode",
            }
        },
    ]
}
html_title = 'Edison Rulings'
html_favicon = '_static/img/favicon.ico'
html_static_path = ['_static']
html_css_files = ['css/custom.css']
html_context = {
    'display_github': True,
    'github_user': 'vivaria',
    'github_repo': 'edisonrul.ing',
    'conf_py_path': '/docs/source/',
    'commit': 'main',
    'downloads': [
        ('pdf', 'https://edisonrul.ing/_/downloads/en/latest/pdf/'),
        ('epub', 'https://edisonrul.ing/_/downloads/en/latest/epub/'),
    ],
}
html_last_updated_fmt = '%Y-%m-%d'
html_show_copyright = False
html_copy_source = False
html_show_sourcelink = True

Might just be a dupe of #475, but I wanted to mention it anyway in case it has an effect on #484, since I'm not seeing any search results for "stopwords.indexOf".

Possibly related:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfeat: SearchRelated to search feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions