Closed IngoTB303 closed 2 months ago
Same errors under Linux Mint 21.3 x86_64.
Hi, this seems to be a problem with tui-textarea
suddenly expecting stGructs from ratatui 0.28
while the project is still on version 0.27
.
This can be solved by installing with the --locked
flag, i.e. cargo install --locked --path .
, which is suggested for applications anyway.
I'll update the instructions to mention that.
I hope this does not affect other installers - I will try to update to the latest versions of ratatui
/tui-textarea
soon and release a new version that makes sure all installs are handled with the --locked
flag.
rustup update: stable-x86_64-pc-windows-msvc unchanged - rustc 1.80.1 (3f5fd8dd4 2024-08-06) cargo --version: cargo 1.80.1 (376290515 2024-07-16)
"cargo install rucola-notes" runs and compiles until: Compiling tui-textarea v0.4.0 Then there are 14 compile errors. The same when I build it manually with "git clone https://github.com/Linus-Mussmaecher/rucola cd rucola cargo install --path ."
Errors:
ratatui::style::Style
, foundratatui::prelude::Style
ratatui::prelude::Style
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.27.0\src\style.rs:228:1ratatui::style::Style
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.28.0\src\style.rs:228:1note: method defined here --> C:\Users....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) { | ^^^^^^^^^
ratatui::style::Style
, foundratatui::prelude::Style
ratatui::prelude::Style
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.27.0\src\style.rs:228:1ratatui::style::Style
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.28.0\src\style.rs:228:1note: method defined here --> C:\Users....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) { | ^^^^^^^^^^^^^^^^^^^^^
Block<'_>
, foundratatui::widgets::Block<'_>
ratatui::widgets::Block<'_>
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.27.0\src\widgets\block.rs:67:1Block<'_>
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.28.0\src\widgets\block.rs:109:1note: method defined here --> C:\Users....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>) { | ^^^^^^^^^
ratatui::style::Style
, foundratatui::prelude::Style
ratatui::prelude::Style
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.27.0\src\style.rs:228:1ratatui::style::Style
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.28.0\src\style.rs:228:1note: method defined here --> C:\Users....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) { | ^^^^^^^^^
ratatui::style::Style
, foundratatui::prelude::Style
ratatui::prelude::Style
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.27.0\src\style.rs:228:1ratatui::style::Style
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.28.0\src\style.rs:228:1note: method defined here --> C:\Users....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) { | ^^^^^^^^^^^^^^^^^^^^^
Block<'_>
, foundratatui::widgets::Block<'_>
ratatui::widgets::Block<'_>
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.27.0\src\widgets\block.rs:67:1Block<'_>
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.28.0\src\widgets\block.rs:109:1note: method defined here --> C:\Users....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>) { | ^^^^^^^^^
Block<'_>
, foundratatui::widgets::Block<'_>
ratatui::widgets::Block<'_>
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.27.0\src\widgets\block.rs:67:1Block<'_>
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.28.0\src\widgets\block.rs:109:1note: method defined here --> C:\Users....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 + '_: ratatui::prelude::Widget
is not satisfied --> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\rucola-notes-0.3.6\src\ui\screen\select_screen.rs:733:24ratatui::prelude::Widget
is not implemented forimpl ratatui::widgets::Widget + '_
impl ratatui::widgets::Widget + '_: ratatui::prelude::Widget
is not satisfied --> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\rucola-notes-0.3.6\src\ui\screen\select_screen.rs:825:32ratatui::prelude::Widget
is not implemented forimpl ratatui::widgets::Widget + '_
ratatui::style::Style
, foundratatui::prelude::Style
ratatui::prelude::Style
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.27.0\src\style.rs:228:1ratatui::style::Style
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.28.0\src\style.rs:228:1note: method defined here --> C:\Users....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) { | ^^^^^^^^^
ratatui::style::Style
, foundratatui::prelude::Style
ratatui::prelude::Style
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.27.0\src\style.rs:228:1ratatui::style::Style
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.28.0\src\style.rs:228:1note: method defined here --> C:\Users....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) { | ^^^^^^^^^^^^^^^^^^^^^
Block<'_>
, foundratatui::widgets::Block<'_>
ratatui::widgets::Block<'_>
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.27.0\src\widgets\block.rs:67:1Block<'_>
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.28.0\src\widgets\block.rs:109:1note: method defined here --> C:\Users....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>) { | ^^^^^^^^^
Block<'_>
, foundratatui::widgets::Block<'_>
ratatui::widgets::Block<'_>
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.27.0\src\widgets\block.rs:67:1Block<'_>
is defined in crateratatui
--> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\ratatui-0.28.0\src\widgets\block.rs:109:1note: method defined here --> C:\Users....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 + '_: ratatui::prelude::Widget
is not satisfied --> C:\Users....cargo\registry\src\index.crates.io-6f17d22bba15001f\rucola-notes-0.3.6\src\ui\screen\display_screen.rs:243:32ratatui::prelude::Widget
is not implemented forimpl ratatui::widgets::Widget + '_
Some errors have detailed explanations: E0277, E0308. For more information about an error, try
rustc --explain E0277
. error: could not compilerucola-notes
(bin "rucola") due to 14 previous errors error: failed to compilerucola-notes v0.3.6
, intermediate artifacts can be found atC:\Users\...\AppData\Local\Temp\cargo-installrXdKek
. To reuse those artifacts with a future compilation, set the environment variableCARGO_TARGET_DIR
to that path.