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
Nothing major, but when the prompt ask for are you sure? if you ctr+c (I'm too lazy to type n)make the rust panick:
(h2yaml) adowa@pop-os:~/h2yaml$ uv pip install h2yaml pyproject.toml
? `pyproject.toml` looks like a local metadata file but was passed as a package name. Did you mean `-r pyproject.toml`? [y/n] › yesthread 'main2' panicked at crates/uv-requirements/src/sources.rs:115:78:
called `Result::unwrap()` on an `Err` value: Custom { kind: Interrupted, error: "read interrupted" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Please feel free to close, nothing important,
Thanks a lot for uv!
Regards,
Thomas
Platform
Linux 6.9.3-76060903-generic x86_64 GNU/Linux
Version
uv 0.5.27
Python version
Python 3.10.12
The text was updated successfully, but these errors were encountered:
I think what's going on here is that we call console's read_key in uv-console's confirm will, upon receiving Ctrl-C
raise SIGINT
return an io::ErrorKind::Interrupted error (this is actually just forwarded from console's read under-the-hood)
At the beginning of confirm we register a Ctrl-C handler which calls process::exit, which runs in a background thread. Due to (1), this handler is run, which in turn calls process::exit. This forces the main thread to unwind, and hence the interrupted error gets returned and then unwrapd at crates/uv-requirements/src/sources.rs:115:78 (as given by the error message).
I have a fix that looks like it works, so I'll PR it shortly
Summary
Hi,
Nothing major, but when the prompt ask for
are you sure?
if youctr+c
(I'm too lazy to typen
)make the rust panick:Please feel free to close, nothing important,
Thanks a lot for
uv
!Regards,
Thomas
Platform
Linux 6.9.3-76060903-generic x86_64 GNU/Linux
Version
uv 0.5.27
Python version
Python 3.10.12
The text was updated successfully, but these errors were encountered: