Skip to content

AssertionError - unable to searialize search trie #150

@suricactus

Description

@suricactus

Hello! I really love the theme and the search in it, the only useful theme I found with working search field, the killer feature!

However, the project I am trying to generate a documentation for grew quite a lot in the last few versions and what was possible in the past is failing misserably now.

Whenever I follow the instructions to build, I get:

File "/home/suricactus/work/tools/m.css/documentation/_search.py", line 356, in _serialize
    assert len(self.children) < 16 and len(self.results) < 2048, 'FAIL!!! {} {}'.format(len(self.children), len(self.results))
AssertionError: FAIL!!! 22 161

Which happens to be:
https://github.com/mosra/m.css/blob/master/documentation/_search.py#L348-L359

I didn't dive into code, but at first glance it is either solvable by increasing the limits, or by adding an option to ignore such cases and just don't include them if the overflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions