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 gitui fails with multiple errors #2222

Closed
kyegupov opened this issue May 8, 2024 · 2 comments
Closed

cargo install gitui fails with multiple errors #2222

kyegupov opened this issue May 8, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@kyegupov
Copy link

kyegupov commented May 8, 2024

Describe the bug
cargo install gitui fails with multiple errors

Seems like the ratatui library had a breaking update.

Screenshots

error[E0308]: mismatched types
    --> /home/$MYSELF/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gitui-0.26.1/src/components/textinput.rs:157:28
     |
157  |                 .set_cursor_line_style(self.theme.text(true, false));
     |                  --------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `ratatui::style::Style`, found a different `ratatui::style::Style`
...
error[E0308]: mismatched types
    --> /home/$MYSELF/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gitui-0.26.1/src/components/textinput.rs:169:6
     |
168  |                   text_area.set_block(
     |                             --------- arguments to this method are incorrect
169  | /                     Block::default()
170  | |                         .borders(Borders::ALL)
171  | |                         .border_style(
172  | |                             ratatui::style::Style::default()
...    |
176  | |                         )
177  | |                         .title(self.title.clone()),
     | |__________________________________________________^ expected `ratatui::widgets::block::Block<'_>`, found `ratatui::widgets::Block<'_>`
...
error[E0277]: the trait bound `impl ratatui::widgets::Widget + '_: Widget` is not satisfied
   --> /home/$MYSELF/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gitui-0.26.1/src/components/textinput.rs:644:20
    |
644 |             f.render_widget(ta.widget(), area);
    |               ------------- ^^^^^^^^^^^ the trait `Widget` is not implemented for `impl ratatui::widgets::Widget + '_`

Context (please complete the following information):

  • Ubuntu 22.04
  • gitui: whatever cargo downloads, apparently gitui v0.26.1
  • Rust stable 1.78.0
@kyegupov kyegupov added the bug Something isn't working label May 8, 2024
@remique
Copy link
Contributor

remique commented May 8, 2024

This has been adressed before (#2098) and is mentioned in README.

Using cargo install gitui --locked should resolve this issue.

@extrawurst
Copy link
Owner

Yes this is a duplicate of #2098

eatradish added a commit to AOSC-Dev/aosc-os-abbs that referenced this issue May 18, 2024
See extrawurst/gitui#2222,
`cargo update` will update `Cargo.lock`, lead to FTBFS
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

3 participants