-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Attempting to build the window_size
example for desktop on Linux yields the following error:
$ dx serve --platform desktop
22:53:30 [dev] -----------------------------------------------------------------
Serving your Dioxus app: window-size-example
• Press `ctrl+c` to exit the server
• Press `r` to rebuild the app
• Press `p` to toggle automatic rebuilds
• Press `v` to toggle verbose logging
• Press `/` for more commands and shortcuts
Learn more at https://dioxuslabs.com/learn/0.6/getting_started
----------------------------------------------------------------
22:53:30 [cargo] error[E0428]: the name `listen` is defined multiple times
--> packages/window/src/theme.rs:196:1
|
170 | fn listen(mut theme: Signal<ThemeResult>) {
| ----------------------------------------- previous definition of the value `listen` here
...
196 | fn listen(mut theme: Signal<ThemeResult>) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `listen` redefined here
|
= note: `listen` must be defined only once in the value namespace of this module
22:53:30 [cargo] error[E0428]: the name `get_theme_platform` is defined multiple times
--> packages/window/src/theme.rs:276:1
|
257 | fn get_theme_platform() -> ThemeResult {
| -------------------------------------- previous definition of the value `get_theme_platform` here
...
276 | fn get_theme_platform() -> ThemeResult {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `get_theme_platform` redefined here
|
= note: `get_theme_platform` must be defined only once in the value namespace of this module
22:53:31 [cargo] For more information about this error, try `rustc --explain E0428`.
22:53:31 [cargo] error: could not compile `dioxus-window` (lib) due to 2 previous errors
...
$ uname -srvom
Linux 6.14.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 09 May 2025 17:36:18 +0000 x86_64 GNU/Linux
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working