floem
floem copied to clipboard
animations example: `unknown type for floem::style::BorderRadius`
I got a panic when trying to cargo run
the animations
example.
To reproduce:
git clone https://github.com/lapce/floem
cd floem/examples/animations
RUST_BACKTRACE=1 cargo run
$ RUST_BACKTRACE=1 cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.11s
Running `/home/homestar/tmp/floem/target/debug/animations`
thread 'main' panicked at src/animate/prop.rs:148:17:
unknown type for floem::style::BorderRadius
stack backtrace:
0: rust_begin_unwind
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5
1: core::panicking::panic_fmt
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14
2: floem::animate::prop::AnimatedProp::animate
at /home/homestar/tmp/floem/src/animate/prop.rs:148:17
3: floem::animate::animation::Animation::animate_prop
at /home/homestar/tmp/floem/src/animate/animation.rs:339:13
4: floem::view_data::ViewState::compute_style
at /home/homestar/tmp/floem/src/view_data.rs:221:25
5: floem::context::AppState::compute_style
at /home/homestar/tmp/floem/src/context.rs:276:9
6: floem::context::StyleCx::style_view
at /home/homestar/tmp/floem/src/context.rs:1085:29
7: floem::view::View::style::{{closure}}
at /home/homestar/tmp/floem/src/view.rs:183:13
8: <floem::views::stack::Stack as floem::view::View>::for_each_child_mut
at /home/homestar/tmp/floem/src/views/stack.rs:105:16
9: floem::view::View::style
at /home/homestar/tmp/floem/src/view.rs:182:9
10: <alloc::boxed::Box<dyn floem::view::View> as floem::view::View>::style
at /home/homestar/tmp/floem/src/view.rs:680:9
11: <alloc::boxed::Box<dyn floem::view::View> as floem::view::View>::style
at /home/homestar/tmp/floem/src/view.rs:680:9
12: floem::context::StyleCx::style_view
at /home/homestar/tmp/floem/src/context.rs:1132:9
13: floem::view::View::style::{{closure}}
at /home/homestar/tmp/floem/src/view.rs:183:13
14: <floem::views::container_box::ContainerBox as floem::view::View>::for_each_child_mut
at /home/homestar/tmp/floem/src/views/container_box.rs:68:9
15: floem::view::View::style
at /home/homestar/tmp/floem/src/view.rs:182:9
16: <alloc::boxed::Box<dyn floem::view::View> as floem::view::View>::style
at /home/homestar/tmp/floem/src/view.rs:680:9
17: floem::context::StyleCx::style_view
at /home/homestar/tmp/floem/src/context.rs:1132:9
18: floem::view::View::style::{{closure}}
at /home/homestar/tmp/floem/src/view.rs:183:13
19: <floem::views::stack::Stack as floem::view::View>::for_each_child_mut
at /home/homestar/tmp/floem/src/views/stack.rs:105:16
20: floem::view::View::style
at /home/homestar/tmp/floem/src/view.rs:182:9
21: <alloc::boxed::Box<dyn floem::view::View> as floem::view::View>::style
at /home/homestar/tmp/floem/src/view.rs:680:9
22: floem::context::StyleCx::style_view
at /home/homestar/tmp/floem/src/context.rs:1132:9
23: floem::view::View::style::{{closure}}
at /home/homestar/tmp/floem/src/view.rs:183:13
24: <floem::window_handle::WindowView as floem::view::View>::for_each_child_mut
at /home/homestar/tmp/floem/src/window_handle.rs:1596:9
25: floem::view::View::style
at /home/homestar/tmp/floem/src/view.rs:182:9
26: floem::context::StyleCx::style_view
at /home/homestar/tmp/floem/src/context.rs:1132:9
27: floem::window_handle::WindowHandle::style
at /home/homestar/tmp/floem/src/window_handle.rs:503:9
28: floem::window_handle::WindowHandle::process_update_no_paint
at /home/homestar/tmp/floem/src/window_handle.rs:673:17
29: floem::window_handle::WindowHandle::process_update
at /home/homestar/tmp/floem/src/window_handle.rs:651:12
30: floem::app_handle::ApplicationHandle::idle
at /home/homestar/tmp/floem/src/app_handle.rs:330:13
31: floem::app::Application::run
at /home/homestar/tmp/floem/src/app.rs:132:9
32: floem::app::launch
at /home/homestar/tmp/floem/src/app.rs:29:5
33: animations::main
at ./src/main.rs:87:5
34: core::ops::function::FnOnce::call_once
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Same problem on my Windows 11 box.