Open NilsWer opened 2 months ago
cargo install gitui --locked
worked for me.
this works for me too, using ratatui v0.26.3
I read a little in the book and --locked does not look like a good permanent solution to me.
The downside to using --locked is that you will not receive any fixes or updates to any dependency. Note that Cargo did not start publishing Cargo.lock files until version 1.37, which means packages published with prior versions will not have a Cargo.lock file available. https://doc.rust-lang.org/cargo/commands/cargo-install.html
Describe the bug
cargo install gitui
fails. ratatui version seems to be outdated at https://crates.io/crates/gitui/0.26.3/dependencies (^0.26) compared to Cargo.toml in git-repo (0.27) (https://github.com/extrawurst/gitui/commit/95bbbda9af9a31830b32f491a8308e667c017f94)Compiling the git-repo works fine.
Reproduce
does not work
works
Context (please complete the following information)
0.26.3
1.80
Additional context
Whole error:
ratatui::style::Style
, found a differratatui::style::Style
is defined in crateratatui
--> /home/nick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.26.3/src/style.rs:227:1ratatui::style::Style
is defined in crateratatui
--> /home/nick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.28.1/src/style.rs:228:1note: method defined here --> /home/nick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tui-textarea-0.4.0/src/textarea.rs:1770:12 | 1770 | pub fn set_cursor_line_style(&mut self, style: Style) { | ^^^^^^^^^^^^^^^^^^^^^
ratatui::style::Style
, found a diffratatui::style::Style
is defined in crateratatui
--> /home/nick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.26.3/src/style.rs:227:1ratatui::style::Style
is defined in crateratatui
--> /home/nick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.28.1/src/style.rs:228:1note: method defined here --> /home/nick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tui-textarea-0.4.0/src/textarea.rs:1850:12 | 1850 | pub fn set_placeholder_style(&mut self, style: Style) { | ^^^^^^^^^^^^^^^^^^^^^
ratatui::style::Style
, found a diffratatui::style::Style
is defined in crateratatui
--> /home/nick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.26.3/src/style.rs:227:1ratatui::style::Style
is defined in crateratatui
--> /home/nick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.28.1/src/style.rs:228:1note: method defined here --> /home/nick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tui-textarea-0.4.0/src/textarea.rs:1629:12 | 1629 | pub fn set_style(&mut self, style: Style) { | ^^^^^^^^^
Block<'_>
, foundratatui::widgets::Block<'_>
ratatui::widgets::Block<'_>
is defined in crateratatui
--> /home/nick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.26.3/src/widgets/block.rs:64:1Block<'_>
is defined in crateratatui
--> /home/nick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.28.1/src/widgets/block.rs:109:1note: method defined here --> /home/nick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tui-textarea-0.4.0/src/textarea.rs:1648:12 | 1648 | pub fn set_block(&mut self, block: Block<'a>) { | ^^^^^^^^^
impl ratatui::widgets::Widget + '_: Widget
is not satisfied --> /home/nick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gitui-0.26.3/src/components/textinput.rs:644:20Widget
is not implemented forimpl ratatui::widgets::Widget + '_
note: required by a bound in(&mut self, widget: W, area: Rect) {
| ^^^^^^ required by this bound in `Frame::<' >::render_widget`
ratatui::Frame::<'_>::render_widget
--> /home/nick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.26.3/src/terminal/frame.rs:74:29 | 74 | pub fn renderwidgetSome errors have detailed explanations: E0277, E0308. For more information about an error, try
rustc --explain E0277
. The following warnings were emitted during compilation:warning: gitui@0.26.3: buildname 'nightly 2024-08-28 (17ca14e)'
error: could not compile
gitui
(bin "gitui") due to 5 previous errors error: failed to compilegitui v0.26.3
, intermediate artifacts can be found at/tmp/cargo-installfSFcy2
. To reuse those artifacts with a future compilation, set the environment variableCARGO_TARGET_DIR
to that path.