Repository navigation
Add first-party line wrapping - #17535
Merged
Merged
Conversation
zanieb
force-pushed
the
zb/miette-remove-ii
branch
from
January 16, 2026 18:46
73b9b0c to
9d91a8e
Compare
zanieb
force-pushed
the
zb/vendor-line-wrap
branch
3 times, most recently
from
January 16, 2026 19:31
1fda928 to
700da71
Compare
zanieb
temporarily deployed
to
uv-test-publish
January 16, 2026 19:34 — with
GitHub Actions
Inactive
zanieb
force-pushed
the
zb/vendor-line-wrap
branch
from
January 16, 2026 19:46
700da71 to
b75af41
Compare
zanieb
temporarily deployed
to
uv-test-publish
January 16, 2026 19:50 — with
GitHub Actions
Inactive
zanieb
force-pushed
the
zb/miette-remove-ii
branch
from
January 16, 2026 19:52
d5cced1 to
8005bd5
Compare
zanieb
force-pushed
the
zb/vendor-line-wrap
branch
from
January 16, 2026 20:18
b75af41 to
4404fd5
Compare
zanieb
temporarily deployed
to
uv-test-publish
January 16, 2026 20:25 — with
GitHub Actions
Inactive
zanieb
force-pushed
the
zb/miette-remove-ii
branch
from
January 16, 2026 20:34
8005bd5 to
fe700e0
Compare
zanieb
force-pushed
the
zb/vendor-line-wrap
branch
from
January 16, 2026 20:34
4404fd5 to
70ca654
Compare
zanieb
temporarily deployed
to
uv-test-publish
January 16, 2026 20:39 — with
GitHub Actions
Inactive
zanieb
force-pushed
the
zb/vendor-line-wrap
branch
from
January 16, 2026 21:09
70ca654 to
ca11d5d
Compare
zanieb
temporarily deployed
to
uv-test-publish
January 16, 2026 21:13 — with
GitHub Actions
Inactive
zanieb
force-pushed
the
zb/miette-remove-ii
branch
3 times, most recently
from
January 17, 2026 17:23
3932c28 to
66db1a1
Compare
zanieb
force-pushed
the
zb/vendor-line-wrap
branch
from
January 17, 2026 17:23
ca11d5d to
d6ab7de
Compare
zanieb
temporarily deployed
to
uv-test-publish
January 17, 2026 17:27 — with
GitHub Actions
Inactive
zanieb
force-pushed
the
zb/vendor-line-wrap
branch
from
March 16, 2026 18:50
d6ab7de to
3bd3af1
Compare
zanieb
commented
Mar 16, 2026
zanieb
commented
Mar 16, 2026
zanieb
commented
Mar 16, 2026
zanieb
commented
Mar 16, 2026
zanieb
force-pushed
the
zb/vendor-line-wrap
branch
from
May 20, 2026 17:56
3bd3af1 to
ffc265c
Compare
zanieb
commented
May 20, 2026
zanieb
commented
May 20, 2026
zanieb
force-pushed
the
zb/vendor-line-wrap
branch
4 times, most recently
from
May 20, 2026 18:48
da76a07 to
56d0d9b
Compare
uv test inventory changesThis PR changes the tests when compared with the latest
|
zanieb
force-pushed
the
zb/vendor-line-wrap
branch
4 times, most recently
from
May 27, 2026 16:47
6fa7ff1 to
29f5065
Compare
zanieb
commented
May 27, 2026
zanieb
commented
May 27, 2026
zanieb
commented
May 27, 2026
zanieb
force-pushed
the
zb/vendor-line-wrap
branch
2 times, most recently
from
May 27, 2026 17:59
35716d3 to
eb705af
Compare
zanieb
commented
May 27, 2026
zanieb
commented
May 27, 2026
zanieb
force-pushed
the
zb/vendor-line-wrap
branch
2 times, most recently
from
May 27, 2026 18:09
7d0e5a3 to
2d1f908
Compare
Add textwrap-based line wrapping for error and warning output, replacing the line wrapping previously provided by miette. - Add `write_error_chain` to `uv-errors` with terminal-width-aware wrapping and explicit `Hints` - Use the shared formatter for the CLI error exit path and direct chain emitters - Support `UV_NO_WRAP` env var to disable wrapping - Support `COLUMNS` env var and terminal size detection for wrap width - Words are never broken or hyphenated (URLs, package names stay intact) - Remove the old `write_error_chain` implementation from `uv-warnings`
zanieb
force-pushed
the
zb/vendor-line-wrap
branch
from
May 27, 2026 18:19
2d1f908 to
e1522cf
Compare
zanieb
marked this pull request as ready for review
May 27, 2026 18:58
zanieb
added a commit
that referenced
this pull request
Sep 11, 2026
Route the remaining package-operation errors through `UvError` and the standard error-chain renderer, then remove uv's direct `miette` dependency and global hook. Diagnostics use the same source-chain formatting and hint collection as other commands, with cause-specific hints before general command advice. No-solution headings omit trailing punctuation, retain their command context, and are not repeated inside build-dependency errors. Final errors remain visible with `-q` and are suppressed with `-qq`. Classify operation failures by their underlying cause instead of by which renderer handles them. Each error type owns its classification, and type-erased build errors forward it. Expected package, resolution, build, integrity, and lock-validation failures use code 1, while recognized transport, cache, filesystem, and internal failures use code 2. This deliberately changes some previously inconsistent statuses without attempting to normalize every standalone command or opaque archive-error path. Command-line argument errors remain code 2. Third-party dependencies may still use `miette` internally. Prior work: - #14546 removed `miette` from `uv venv`. - #17535 added first-party line wrapping. - #18090 established the `Hint` and `Hints` APIs. - #20155 made hints explicit in error-chain rendering. - #20156 preserved indentation in multiline causes. - #20159 migrated `uv build` errors to standard rendering. - #20160 migrated tool requirement errors to standard rendering. - #20188 introduced the explicit `UvError` model. - #20163 routed final errors through `Printer` for `-q` and `-qq`. - #20217 enabled cause-chain rendering for user errors. - #21563 added verification of index-provided metadata hashes. - #21279 reused URL-provided hashes during resolution. - #21584 renamed the hint-producing trait to `Hinted`. - #21577 added explicit hint ordering. Follow-up work: - #21566 collects hints for batched `uv tool upgrade` failures and fixes their quiet-mode output. - #21568 routes Python upgrade request errors and version-file hints through `UvError`. - #21587 separates operation-specific diagnostic context from exit-status classification. - #21599 renders error and warning causes with compact tree connectors.
This file contains hidden or 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
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.
Required for #17110 to avoid regressions where miette previously wrapped lines in error messages.