Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursion not detected #3525

Closed
EdorianDark opened this issue Sep 21, 2023 · 1 comment
Closed

Recursion not detected #3525

EdorianDark opened this issue Sep 21, 2023 · 1 comment

Comments

@EdorianDark
Copy link

While testing in https://slint.dev/releases/1.2.1/editor I noticed, that the following leads to continously growing window.

import { Button, HorizontalBox, TextEdit } from "std-widgets.slint";
export component Demo {
    HorizontalBox {
        alignment: start;
        Text {
            text: "Format JSON";
            font-size: 24px;
            horizontal-alignment: center;
        }
        TextEdit {
        font-size: 14px;
        width: parent.width;
        height: parent.height;
        text: "Lorem ipsum dolor sit amet,\n consectetur adipisici elit";
    }
        HorizontalLayout { alignment: center; Button { text: "OK!"; } }
    }
}

I would have expected, that there is an error or warning in this case.

@ogoffart
Copy link
Member

Thanks for the bug report.
This is actually a known problem which is tracked in #2902
We should indeed find a way to make it an error, but that's not trivial to detect unfortunately.
Closing as a duplicate of #2902

@ogoffart ogoffart closed this as not planned Won't fix, can't repro, duplicate, stale Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants