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

Panic when referencing property i changed callback from conditional element #6453

Open
ogoffart opened this issue Oct 5, 2024 · 0 comments
Labels
a:models&views The implementation of the `for` and ListView (mO,bF) bug Something isn't working

Comments

@ogoffart
Copy link
Member

ogoffart commented Oct 5, 2024

Here another similar problem 🙈

export component AppWindow inherits Window {

    out property <length> scene-width;

    HorizontalLayout {
        if true: Rectangle {
            changed width => {
                scene-width = self.width;
            }
        }
    }
}

WIth a different error message:

thread 'main' panicked at /home/runner/work/slint/slint/internal/core/model.rs:928:38:
already borrowed: BorrowMutError
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Info  - 10:23:16 PM] Connection to server got closed. Server will restart.
true
The Slint Language Server crashed. This is a bug. Please open an issue on https://github.com/slint-ui/slint/issues
The Slint Language Server crashed. This is a bug. Please open an issue on https://github.com/slint-ui/slint/issues
The Slint Language Server crashed. This is a bug. Please open an issue on https://github.com/slint-ui/slint/issues

Slint 1.8.0 LSP in VSCode extension on Linux

Originally posted by @ubruhin in #6426 (comment)

@ogoffart ogoffart added bug Something isn't working a:models&views The implementation of the `for` and ListView (mO,bF) labels Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:models&views The implementation of the `for` and ListView (mO,bF) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant