Skip to content
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

uv python uninstall error message for invalid requests is confusing #4819

Closed
zanieb opened this issue Jul 4, 2024 · 3 comments · Fixed by #5171
Closed

uv python uninstall error message for invalid requests is confusing #4819

zanieb opened this issue Jul 4, 2024 · 3 comments · Fixed by #5171
Assignees
Labels
error messages Messaging when something goes wrong preview Experimental behavior

Comments

@zanieb
Copy link
Member

zanieb commented Jul 4, 2024

e.g.

❯ cargo run -q -- python uninstall any
warning: `uv python uninstall` is experimental and may change without warning.
error: Cannot download managed Python for request: executable name `any`

We should wrap this error to be clearer, i.e. we're not trying to download here but instead trying to suggest the request can't be mapped to a managed Python key.

@charliermarsh charliermarsh added error messages Messaging when something goes wrong preview Experimental behavior labels Jul 4, 2024
@charliermarsh
Copy link
Member

Relatedly, do you want a way to uninstall all Pythons?

@zanieb
Copy link
Member Author

zanieb commented Jul 8, 2024

Yeah we should probably support that, though I think it should require some sort of opt-in.

@charliermarsh
Copy link
Member

I could either see... python uninstall all or python uninstall --all (mutually exclusive with a request).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error messages Messaging when something goes wrong preview Experimental behavior
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants