glzr-io / zebar

Zebar is a tool for creating customizable and cross-platform taskbars, desktop widgets, and popups.
GNU General Public License v3.0
161 stars 13 forks source link

Compile error on WSL #61

Open markox92 opened 1 week ago

markox92 commented 1 week ago

I'm trying on WSL to compile from source but can't find what is wrong.

packages/client dev: [TypeScript] Found 0 errors. Watching for file changes.
packages/client-api dev: DTS ⚡️ Build success in 5579ms
packages/desktop dev: error: cannot find attribute `unix_sigpipe` in this scope
packages/desktop dev:    --> src/main.rs:105:3
packages/desktop dev:     |
packages/desktop dev: 105 | #[unix_sigpipe = "sig_dfl"]
packages/desktop dev:     |   ^^^^^^^^^^^^
packages/desktop dev: warning: unused import: `crate::util::window_ext::WindowExt`
packages/desktop dev:   --> src/main.rs:24:5
packages/desktop dev:    |
packages/desktop dev: 24 | use crate::util::window_ext::WindowExt;
packages/desktop dev:    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
packages/desktop dev:    |
packages/desktop dev:    = note: `#[warn(unused_imports)]` on by default
packages/desktop dev: warning: unused import: `anyhow::Result`
packages/desktop dev:  --> src/util/window_ext.rs:1:5
packages/desktop dev:   |
packages/desktop dev: 1 | use anyhow::Result;
packages/desktop dev:   |     ^^^^^^^^^^^^^^
packages/desktop dev: error[E0635]: unknown feature `unix_sigpipe`
packages/desktop dev:  --> src/main.rs:1:12
packages/desktop dev:   |
packages/desktop dev: 1 | #![feature(unix_sigpipe)]
packages/desktop dev:   |            ^^^^^^^^^^^^
packages/desktop dev: For more information about this error, try `rustc --explain E0635`.
packages/desktop dev: error: could not compile `desktop` (bin "desktop") due to 2 previous errors; 2 warnings emitted
aquapaka commented 6 days ago

I tried to compile and get those error too. After doing some look up, I found that that unix_sigpipe feature seems to be removed.