Skip to content

Infinite loop in traitsui.extras.demo #792

@ievacerny

Description

@ievacerny

The tutorial application hangs when choosing an element that has a directory as a previous sibling. E.g. choosing sibling2 in this tree would freeze the application:

parent/
    sibling1/
        leaf.py
    sibling2/
        leaf.py

The application hangs because of this infinite loop:

if index > 0:
previous = siblings[index - 1]
previous_children = previous.tno_get_children(previous)
while len(previous_children) > 0:
previous = previous_children[-1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    ETS BacklogGood issue for ETS team members to look attype: bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions