Skip to content

Assertion error #78

@svartkanin

Description

@svartkanin

Apologies in advance as I'm struggling to create a minimal example that reproduces this error, regardless I'll file a bug report as it may be clearer to the author what's going on.

...
  File "/home/dan/Git/archinstall/.venv/lib/python3.11/site-packages/simple_term_menu.py", line 1598, in show
    self._clear_menu()
  File "/home/dan/Git/archinstall/.venv/lib/python3.11/site-packages/simple_term_menu.py", line 1441, in _clear_menu
    assert self._previous_displayed_menu_height is not None
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

It seems that the assertion on line 1441 is failing as the _previous_displayed_menu_height variable is None.
I did search the code for the usage and I could find only a single place where it's actually assigned which is on line 1435.
The function this assignment happens in doesn't seem to be used anywhere though?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions