Replies: 2 comments 1 reply
-
Could you expand on the end-user impact of this?
I only found this issue a couple months ago when reading ripgrep's source code and opened #2659. It looks like no one had reported this before then which makes it seem like the impact is relatively small which makes it harder to justify creating a new clap2 release. You can look at https://github.com/clap-rs/clap/milestone/76 to see how close a clap3 release is. (to be clear, this is not a "no", I'm not in a position to say that, but trying to extract the information that will better make your case and help in decision making) |
Beta Was this translation helpful? Give feedback.
-
v2.33.4 has been released that fixes this panic. To be clear, this was a pretty big exception to the rule of not going back to v2 except for security bugs. Panics could be seen as security issues if you tilt your head. Also, the fix was extremely trivial (essentially a single line change) so the effort involved in releasing that patch was minimal and non-disruptive for a pretty wide gain. |
Beta Was this translation helpful? Give feedback.
-
This line in clap v2 means that all apps that use the convenience API
App::get_matches_from
do the wrong thing by default when stdout is closed.clap/src/errors.rs
Line 401 in 0c7da9f
From what I can tell, it looks like v3 suppresses all failures from writing to stdout in this flow.
Would the clap maintainers consider pushing a point release to v2 to remove this
expect
? Without it, the only way to address all of these bugs I've filed is to either:Impact:
hyperfine -h
panics when stdout is closed sharkdp/hyperfine#453fd -h
panics when stdout is closed sharkdp/fd#897starship -h
panics if stdout is closed starship/starship#3280tokei -h
panics when stdout is closed XAMPPRocky/tokei#856procs --help
panics when stdout is closed dalance/procs#210dust -h
panics when stdout is closed bootandy/dust#199volta -h
panics when stdout is closed volta-cli/volta#1055I stopped filing bugs but this also impacts these other Rust binaries I happen to have installed:
Beta Was this translation helpful? Give feedback.
All reactions