Skip to content

ToString of model with Parameters causes a stackoverflow #28

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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