Closed BoolPurist closed 11 months ago
Thanks for the bug report. I can reproduce it.
Simpler testcase:
export component Demo {
GridLayout {
if false: Row {}
}
}
Note: if
is currently not supported in GridLayout.
Next version will show a proper error instead of a panic.
Thanks for reporting the panic.
Used platform:
Happens with Visual studio code extension I foucus on desktop development for my application
Using following extension: "Slint" Version: 1.2.2 Identifier: slint.slint
My OS:
OS: Fedora Linux 38 (Cinnamon) x86_64 Kernel: 6.5.7-200.fc38.x86_64
Programming language
Rust
Problem
LSP sever crashes if the preview of the GUI is started in Visual studio Code. I seem to happen if I wrap my imported element in a if statemt which produces a Row within a GridLayout.
Steps to reproduce
Error message in Slint LPS output:
What I expected
I want to see a preview window for the GUI.
Slint code
Code of main.slint file Note: Left many other parts out and it stills causes the error.
Code of date_diff.slint file which imported by the main.slint file: