-
Notifications
You must be signed in to change notification settings - Fork 79
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
Why is the unicode-width dep pinned to version 0.11.1? #423
Comments
This is what I could find: #415 (comment). However this means that you can't use tabled if you have dependencies that also use unicode-width, like ratatui:
|
Ran into the same issue in combination with ratatui :) |
Good question Ahhhh I was not expecting such outcomes I guess you better stick with v0.14 then till it's resolved? The thought about this bound was that they had changed the logic of calculations. So I decided to make this bound. |
I had to mention that you can do it by changes in tabled = "=0.14" # or whatever version you were bound to Sorry for ping; just wanna make sure it's resolved on your end. Have a great weekend. |
Thanks for the follow-up. That's the workaround I went with. Enjoy the weekend. |
I ran into this as well, and it's likewise blocking me from upgrading |
From what I understand. Char/String width computation has changed recently in the unicode-width crate.
Exceptions can be found here: Upgrading papergrid to the latest unicode-width version will need to replace single character-based width methods (now unusable anymore) by string width methods. Looking at the inner functionning, this involves some big changes in the crate logic. |
Exactly. But I kind of hesitant of it.
Hopefully not BIG but yes... |
FWIW unicode-rs/unicode-width#66 suggests that the unicode-width changes have been reverted in 0.1.14, and the behavior changes are now in 0.2.0. |
Ah, sorry -- only the newline change has been reverted. The emoji width changes are still present, so they'd have to be worked around. (And yeah, I guess strings would have to be considered holistically). |
We're discussing what to do with Ratatui in ratatui/ratatui#1271 |
@joshka maybe we just shall remove this bound here and have some issues with UTF8 😅 , until I figure something out. |
tabled/papergrid/Cargo.toml
Line 16 in 300c07b
The text was updated successfully, but these errors were encountered: