Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Update ratatui dependency to 0.26 #68

Closed
airstrike opened this issue Mar 3, 2024 · 0 comments · Fixed by #69
Closed

[BUG] - Update ratatui dependency to 0.26 #68

airstrike opened this issue Mar 3, 2024 · 0 comments · Fixed by #69
Assignees
Labels
bug Something isn't working

Comments

@airstrike
Copy link
Contributor

Description

Version 1.9.1 of tui-realm is pinning the ratatui dependency to 0.23 which was released in Aug 28, 2023. This makes it harder to port code from projects that use ratatui to use tui-realm

Steps to reproduce

I came across this when I tried to call Paragraph::new("𝑓𝑥".to_string()).centered(), which is possible in ratatui 0.26 but not in 0.23 since .centered() had not yet been implemented.

See https://github.com/ratatui-org/ratatui/blob/c12bcfefa26529610886040bd96f2b6762436b15/src/widgets/paragraph.rs#L224-L237

Expected behaviour

I expected Paragraph::new("𝑓𝑥".to_string()).centered() to work as advertised.

Environment

  • OS: Mac OS
  • Architecture: Apple Silicon
  • Rust version: rustc 1.76.0 (07dca489a 2024-02-04)
  • tui-realm version: 1.9.1
@airstrike airstrike added the bug Something isn't working label Mar 3, 2024
@veeso veeso closed this as completed in #69 Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants