Skip to content

Show argument errors with double quiet - #20626

Open
astral-automations-bot[bot] wants to merge 1 commit into
mainfrom
zb/show-argument-errors-with-qq
Open

astral-automations-bot[bot] wants to merge 1 commit into
mainfrom
zb/show-argument-errors-with-qq

Conversation

@astral-automations-bot

Copy link
Copy Markdown
Contributor

Argument errors propagated from settings resolution are currently suppressed by -qq, unlike Clap parsing errors. Keep UvError::Argument output visible by treating it as important stderr while leaving all other silent-mode output unchanged.

@astral-sh-bot

astral-sh-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown

uv test inventory changes

This PR changes the tests when compared with the main base revision.

  • Added tests: 1
  • Removed tests: 0
  • Changed suites: 1
uv::pip_install: +1 / -0

Added:

  • uv::pip_install::pip_install::offline_refresh_conflict_silent

Removed: none

@zanieb
zanieb requested a review from EliteTK July 22, 2026 21:42
Comment thread crates/uv/src/lib.rs
UvError::Argument(err) => {
// Like Clap errors, argument errors remain visible with `-qq`.
let printer = match printer {
Printer::Silent => Printer::Quiet,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This implementation strategy is.. pretty funny?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'd expect write_error_chain_with_options and some sort of indication that the message cannot be silenced?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but also this seems easier and also fine

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm...

It's not terrible...

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants