Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo install gpg-tui fails without --locked (as in README ) #291

Open
Igonato opened this issue Oct 25, 2024 · 0 comments
Open

cargo install gpg-tui fails without --locked (as in README ) #291

Igonato opened this issue Oct 25, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Igonato
Copy link

Igonato commented Oct 25, 2024

Describe the bug

Installation through cargo (cargo install gpg-tui ) fails on Ubuntu 24.04 while cargo install --locked gpg-tui works. Readme update maybe?

Error log

...
   Compiling gpg-tui v0.11.0
error[E0277]: the trait bound `&mut SplashScreen: Widget` is not satisfied
  --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gpg-tui-0.11.0/src/app/renderer.rs:32:23
   |
32 |         frame.render_widget(&mut app.splash_screen, rect);
   |               ------------- ^^^^^^^^^^^^^^^^^^^^^^ the trait `Widget` is not implemented for `&mut SplashScreen`
   |               |
   |               required by a bound introduced by this call
   |
   = help: the following other types implement trait `Widget`:
             &W
             &str
             BarChart<'_>
             Canvas<'_, F>
             Chart<'_>
             Gauge<'_>
             LineGauge<'_>
             List<'_>
           and 10 others
note: required by a bound in `Frame::<'_>::render_widget`
  --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.26.3/src/terminal/frame.rs:74:29
   |
