[BUG] Compilation of wiki-tui fails
General Information Version: 0.9.1 Installation Method: Cargo Operating System: Windows 10
Describe the bug I wanted to install the latest wiki-tui version, but the build failed.
To Reproduce Steps to reproduce the behavior:
- run
cargo install wiki-tui
Expected behavior Package should've built and installed correctly.
Crash report (if available)
Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `wiki-tui` (lib) due to 7 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `wiki-tui v0.9.1`, intermediate artifacts can be found at `C:\Users\Niklas\AppData\Local\Temp\cargo-installbleshY`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
error[E0277]: the trait bound `TuiLoggerWidget<'_>: Widget` is not satisfied
--> C:\Users\<Me>\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\wiki-tui-0.9.1\src\components\logger.rs:48:29
|
48 | frame.render_widget(widget, size)
| ------------- ^^^^^^ the trait `Widget` is not implemented for `TuiLoggerWidget<'_>`
| |
| required by a bound introduced by this call
error[E0308]: mismatched types
--> C:\Users\<Me>\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\wiki-tui-0.9.1\src\components\logger.rs:46:26
|
46 | .style_trace(Style::default().fg(Color::Magenta))
| ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `ratatui::style::Style`, found a different `ratatui::style::Style`
| |
| arguments to this method are incorrect
Checklist
- [X ] checked other issues for the same bug
- [ X] read
CONTRIBUTING.md
I have this problem with the 0.8.1 and 0.8.0
I'm having the same problem. It seems like dependency issue, so I tried --locked and compile passed.
Version: 0.9.1 System: Windows 10
I made a PR for this, it includes some other things as well. You can try cargo build or cargo build --release and then cargo run to test it out.