openstack icon indicating copy to clipboard operation
openstack copied to clipboard

Broken pipe for osc completion bash

Open mauhau opened this issue 1 year ago • 2 comments

Error

failed to write completion file: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" }

This happens when executing osc completion bash | less and directly exiting the less.

Metadata

key value
version 0.8.2
command osc+completion+bash
location /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_complete-4.5.35/src/aot/shells/bash.rs:74:11

mauhau avatar Dec 25 '24 19:12 mauhau

Thanks for the report. The issue appears to be in the clap_complete package itself. Update sadly does not help either. Let's see whether somebody can fix it.

gtema avatar Jan 03 '25 11:01 gtema

opened https://github.com/clap-rs/clap/issues/5993 for discussing it upstream

gtema avatar May 08 '25 16:05 gtema