Code Monkey home page Code Monkey logo

Comments (24)

n8henrie avatar n8henrie commented on August 28, 2024 27

My attempt at a little more readable output (and my problematic packages).

$ brew cask list 2>/dev/null | xargs -I{} bash -c 'cask_="{}"; brew cask audit "${cask_}" 2>&1 1>/dev/null | grep "Hbc::DSL#license" >/dev/null && echo "License error in cask: ${cask_}"'
License error in cask: audacity
License error in cask: google-drive
License error in cask: google-photos-backup
License error in cask: picasa
License error in cask: textwrangler

After uninstalling these the errors are gone.

from homebrew-cask-upgrade.

docgyneco69 avatar docgyneco69 commented on August 28, 2024 12

Found the culprit for all the "Warning ...#license..." messages I was getting: an outdated cask, the (discontinued?) beloved clipmenu. Running brew cask audit, cask by cask via a one liner bash loop (cf below should it helps) did the trick for me.
while IFS= read -r _c _ ; do echo -e "$_c =>" ; brew cask audit "$_c" ; done <<<"$(brew cask list)"

from homebrew-cask-upgrade.

alecthegeek avatar alecthegeek commented on August 28, 2024 6

Running brew cask audit ... across all my installed packages gave no result. I am still getting

Warning: Calling Hbc::DSL#license is deprecated!
There is no replacement.
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cask_loader.rb:18:in `block in load'

from homebrew-cask-upgrade.

alecthegeek avatar alecthegeek commented on August 28, 2024 4

This is a little simpler to type.

brew cask list 2> /dev/null | xargs brew cask audit

from homebrew-cask-upgrade.

alecthegeek avatar alecthegeek commented on August 28, 2024 3

OK -- turned out I have made my life hard because of the complex way I have my Mac setup. Eventually I traced to the fact that a that a couple of packages had changed their name (google-drive & flash). So an uninstall and then install with the new name fixed that...

from homebrew-cask-upgrade.

ondrejfuhrer avatar ondrejfuhrer commented on August 28, 2024 2

@akindo Since Tomahawk app has been removed from homebrew-cask (no update for last 2 years, the project is abandoned), you should consider uninstalling it. The cask will never get updated, as well as the app.

from homebrew-cask-upgrade.

adidalal avatar adidalal commented on August 28, 2024 1

Homebrew/homebrew-cask#25214
You need to brew upgrade

from homebrew-cask-upgrade.

ssreekanth avatar ssreekanth commented on August 28, 2024 1

brew upgrade fixed it for now. But, Homebrew/brew#1241 looks like a temporary fix, as per the comment.

from homebrew-cask-upgrade.

michahell avatar michahell commented on August 28, 2024 1

culprit in my case: messenger-for-desktop which is an old facebook messenger app. Facebook hate ++.

from homebrew-cask-upgrade.

adidalal avatar adidalal commented on August 28, 2024

This should no longer be an issue, I believe.

from homebrew-cask-upgrade.

ssreekanth avatar ssreekanth commented on August 28, 2024

@adidalal It would be nice if you could provide more info indicating that the issue is resolved with a proper fix permanently.

from homebrew-cask-upgrade.

adidalal avatar adidalal commented on August 28, 2024

We removed that stanza from all Casks, so the error shouldn't pop up.
The above PR will be reverted at some point (soon), but it should (correctly) not throw up any errors.

from homebrew-cask-upgrade.

ssreekanth avatar ssreekanth commented on August 28, 2024

Closing this issue.

from homebrew-cask-upgrade.

EmilVarona avatar EmilVarona commented on August 28, 2024

Sorry to revive an old issue but I run this alias daily

alias brewski='brew update && brew upgrade && brew cleanup && brew cask cleanup; brew doctor'

I noticed this morning that I started getting the following errors on brew upgrade

Warning: Calling "cask :v1 => 'token'" is deprecated!
Use "cask 'token'" instead.
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cask_loader.rb:11:in 'load'

Warning: Calling Hbc::DSL#license is deprecated!
There is no replacement.
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cask_loader.rb:20:in 'block in load'

Seeing that I'm running brew upgrade each and every time, I'm not sure why I'm getting this message. Any thoughts would be appreciated. FYI: I'm on OSX 10.12.6, fully patched and up to date.

from homebrew-cask-upgrade.

adidalal avatar adidalal commented on August 28, 2024

@EmilVarona Please follow the guide at https://github.com/caskroom/homebrew-cask#reporting-bugs

from homebrew-cask-upgrade.

EmilVarona avatar EmilVarona commented on August 28, 2024

@adidalal Thank you. I posted a new issue, #37489.

from homebrew-cask-upgrade.

jrking123 avatar jrking123 commented on August 28, 2024

I just ran the audit loop from @docgyneco69 - in my system's case this error was triggered by emacs-mac. Some serious strangeness "cured" by uninstalling it.

from homebrew-cask-upgrade.

jball avatar jball commented on August 28, 2024

Thanks for the bash loop @docgyneco69 for me it was java7. Once I removed that it the message went away.

from homebrew-cask-upgrade.

pquodling avatar pquodling commented on August 28, 2024

I saw this on an app called sitesucker as well.

from homebrew-cask-upgrade.

mirageglobe avatar mirageglobe commented on August 28, 2024

yep google-drive is the culprit. its been changed to google-backup-and-sync

from homebrew-cask-upgrade.

garciparedes avatar garciparedes commented on August 28, 2024

robomongo is the problem in my case.

from homebrew-cask-upgrade.

von avatar von commented on August 28, 2024

Three casks are giving me this error: handbrake, omnigraffle, and ripit. Uninstall and re-install doesn't help.

from homebrew-cask-upgrade.

akindo avatar akindo commented on August 28, 2024

Getting the error on Tomahawk.

from homebrew-cask-upgrade.

akindo avatar akindo commented on August 28, 2024

@ondrejfuhrer Ok, thanks for the information and the good work on Cask! Yeah, hadn't used that app for a year, and was thinking to myself, meeeeh, could delete that cask.

from homebrew-cask-upgrade.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.