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

Better instructions for: Cask xxx is unavailable: No Cask with this name exists. #71221

Open
muescha opened this issue Oct 21, 2019 · 12 comments
Labels
bug Issue describing a reproducible bug. help wanted

Comments

@muescha
Copy link
Contributor

muescha commented Oct 21, 2019

Description of feature/enhancement

what i do:

  • brew cask outdated
  • brew cask list

what i see:

brew cask outdated
Error: Cask 'betterzipql' is unavailable: No Cask with this name exists. 

(all?) brew commands fail now

what i expected

  • commands should work normalwly
  • the missing cask should result in an warning but not breaking the command
  • i miss an instruction or an hint or a link to an info page with a "How to resolve" instructions
  • an way to remove the cask / program with the brew command to get brew cask working again

Justification

sometimes there is an cask deleted, and always people start to file an issue about this and they have no clue how to resolve this breaking the workflow

Example use case

betterzipql is removed and now i get the error messages above and can not use the brew command anymore

@muescha
Copy link
Contributor Author

muescha commented Oct 25, 2019

is this issue the right place here or should it go to the homebrew core repo?

@vitorgalvao vitorgalvao added awaiting maintainer feedback Issue needs response from a maintainer. bug Issue describing a reproducible bug. labels Oct 28, 2019
@muescha
Copy link
Contributor Author

muescha commented Dec 5, 2019

similar issues:

@jacksun111

This comment has been minimized.

@geekhch

This comment has been minimized.

@vitorgalvao
Copy link
Member

Please avoid “me too” posts. We’re already aware this is a problem; replies stating “this also happens to me” without extra information don’t bring us closer to a resolution.

@hackroid

This comment has been minimized.

@nijikon

This comment has been minimized.

@schlomo
Copy link
Contributor

schlomo commented Nov 26, 2020

The last comment helped: Remove the cask from /usr/local/Caskroom. It would be nice if the error message could suggest this as a remedy. Or if the code could handle the case of removed casks better.

@vitorgalvao
Copy link
Member

It would be nice if the error message could suggest this as a remedy.

There are multiple problems caused by the same underlying issue; adding workaround messages to all of them is a bad solution.

Or if the code could handle the case of removed casks better.

That’s the point of an open issue, to track the problem so it’s eventually fixed. PRs are welcome.

@BrewTestBot BrewTestBot added the stale Issue which has not received any feedback for some time. label Dec 18, 2020
@Homebrew Homebrew deleted a comment from BrewTestBot Dec 18, 2020
@vitorgalvao vitorgalvao removed the stale Issue which has not received any feedback for some time. label Dec 18, 2020
@BrewTestBot BrewTestBot added the stale Issue which has not received any feedback for some time. label Jan 8, 2021
@Homebrew Homebrew deleted a comment from BrewTestBot Jan 8, 2021
@vitorgalvao vitorgalvao removed stale Issue which has not received any feedback for some time. awaiting maintainer feedback Issue needs response from a maintainer. labels Jan 8, 2021
@BrewTestBot BrewTestBot added the stale Issue which has not received any feedback for some time. label Jan 30, 2021
@vitorgalvao vitorgalvao removed the stale Issue which has not received any feedback for some time. label Jan 30, 2021
@Homebrew Homebrew deleted a comment from BrewTestBot Jan 30, 2021
@BrewTestBot BrewTestBot added the stale Issue which has not received any feedback for some time. label Feb 21, 2021
@Homebrew Homebrew deleted a comment from BrewTestBot Feb 21, 2021
@vitorgalvao vitorgalvao removed the stale Issue which has not received any feedback for some time. label Feb 21, 2021
@PeterLi
Copy link

PeterLi commented Feb 24, 2021

The last comment helped: Remove the cask from /usr/local/Caskroom. It would be nice if the error message could suggest this as a remedy. Or if the code could handle the case of removed casks better.

This helped me. I believe this issue is triggered when updating the OS and the item is no longer compatible with the OS and is moved out of the folder it was originally residing in. This was the case for the betterzipql and another item I had when updating to BigSur recently.

@telamonian
Copy link

For me it started with a brew update about a week ago. First, I was getting

Error: Cask 'font-dejavu-sans' is unavailable: No Cask with this name exists.

and I was unable to run any brew commands, including brew doctor. The suggestion of manually removing font-dejavu-sans from /usr/local/Caskroom is the only thing that seems to have done anything, and appears to have fixed that issue.

However, then things got zanier:

Error: Cask 'java' definition is invalid: Token '{:v1=>"java"}' in header line does not match the file name.

Again, removing the java cask fixed the issue. I hope simply rm-ing a couple of casks won't cause further knock-on problems?

@vitorgalvao
Copy link
Member

I hope simply rm-ing a couple of casks won't cause further knock-on problems?

It won’t (shouldn’t).

@BrewTestBot BrewTestBot added the stale Issue which has not received any feedback for some time. label Apr 6, 2021
@vitorgalvao vitorgalvao removed the stale Issue which has not received any feedback for some time. label Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue describing a reproducible bug. help wanted
Projects
None yet
Development

No branches or pull requests

11 participants