You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Versions 0.1.12 and 0.1.13 of the unicode-width crate changes its behaviour to be more in line with the Unicode standard, but it looks like many projects (especially test suites) relied on the old behaviour - including delta.
So it looks like the tests will need to be adapted for the changes in unicode-width.
For example, the \u{1} character can no longer be assumed to have width 0. Replacing it with a zero-width space might work, as seen here: ratatui/ratatui#1171
The text was updated successfully, but these errors were encountered:
Nice, a package maintainer provided an essential hint long before the first reported panic, see #1726. But cargo install not defaulting to --locked, or at least performing or checking for a successful cargo test run somewhere and blindly trusting some semver definition is the real culprit.
It looks like updating to v0.1.14, which reverted the problematic changes from v0.1.13, should resolve this issue. And v0.1.13 was re-published as v0.2.0, so this shouldn't happen again without explicitly bumping the dependency.
Versions 0.1.12 and 0.1.13 of the unicode-width crate changes its behaviour to be more in line with the Unicode standard, but it looks like many projects (especially test suites) relied on the old behaviour - including delta.
Upstream does not consider the behaviour change a breaking change:
unicode-rs/unicode-width#55
Trying to build git-delta v0.17.0 and running its tests for Fedora Linux, I get the following failures with unicode-width v0.1.13:
So it looks like the tests will need to be adapted for the changes in unicode-width.
For example, the
\u{1}
character can no longer be assumed to have width 0. Replacing it with a zero-width space might work, as seen here: ratatui/ratatui#1171The text was updated successfully, but these errors were encountered: