`cargo install` failing
ByteOtter opened this issue · comments
Christopher Hock commented
Hi there,
just tried to install Poketex using cargo install
however it fails with this message:
<Text<'a> as From<Vec<ratatui::text::Line<'a>>>>
= note: required for `ratatui::text::text::Text<'_>` to implement `Into<Text<'_>>`
note: required by a bound in `Paragraph::<'a>::new`
--> /home/chris/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.25.0/src/widgets/paragraph.rs:116:12
|
114 | pub fn new<T>(text: T) -> Paragraph<'a>
| --- required by a bound in this associated function
115 | where
116 | T: Into<Text<'a>>,
| ^^^^^^^^^^^^^^ required by this bound in `Paragraph::<'a>::new`
For more information about this error, try `rustc --explain E0277`.
error: could not compile `poketex` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `poketex v1.11.0`, intermediate artifacts can be found at `/tmp/cargo-installc1s79T`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
From what I can tell it expects Text to implement some trait which it doesn't implement (?).
I'm using cargo and rustc version 1.72.0 if that's of any help. :)
ckaznable commented
This may be due to the default use of ratatui=^0.25.0
and therefore the use of ratatui=0.26.0
, resulting in an error.
I'll be releasing the next version soon to fix this kind of problem.
ckaznable commented
It looks like you need to use cargo install poketex --locked
, which I've also updated in the README.
Christopher Hock commented
Looks like that worked, thanks for the quick reply!