ITADN

1password-cli Cask fails to install with 'generate_completions_from_executable' does not support shell(s): bash, zsh, fish, pwsh

#261697Closedtedo-benchling 创建于 2026-04-28
T
tedo-benchlingcommented
### Verification - [x] I understand that [if I ignore these instructions, my issue may be closed without review](https://github.com/Homebrew/homebrew-cask/blob/HEAD/doc/faq/closing_issues_without_review.md). - [x] I have retried my command with `--force`. - [x] I ran `brew update-reset && brew update` and retried my command. - [x] I ran `brew doctor`, fixed as many issues as possible and retried my command. - [x] I have checked the instructions for [reporting bugs](https://github.com/Homebrew/homebrew-cask#reporting-bugs). - [x] I made doubly sure this is not a [checksum does not match / SHA256 mismatch](https://docs.brew.sh/Common-Issues#cask---checksum-does-not-match) error (do not open an issue before trying to open a PR to fix first). ### Description of issue Trying to upgrade or install the 1password-cli cask fails with: ``` > brew upgrade 1password-cli ✔︎ JSON API formula.jws.json Downloaded 32.0MB/ 32.0MB ✔︎ JSON API cask.jws.json Downloaded 15.4MB/ 15.4MB Error: Cask '1password-cli' definition is invalid: 'generate_completions_from_executable' does not support shell(s): bash, zsh, fish, pwsh ``` After uninstalling it: ``` > brew install 1password-cli Error: Cask '1password-cli' definition is invalid: 'generate_completions_from_executable' does not support shell(s): bash, zsh, fish, pwsh ``` ### Command that failed brew install 1password-cli ### Output of command with `--verbose --debug` ```shell /opt/homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromAPILoader): loading 1password-cli Error: Cask '1password-cli' definition is invalid: 'generate_completions_from_executable' does not support shell(s): bash, zsh, fish, pwsh /opt/homebrew/Library/Homebrew/cask/artifact/generated_completion.rb:39:in 'Cask::Artifact::GeneratedCompletion.from_args' /opt/homebrew/Library/Homebrew/cask/dsl.rb:790:in 'block (2 levels) in <class:DSL>' /opt/homebrew/Library/Homebrew/cask/cask_loader.rb:541:in 'block (2 levels) in Cask::CaskLoader::FromAPILoader#load_from_struct' /opt/homebrew/Library/Homebrew/cask/cask_loader.rb:540:in 'Array#each' /opt/homebrew/Library/Homebrew/cask/cask_loader.rb:540:in 'block in Cask::CaskLoader::FromAPILoader#load_from_struct' /opt/homebrew/Library/Homebrew/cask/cask.rb:161:in 'BasicObject#instance_eval' /opt/homebrew/Library/Homebrew/cask/cask.rb:161:in 'Cask::Cask#refresh' /opt/homebrew/Library/Homebrew/cask/cask.rb:122:in 'Cask::Cask#initialize' /opt/homebrew/Library/Homebrew/cask/cask_loader.rb:505:in 'Class#new' /opt/homebrew/Library/Homebrew/cask/cask_loader.rb:505:in 'Cask::CaskLoader::FromAPILoader#load_from_struct' /opt/homebrew/Library/Homebrew/cask/cask_loader.rb:450:in 'Cask::CaskLoader::FromAPILoader#load_from_api' /opt/homebrew/Library/Homebrew/cask/cask_loader.rb:436:in 'Cask::CaskLoader::FromAPILoader#load' /opt/homebrew/Library/Homebrew/cask/cask_loader.rb:674:in 'Cask::CaskLoader.load' /opt/homebrew/Library/Homebrew/cli/named_args.rb:381:in 'block in Homebrew::CLI::NamedArgs#load_formula_or_cask' /opt/homebrew/Library/Homebrew/api.rb:392:in 'Homebrew.with_no_api_env_if_needed' /opt/homebrew/Library/Homebrew/cli/named_args.rb:336:in 'Homebrew::CLI::NamedArgs#load_formula_or_cask' /opt/homebrew/Library/Homebrew/cli/named_args.rb:85:in 'block in Homebrew::CLI::NamedArgs#to_formulae_and_casks' /opt/homebrew/Library/Homebrew/cli/named_args.rb:84:in 'Array#each' /opt/homebrew/Library/Homebrew/cli/named_args.rb:84:in 'Enumerable#flat_map' /opt/homebrew/Library/Homebrew/cli/named_args.rb:84:in 'Homebrew::CLI::NamedArgs#to_formulae_and_casks' /opt/homebrew/Library/Homebrew/cmd/install.rb:209:in 'Homebrew::Cmd::InstallCmd#run' /opt/homebrew/Library/Homebrew/brew.rb:114:in '<main> ``` ### Output of `brew doctor` and `brew config` ```shell > brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks! Warning: Some installed kegs have no formulae! This means they were either deleted or installed manually. You should find replacements for the following formulae: postgresql@11 openssl@1.1 vault Warning: Some installed formulae are deprecated or disabled. You should find replacements for the following formulae: openssl@1.1 postgresql@11 postgresql@14 Warning: Some installed formulae are missing dependencies. You should `brew install` the missing dependencies: brew install icu4c@78 > brew config HOMEBREW_VERSION: 5.1.8 ORIGIN: https://github.com/Homebrew/brew HEAD: b9763ee5280dc1acb3036383b3608084eebac6b7 Last commit: 2 days ago Branch: stable Core tap JSON: 28 Apr 17:47 UTC Core cask tap JSON: 28 Apr 17:47 UTC HOMEBREW_PREFIX: /opt/homebrew HOMEBREW_CASK_OPTS: [] HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.7kvJ9gVrDV/org.xquartz:0 HOMEBREW_DOWNLOAD_CONCURRENCY: 20 HOMEBREW_FORBID_PACKAGES_FROM_PATHS: set HOMEBREW_MAKE_JOBS: 10 Homebrew Ruby: 4.0.3 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/4.0.3/bin/ruby CPU: deca-core 64-bit arm_firestorm_icestorm Clang: 17.0.0 build 1700 Git: 2.50.1 => /Library/Developer/CommandLineTools/usr/bin/git Curl: 8.7.1 => /usr/bin/curl macOS: 26.3.1-arm64 CLT: 26.3.0.0.1.1771626560 Xcode: N/A Rosetta 2: false ``` ### Output of `brew tap` ```shell brew tap argoproj/tap aviator-co/tap benchling/tap getsentry/tools mutagen-io/mutagen pkgxdev/made superbrothers/opener weaveworks/tap ```
关闭于 2026-05-10 8 条评论