DioxusLabs / DioxusLabs/sdk

window_size example fails to build on linux

Open
#80 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
302
Forks
58
PR merge metrics
No merged PRs in 30d

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) {
| ----------------------------------------- previous definition of the value `listen` here
...
196 | fn listen(mut theme: Signal) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.