-
Notifications
You must be signed in to change notification settings - Fork 377
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
Upgrade and pin unicode-width to v0.1.12 #1858
Merged
Merged
+3
−3
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
v0.1.13 calculates the width of some characters differently, which causes delta to panic See unicode-rs/unicode-width#55 and unicode-rs/unicode-width#66
tmeijn
pushed a commit
to tmeijn/dotfiles
that referenced
this pull request
Sep 13, 2024
This MR contains the following updates: | Package | Update | Change | |---|---|---| | [dandavison/delta](https://github.com/dandavison/delta) | patch | `0.18.1` -> `0.18.2` | MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot). **Proposed changes to behavior should be submitted there as MRs.** --- ### Release Notes <details> <summary>dandavison/delta (dandavison/delta)</summary> ### [`v0.18.2`](https://github.com/dandavison/delta/releases/tag/0.18.2) [Compare Source](dandavison/delta@0.18.1...0.18.2) This patch release fixes various panics reported by users that were due to v0.1.13 of the `unicode-width` crate. See dandavison/delta#1858 and unicode-rs/unicode-width#66. #### What's Changed - Move AmbiguousDiffMinusCounter to hunk_header by [@​dandavison](https://github.com/dandavison) in dandavison/delta#1825 - Fix `Catppuccin Latte` name in `LIGHT_SYNTAX_THEMES` list by [@​injust](https://github.com/injust) in dandavison/delta#1823 - Handle quoted file paths in hunk headers by [@​th1000s](https://github.com/th1000s) in dandavison/delta#1840 - Fix clippy warnings by [@​bash](https://github.com/bash) in dandavison/delta#1851 - Allow `--dark` to override dark/light detected from syntax theme by [@​bash](https://github.com/bash) in dandavison/delta#1843 - Upgrade and pin unicode-width to v0.1.12 by [@​th1000s](https://github.com/th1000s) in dandavison/delta#1858 **Full Changelog**: dandavison/delta@0.18.1...0.18.2 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiXX0=-->
izumin5210
pushed a commit
to izumin5210/dotfiles
that referenced
this pull request
Sep 15, 2024
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [dandavison/delta](https://redirect.github.com/dandavison/delta) | patch | `0.18.1` -> `0.18.2` | --- ### Release Notes <details> <summary>dandavison/delta (dandavison/delta)</summary> ### [`v0.18.2`](https://redirect.github.com/dandavison/delta/releases/tag/0.18.2) [Compare Source](https://redirect.github.com/dandavison/delta/compare/0.18.1...0.18.2) This patch release fixes various panics reported by users that were due to v0.1.13 of the `unicode-width` crate. See [dandavison/delta#1858 and [unicode-rs/unicode-width#66. #### What's Changed - Move AmbiguousDiffMinusCounter to hunk_header by [@​dandavison](https://redirect.github.com/dandavison) in [dandavison/delta#1825 - Fix `Catppuccin Latte` name in `LIGHT_SYNTAX_THEMES` list by [@​injust](https://redirect.github.com/injust) in [dandavison/delta#1823 - Handle quoted file paths in hunk headers by [@​th1000s](https://redirect.github.com/th1000s) in [dandavison/delta#1840 - Fix clippy warnings by [@​bash](https://redirect.github.com/bash) in [dandavison/delta#1851 - Allow `--dark` to override dark/light detected from syntax theme by [@​bash](https://redirect.github.com/bash) in [dandavison/delta#1843 - Upgrade and pin unicode-width to v0.1.12 by [@​th1000s](https://redirect.github.com/th1000s) in [dandavison/delta#1858 **Full Changelog**: dandavison/delta@0.18.1...0.18.2 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/izumin5210/dotfiles). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC43NC4xIiwidXBkYXRlZEluVmVyIjoiMzguNzQuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: izumin5210-update-aqua-checksum[bot] <169593670+izumin5210-update-aqua-checksum[bot]@users.noreply.github.com>
renovate bot
added a commit
to d-issy/dotfiles
that referenced
this pull request
Sep 15, 2024
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [dandavison/delta](https://redirect.github.com/dandavison/delta) | patch | `0.18.1` -> `0.18.2` | --- ### Release Notes <details> <summary>dandavison/delta (dandavison/delta)</summary> ### [`v0.18.2`](https://redirect.github.com/dandavison/delta/releases/tag/0.18.2) [Compare Source](https://redirect.github.com/dandavison/delta/compare/0.18.1...0.18.2) This patch release fixes various panics reported by users that were due to v0.1.13 of the `unicode-width` crate. See [dandavison/delta#1858 and [unicode-rs/unicode-width#66. #### What's Changed - Move AmbiguousDiffMinusCounter to hunk_header by [@​dandavison](https://redirect.github.com/dandavison) in [dandavison/delta#1825 - Fix `Catppuccin Latte` name in `LIGHT_SYNTAX_THEMES` list by [@​injust](https://redirect.github.com/injust) in [dandavison/delta#1823 - Handle quoted file paths in hunk headers by [@​th1000s](https://redirect.github.com/th1000s) in [dandavison/delta#1840 - Fix clippy warnings by [@​bash](https://redirect.github.com/bash) in [dandavison/delta#1851 - Allow `--dark` to override dark/light detected from syntax theme by [@​bash](https://redirect.github.com/bash) in [dandavison/delta#1843 - Upgrade and pin unicode-width to v0.1.12 by [@​th1000s](https://redirect.github.com/th1000s) in [dandavison/delta#1858 **Full Changelog**: dandavison/delta@0.18.1...0.18.2 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/d-issy/dotfiles). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC43NC4xIiwidXBkYXRlZEluVmVyIjoiMzguNzQuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
In general I'd recommend updating the code to handle the new width calculations. Panics due to width calculations should be considered a bug: please do not rely on unicode-width to continue to provide correct width calculations. It's most likely the case that your crate is assuming that unicode-width assigns width 0 for newlines. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
v0.1.13 calculates the width of some characters differently, which causes delta to panic
See unicode-rs/unicode-width#55 and unicode-rs/unicode-width#66
Also see #1726 (comment) - Thanks @shaicoleman!