Canop / clima

A minimal viewer for Termimad
MIT License
30 stars 7 forks source link

cargo install fails #6

Closed tshepang closed 4 years ago

tshepang commented 4 years ago
...
   Compiling clima v0.0.6
error[E0277]: `?` couldn't convert the error to `termimad::Error`
  --> /home/tshepang/.cargo/registry/src/github.com-1ecc6299db9ec823/clima-0.0.6/src/viewer.rs:27:32
   |
27 |     terminal::enable_raw_mode()?;
   |                                ^ the trait `std::convert::From<crossterm::error::ErrorKind>` is not implemented for `termimad::Error`
   |
   = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
   = help: the following implementations were found:
             <termimad::Error as std::convert::From<crossterm::error::ErrorKind>>
             <termimad::Error as std::convert::From<std::io::Error>>
   = note: required by `std::convert::From::from`

This is followed by other similar errors.

Canop commented 4 years ago

Can you test again ? And if it fails please tell me what rust version you're using.

tshepang commented 4 years ago

Sorry, that's me using cargo install clima, not git version.

tshepang commented 4 years ago

With git version...

❯ cargo install --path .
error: current package believes it's in a workspace when it's not:
current:   /home/tshepang/rust/rustc/clima/Cargo.toml
workspace: /home/tshepang/rust/rustc/Cargo.toml

this may be fixable by adding `clima` to the `workspace.members` array of the manifest located at: /home/tshepang/rust/rustc/Cargo.toml
Canop commented 4 years ago

I just updated the version you get with cargo install (to lock dependency versions because I suspect an incompatible one). The version of rust can be checked with rustc --version

tshepang commented 4 years ago
rustc 1.42.0 (b8cedc004 2020-03-09)
Canop commented 4 years ago

Can you please come to the chat ?

tshepang commented 4 years ago

new release, just uploaded, fixes this issue