74 |     pub fn render_widget<W: Widget>(&mut self, widget: W, area: Rect) {
   |                             ^^^^^^ required by this bound in `Frame::<'_>::render_widget`

error[E0308]: mismatched types
    --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gpg-tui-0.11.0/src/app/renderer.rs:68:16
     |
68   |         .style_trace(Style::default().fg(Color::DarkGray))
     |          ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `ratatui::style::Style`, found a different `ratatui::style::Style`
     |          |
     |          arguments to this method are incorrect
     |
     = note: `ratatui::style::Style` and `ratatui::style::Style` have similar names, but are actually distinct types
note: `ratatui::style::Style` is defined in crate `ratatui`
    --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.26.3/src/style.rs:227:1
     |
227  | pub struct Style {
     | ^^^^^^^^^^^^^^^^
note: `ratatui::style::Style` is defined in crate `ratatui`
    --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.27.0/src/style.rs:228:1
     |
228  | pub struct Style {
     | ^^^^^^^^^^^^^^^^
     = note: perhaps two different versions of crate `ratatui` are being used?
note: method defined here
    --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tui-logger-0.11.2/src/lib.rs:1315:12
     |
1315 |     pub fn style_trace(mut self, style: Style) -> Self {
     |            ^^^^^^^^^^^

error[E0308]: mismatched types
    --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gpg-tui-0.11.0/src/app/renderer.rs:69:16
     |
69   |         .style_debug(Style::default().fg(Color::Blue))
     |          ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `ratatui::style::Style`, found a different `ratatui::style::Style`
     |          |
     |          arguments to this method are incorrect
     |
     = note: `ratatui::style::Style` and `ratatui::style::Style` have similar names, but are actually distinct types
note: `ratatui::style::Style` is defined in crate `ratatui`
    --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.26.3/src/style.rs:227:1
     |
227  | pub struct Style {
     | ^^^^^^^^^^^^^^^^
note: `ratatui::style::Style` is defined in crate `ratatui`
    --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.27.0/src/style.rs:228:1
     |
228  | pub struct Style {
     | ^^^^^^^^^^^^^^^^
     = note: perhaps two different versions of crate `ratatui` are being used?
note: method defined here
    --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tui-logger-0.11.2/src/lib.rs:1319:12
     |
1319 |     pub fn style_debug(mut self, style: Style) -> Self {
     |            ^^^^^^^^^^^

error[E0308]: mismatched types
    --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gpg-tui-0.11.0/src/app/renderer.rs:70:15
     |
70   |         .style_warn(Style::default().fg(Color::Yellow))
     |          ---------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `ratatui::style::Style`, found a different `ratatui::style::Style`
     |          |
     |          arguments to this method are incorrect
     |
     = note: `ratatui::style::Style` and `ratatui::style::Style` have similar names, but are actually distinct types
note: `ratatui::style::Style` is defined in crate `ratatui`
    --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.26.3/src/style.rs:227:1
     |
227  | pub struct Style {
     | ^^^^^^^^^^^^^^^^
note: `ratatui::style::Style` is defined in crate `ratatui`
    --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.27.0/src/style.rs:228:1
     |
228  | pub struct Style {
     | ^^^^^^^^^^^^^^^^
     = note: perhaps two different versions of crate `ratatui` are being used?
note: method defined here
    --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tui-logger-0.11.2/src/lib.rs:1307:12
     |
1307 |     pub fn style_warn(mut self, style: Style) -> Self {
     |            ^^^^^^^^^^

error[E0308]: mismatched types
    --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gpg-tui-0.11.0/src/app/renderer.rs:71:16
     |
71   |         .style_error(Style::default().fg(Color::Red))
     |          ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `ratatui::style::Style`, found a different `ratatui::style::Style`
     |          |
     |          arguments to this method are incorrect
     |
     = note: `ratatui::style::Style` and `ratatui::style::Style` have similar names, but are actually distinct types
note: `ratatui::style::Style` is defined in crate `ratatui`
    --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.26.3/src/style.rs:227:1
     |
227  | pub struct Style {
     | ^^^^^^^^^^^^^^^^
note: `ratatui::style::Style` is defined in crate `ratatui`
    --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.27.0/src/style.rs:228:1
     |
228  | pub struct Style {
     | ^^^^^^^^^^^^^^^^
     = note: perhaps two different versions of crate `ratatui` are being used?
note: method defined here
    --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tui-logger-0.11.2/src/lib.rs:1303:12
     |
1303 |     pub fn style_error(mut self, style: Style) -> Self {
     |            ^^^^^^^^^^^

error[E0308]: mismatched types
    --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gpg-tui-0.11.0/src/app/renderer.rs:72:15
     |
72   |         .style_info(Style::default().fg(Color::Green))
     |          ---------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `ratatui::style::Style`, found a different `ratatui::style::Style`
     |          |
     |          arguments to this method are incorrect
     |
     = note: `ratatui::style::Style` and `ratatui::style::Style` have similar names, but are actually distinct types
note: `ratatui::style::Style` is defined in crate `ratatui`
    --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.26.3/src/style.rs:227:1
     |
227  | pub struct Style {
     | ^^^^^^^^^^^^^^^^
note: `ratatui::style::Style` is defined in crate `ratatui`
    --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.27.0/src/style.rs:228:1
     |
228  | pub struct Style {
     | ^^^^^^^^^^^^^^^^
     = note: perhaps two different versions of crate `ratatui` are being used?
note: method defined here
    --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tui-logger-0.11.2/src/lib.rs:1311:12
     |
1311 |     pub fn style_info(mut self, style: Style) -> Self {
     |            ^^^^^^^^^^

error[E0308]: mismatched types
   --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gpg-tui-0.11.0/src/app/renderer.rs:74:4
    |
74  |             Style::default().add_modifier(Modifier::BOLD)
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `ratatui::style::Style`, found a different `ratatui::style::Style`
    |
    = note: `ratatui::style::Style` and `ratatui::style::Style` have similar names, but are actually distinct types
note: `ratatui::style::Style` is defined in crate `ratatui`
   --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.26.3/src/style.rs:227:1
    |
227 | pub struct Style {
    | ^^^^^^^^^^^^^^^^
note: `ratatui::style::Style` is defined in crate `ratatui`
   --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.27.0/src/style.rs:228:1
    |
228 | pub struct Style {
    | ^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `ratatui` are being used?

error[E0308]: mismatched types
   --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gpg-tui-0.11.0/src/app/renderer.rs:76:4
    |
76  | /             Style::default()
77  | |                 .fg(Color::Reset)
78  | |                 .add_modifier(Modifier::BOLD)
    | |_____________________________________________^ expected `ratatui::style::Style`, found a different `ratatui::style::Style`
    |
    = note: `ratatui::style::Style` and `ratatui::style::Style` have similar names, but are actually distinct types
note: `ratatui::style::Style` is defined in crate `ratatui`
   --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.26.3/src/style.rs:227:1
    |
227 | pub struct Style {
    | ^^^^^^^^^^^^^^^^
note: `ratatui::style::Style` is defined in crate `ratatui`
   --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.27.0/src/style.rs:228:1
    |
228 | pub struct Style {
    | ^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `ratatui` are being used?

error[E0277]: the trait bound `TuiLoggerSmartWidget<'_>: Widget` is not satisfied
  --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gpg-tui-0.11.0/src/app/renderer.rs:87:22
   |
87 |     frame.render_widget(logger_widget, rect);
   |           ------------- ^^^^^^^^^^^^^ the trait `Widget` is not implemented for `TuiLoggerSmartWidget<'_>`
   |           |
   |           required by a bound introduced by this call
   |
   = help: the following other types implement trait `Widget`:
             &W
             &str
             BarChart<'_>
             Canvas<'_, F>
             Chart<'_>
             Gauge<'_>
             LineGauge<'_>
             List<'_>
           and 10 others
note: required by a bound in `Frame::<'_>::render_widget`
  --> /home/ignat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.26.3/src/terminal/frame.rs:74:29
   |
74 |     pub fn render_widget<W: Widget>(&mut self, widget: W, area: Rect) {
   |                             ^^^^^^ required by this bound in `Frame::<'_>::render_widget`

Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `gpg-tui` (lib) due to 9 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `gpg-tui v0.11.0`, intermediate artifacts can be found at `/tmp/cargo-installDAD76H`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

@Igonato Igonato added the bug Something isn't working label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants