rhysd/tui-textarea

Crate fails to compile with Ratatui, even after following docs

nouritsu opened this issue · 4 comments

This is my Cargo.toml file

[dependencies]
ratatui = { version = "0.22.0", features = ["all-widgets"] }
tui-textarea = { version = "*", features = [
    "ratatui-crossterm",
], default-features = false }

Added Ratatui using cargo add.
Compiling using cargo build leads to the following error -

error: failed to select a version for `tui-textarea`.
    ... required by package `spectrumize v0.1.0 (C:\code-projects\rs-spectrumize\spectrumize)`
versions that meet the requirements `*` (locked to 0.2.0) are: 0.2.0

the package `spectrumize` depends on `tui-textarea`, with features: `ratatui-crossterm` but `tui-textarea` does not have these features.


failed to select a version for `tui-textarea` which could resolve this conflict

This is the solution that the docs mention to get things working with Ratatui. This build seems to fail, why?

same issue!

Same here; but you can palliate it on compiling against one of the forks proposing a PR.

You can use ratatui-textarea a fully supported tui-textarea for ratatui