buster / rrun

minimalistic command launcher in rust
GNU General Public License v2.0
112 stars 14 forks source link

cargo install rrun fails #27

Closed fneddy closed 8 years ago

fneddy commented 8 years ago

The installation via cargo install rrun seems to be broken.

$ rustc --version
rustc 1.11.0-nightly (6b4511755 2016-06-14)

$ cargo --version
cargo 0.12.0-nightly (5a26b65 2016-06-14)
$ cargo install rrun
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Compiling bitflags v0.4.0
   Compiling gdk v0.5.0
   Compiling winapi-build v0.1.1
   Compiling gio v0.1.0
   Compiling bitflags v0.5.0
   Compiling strsim v0.4.1
   Compiling vec_map v0.4.0
   Compiling winapi v0.2.7
   Compiling gdk-pixbuf v0.1.0
   Compiling pkg-config v0.3.8
   Compiling utf8-ranges v0.1.3
   Compiling bitflags v0.3.3
   Compiling cairo-rs v0.1.0
   Compiling ansi_term v0.7.2
   Compiling c_vec v1.0.12
   Compiling rustc-serialize v0.3.19
   Compiling kernel32-sys v0.2.2
   Compiling libc v0.2.12
   Compiling log v0.3.6
   Compiling gtk v0.1.0
   Compiling regex-syntax v0.3.3
   Compiling clap v1.5.5
   Compiling itertools v0.4.16
   Compiling memchr v0.1.11
   Compiling thread-id v2.0.0
   Compiling thread_local v0.2.6
   Compiling aho-corasick v0.5.2
   Compiling gio-sys v0.3.1
   Compiling gdk-pixbuf-sys v0.3.1
   Compiling glib-sys v0.3.1
   Compiling cairo-sys-rs v0.3.1
   Compiling gdk-sys v0.3.1
   Compiling atk-sys v0.3.1
   Compiling gtk-sys v0.3.1
   Compiling pango-sys v0.3.1
   Compiling gobject-sys v0.3.1
   Compiling regex v0.1.71
   Compiling glib v0.1.0
   Compiling pango v0.1.0
   Compiling toml v0.1.30
   Compiling env_logger v0.3.3
   Compiling rrun v0.2.0
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:24:5: 24:17 error: unresolved import `gtk::widgets`. There is no `widgets` in `gtk`. Did you mean to use `widget`? [E0432]
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:24 use gtk::widgets;
                                                                              ^~~~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:24:5: 24:17 help: run `rustc --explain E0432` to see a detailed explanation
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:154:30: 154:52 error: failed to resolve. Could not find `widgets` in `gtk` [E0433]
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:154         let completion_list: gtk::widgets::TreeView = builder.get_object("completion_view").unwrap();
                                                                                                        ^~~~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:154:30: 154:52 help: run `rustc --explain E0433` to see a detailed explanation
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:155:20: 155:45 error: failed to resolve. Could not find `widgets` in `gtk` [E0433]
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:155         let entry: gtk::widgets::SearchEntry = builder.get_object("search_entry").unwrap();
                                                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:155:20: 155:45 help: run `rustc --explain E0433` to see a detailed explanation
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:25:5: 25:25 error: module `signal` is private
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:25 use gtk::signal::Inhibit;
                                                                              ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:51:45: 51:51 error: no method named `unwrap` found for type `gtk::TreeViewColumn` in the current scope
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:51     let column = gtk::TreeViewColumn::new().unwrap();
                                                                                                                      ^~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:52:45: 52:51 error: no method named `unwrap` found for type `gtk::CellRendererText` in the current scope
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:52     let cell = gtk::CellRendererText::new().unwrap();
                                                                                                                      ^~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:149:72: 149:82 error: multiple applicable items in scope [E0034]
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:149                 widgets::StyleContext::add_provider_for_screen(&window.get_screen(), &cp, 1);
                                                                                                                                                  ^~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:149:72: 149:82 help: run `rustc --explain E0034` to see a detailed explanation
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:149:72: 149:82 note: candidate #1 is defined in an impl of the trait `gtk::WidgetExt` for the type `_`
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:149:72: 149:82 note: candidate #2 is defined in an impl of the trait `gtk::WindowExt` for the type `_`
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:166:63: 166:69 error: no method named `unwrap` found for type `gtk::ListStore` in the current scope
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:166     let completion_store = gtk::ListStore::new(&column_types).unwrap();
                                                                                                                                         ^~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:209:25: 209:30 error: the trait bound `str: std::marker::Sized` is not satisfied [E0277]
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:209                     let query = entry.get_text().unwrap_or_else(|| panic!("Unable to get string from Entry widget!"));
                                                                                                   ^~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:209:25: 209:30 help: run `rustc --explain E0277` to see a detailed explanation
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:209:25: 209:30 note: `str` does not have a constant size known at compile-time
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:209:25: 209:30 note: all local variables must have a statically known size
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:229:46: 229:54 error: mismatched types [E0308]
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:229                 if last_pressed_key.get() == key::Tab {
                                                                                                                        ^~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:229:46: 229:54 help: run `rustc --explain E0308` to see a detailed explanation
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:229:46: 229:54 note: expected type `i32`
.cargo/registry/src/github.com-1ecc6299db9ec823/rrun-0.2.0/src/main.rs:229:46: 229:54 note:    found type `u32`
error: aborting due to 6 previous errors
error: failed to compile `rrun v0.2.0`, intermediate artifacts can be found at `/tmp/cargo-install.qlPuQqy8lkzh`

Caused by:
  Could not compile `rrun`.

To learn more, run the command again with --verbose.
buster commented 8 years ago

Interesting that Travis still works. I suppose cargo doesn't use the dependencies from Cargo.lock, but from Cargo.toml. I need to move those to Cargo.lock then and maybe update dependencies.

buster commented 8 years ago

Actually this is a bug in cargo: https://github.com/rust-lang/cargo/issues/2263 According to https://users.rust-lang.org/t/cargo-install-and-lock-file/4203/2?u=buster you can still use cargo install --git and it should work. The project may need some more love in updating the dependencies (feel free to do so, i you want!). Expecially the gtk crate might have moved forward. But since this is not a bug in rrun i don't consider it a major priority.

By the way, there are also binaries on github: https://github.com/buster/rrun/releases