Skip to content

ToString of model with Parameters causes a stackoverflow #28

@houstonhaynes

Description

@houstonhaynes

ToString of model with Parameters causes a stackoverflow

Issue #435 | Created by @sir-deenicus | 2022-07-05 13:00:53 UTC |

A basic model with parameters causes a stack overflow when printed to interactive.

I think this is related to fact that in ToString() there is:

for mm in m.descendants do

but descendants in turn has m :: [for child in m.children do yield! child.descendants], adding itself to descendants. Unsure why this seems to only occur for parameters, not buffers or models.

A simple m <> mm resolves the crash but I'm not sure if that's the correct action to take.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions