andreykaere / ixwindow

Iconized xwindow module for Polybar (for bspwm and i3wm)
38 stars 3 forks source link

cargo install compilation error #8

Closed zSnails closed 1 year ago

zSnails commented 1 year ago

I'm trying to install ixwindow through cargo, got the following errors during compilation of the ixwindow crate

error[E0425]: cannot find function `subscribe` in crate `bspc`
  --> /home/ayaka/.cargo/registry/src/github.com-1ecc6299db9ec823/ixwindow-0.1.2/src/bspwm.rs:27:28
   |
27 |     let subscriber = bspc::subscribe(&subscriptions, false, None)
   |                            ^^^^^^^^^ not found in `bspc`
   |
help: consider importing one of these items
   |
1  | use bspc_rs::events::subscribe;
   |
1  | use crate::bspwm::bspc::events::subscribe;
   |
help: if you import `subscribe`, refer to it directly
   |
27 -     let subscriber = bspc::subscribe(&subscriptions, false, None)
27 +     let subscriber = subscribe(&subscriptions, false, None)
   |

error[E0425]: cannot find function `query_desktops` in crate `bspc`
  --> /home/ayaka/.cargo/registry/src/github.com-1ecc6299db9ec823/ixwindow-0.1.2/src/wm_connection.rs:91:34
   |
91 |         let query_result = bspc::query_desktops(
   |                                  ^^^^^^^^^^^^^^ not found in `bspc`
   |
help: consider importing one of these items
   |
1  | use bspc_rs::query::query_desktops;
   |
1  | use crate::wm_connection::bspc::query::query_desktops;
   |
help: if you import `query_desktops`, refer to it directly
   |
91 -         let query_result = bspc::query_desktops(
91 +         let query_result = query_desktops(
   |

error[E0425]: cannot find function `query_nodes` in crate `bspc`
   --> /home/ayaka/.cargo/registry/src/github.com-1ecc6299db9ec823/ixwindow-0.1.2/src/wm_connection.rs:104:34
    |
104 |         let query_result = bspc::query_nodes(
    |                                  ^^^^^^^^^^^ not found in `bspc`
    |
help: consider importing one of these items
    |
1   | use bspc_rs::query::query_nodes;
    |
1   | use crate::wm_connection::bspc::query::query_nodes;
    |
help: if you import `query_nodes`, refer to it directly
    |
104 -         let query_result = bspc::query_nodes(
104 +         let query_result = query_nodes(
    |

error[E0425]: cannot find function `query_nodes` in crate `bspc`
   --> /home/ayaka/.cargo/registry/src/github.com-1ecc6299db9ec823/ixwindow-0.1.2/src/wm_connection.rs:115:34
    |
115 |         let query_result = bspc::query_nodes(
    |                                  ^^^^^^^^^^^ not found in `bspc`
    |
help: consider importing one of these items
    |
1   | use bspc_rs::query::query_nodes;
    |
1   | use crate::wm_connection::bspc::query::query_nodes;
    |
help: if you import `query_nodes`, refer to it directly
    |
115 -         let query_result = bspc::query_nodes(
115 +         let query_result = query_nodes(
    |

error[E0425]: cannot find function `query_nodes` in crate `bspc`
   --> /home/ayaka/.cargo/registry/src/github.com-1ecc6299db9ec823/ixwindow-0.1.2/src/wm_connection.rs:127:34
    |
127 |         let query_result = bspc::query_nodes(
    |                                  ^^^^^^^^^^^ not found in `bspc`
    |
help: consider importing one of these items
    |
1   | use bspc_rs::query::query_nodes;
    |
1   | use crate::wm_connection::bspc::query::query_nodes;
    |
help: if you import `query_nodes`, refer to it directly
    |
127 -         let query_result = bspc::query_nodes(
127 +         let query_result = query_nodes(
    |

error[E0425]: cannot find function `query_desktops` in crate `bspc`
   --> /home/ayaka/.cargo/registry/src/github.com-1ecc6299db9ec823/ixwindow-0.1.2/src/wm_connection.rs:138:34
    |
138 |         let query_result = bspc::query_desktops(
    |                                  ^^^^^^^^^^^^^^ not found in `bspc`
    |
help: consider importing one of these items
    |
1   | use bspc_rs::query::query_desktops;
    |
1   | use crate::wm_connection::bspc::query::query_desktops;
    |
help: if you import `query_desktops`, refer to it directly
    |
138 -         let query_result = bspc::query_desktops(
138 +         let query_result = query_desktops(
    |
andreykaere commented 1 year ago

This is happening, because it fetches wrong version of bspc-rs module. You can install ixwindow using the following command: cargo install ixwindow --locked. For now I am not gonna add hotfix to handle this or update README, because I am gonna refactor code and submit a new release where it will be fixed.