This repository was archived by the owner on Aug 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 488
Macro error when compiling #373
Labels
Comments
I'm also experiencing this in my CI. It might be Windows-only -- Linux is fine. It seems that crossterm 0.17.8 introduced a change that breaks tui with the crossterm feature. It's fine when crossterm is 0.17.7. Try adding |
Yes, it works with Hopefully that will help figuring out a fix. |
Having the same issue in |
Merged
alvinhochun
added a commit
to alvinhochun/tui-rs
that referenced
this issue
Sep 10, 2020
Crossterm might actually do WinAPI calls instead of writing ANSI excape codes so writing to an intermediate String may cause issues on older versions of Windows. It also fails to compile with Crossterm 0.17.8 due to Crossterm now expecting the writer to support `flush`, which String doesn't. Fixes fdehau#373
I proposed a fix in PR #368. |
fdehau
pushed a commit
that referenced
this issue
Sep 20, 2020
…and fix build with Crossterm 0.17.8 (#368) * Support more style modifiers on Windows * Change Crossterm backend to write directly to buffer instead of String Crossterm might actually do WinAPI calls instead of writing ANSI excape codes so writing to an intermediate String may cause issues on older versions of Windows. It also fails to compile with Crossterm 0.17.8 due to Crossterm now expecting the writer to support `flush`, which String doesn't. Fixes #373
TheLostLambda
pushed a commit
to TheLostLambda/tui-rs
that referenced
this issue
Sep 24, 2020
…and fix build with Crossterm 0.17.8 (fdehau#368) * Support more style modifiers on Windows * Change Crossterm backend to write directly to buffer instead of String Crossterm might actually do WinAPI calls instead of writing ANSI excape codes so writing to an intermediate String may cause issues on older versions of Windows. It also fails to compile with Crossterm 0.17.8 due to Crossterm now expecting the writer to support `flush`, which String doesn't. Fixes fdehau#373
24seconds
pushed a commit
to 24seconds/tui-rs
that referenced
this issue
Nov 30, 2020
…and fix build with Crossterm 0.17.8 (fdehau#368) * Support more style modifiers on Windows * Change Crossterm backend to write directly to buffer instead of String Crossterm might actually do WinAPI calls instead of writing ANSI excape codes so writing to an intermediate String may cause issues on older versions of Windows. It also fails to compile with Crossterm 0.17.8 due to Crossterm now expecting the writer to support `flush`, which String doesn't. Fixes fdehau#373
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Hi, I would like to try your library but sadly tui 0.10 doesn't compile. Something with the crossterm backend and some macro apparently. Am I doing something wrong?
To Reproduce
I added Tui with crossterm as dependencies
Interestingly, 0.8 compiles and 0.9 doesn't.
Demos don't work either, I get the same error.
cargo run --example crossterm_demo --no-default-features --features="crossterm" --release -- --tick-rate 200
Expected behavior
Tui to compile.
Screenshots
N/A
Desktop (please complete the following information):
Additional context
Toolchain:
stable-x86_64-pc-windows-msvc (default)
rustc 1.46.0 (04488afe3 2020-08-24)
The text was updated successfully, but these errors were encountered: