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

Zsh completion shows "deprecated command" warning when completing installed casks #8640

Closed
3 tasks done
smancill opened this issue Sep 7, 2020 · 2 comments · Fixed by #8650
Closed
3 tasks done

Zsh completion shows "deprecated command" warning when completing installed casks #8640

smancill opened this issue Sep 7, 2020 · 2 comments · Fixed by #8650
Labels
in progress Maintainers are working on this outdated PR was locked due to age

Comments

@smancill
Copy link

smancill commented Sep 7, 2020

Bug report

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

  • ran brew update and can still reproduce the problem?
  • ran brew doctor, fixed all issues and can still reproduce the problem?
  • ran brew config and brew doctor and included their output with your issue?

What you were trying to do (and why)

Use Zsh tab completion when uninstalling a cask.

What happened (include command output)

The completion shows the warning about deprecated command brew cask list after pressing tab.

$ brew cask uninstall Warning: Calling brew cask list is deprecated! Use brew list --cask instead.

What you expected to happen

Not show any warning.

Step-by-step reproduction instructions (by running brew commands)

Press tab to autocomplete installed casks using Zsh.

Output of brew config and brew doctor commands

Doesn't apply.


Here is the line in _brew_cask that is still using brew cask list to get the list of all installed casks.

list=( $(__brew_cask list|sed 's/(!)//') )

That calls:

__brew_cask() {
[ -d "$(brew --repo homebrew/cask)" ] && brew cask $@
}

@jonchang
Copy link
Contributor

jonchang commented Sep 8, 2020

Can you open a pull request to fix this? The code should be in completions/zsh.

@Akylzhan
Copy link
Contributor

Akylzhan commented Sep 8, 2020

I can do this

@Rylan12 Rylan12 added the in progress Maintainers are working on this label Sep 8, 2020
@BrewTestBot BrewTestBot added the outdated PR was locked due to age label Dec 1, 2020
@Homebrew Homebrew locked as resolved and limited conversation to collaborators Dec 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
in progress Maintainers are working on this outdated PR was locked due to age
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants