-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Error: undefined method `cask' for main:Object #8233
Comments
Please update homebrew cask by using: brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup This was an unforseen backwards compatibility break. |
Hi @jsharf ! This was a very-much-foreseen backwards-compatibility break. We implemented a 6-month transition plan (#4688) which worked transparently for most folks. My sincere apologies that you caught the error here, but we are moving forward on our development plan. The upgrade command sequence $ brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup should bring you up to the very latest and solve your issue. |
This command sequence didn't help for me.
|
Fixed with:
|
That's right. If you installed a brew formula using the Glad you are sorted now. |
[jsharf ~]$brew cask install amethyst
'Error: undefined method
cask' for main:Object Please report this bug: https://github.com/caskroom/homebrew-cask/issues /usr/local/Library/Taps/caskroom/homebrew-cask/Casks/amethyst.rb:1:in
<top (required)>'/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require'/usr/local/Cellar/brew-cask/0.35.0/rubylib/cask/source/path.rb:13:in
load' /usr/local/Cellar/brew-cask/0.35.0/rubylib/cask/source/tapped.rb:24:in
load'/usr/local/Cellar/brew-cask/0.35.0/rubylib/cask.rb:118:in
load' /usr/local/Cellar/brew-cask/0.35.0/rubylib/cask/cli/install.rb:9:in
block in run'/usr/local/Cellar/brew-cask/0.35.0/rubylib/cask/cli/install.rb:6:in
each' /usr/local/Cellar/brew-cask/0.35.0/rubylib/cask/cli/install.rb:6:in
run'/usr/local/Cellar/brew-cask/0.35.0/rubylib/cask/cli.rb:57:in
run_command' /usr/local/Cellar/brew-cask/0.35.0/rubylib/cask/cli.rb:72:in
process'/usr/local/bin/brew-cask.rb:6:in
<top (required)>' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require'/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require' /usr/local/Library/brew.rb:59:in
require?'/usr/local/Library/brew.rb:142:in `
The text was updated successfully, but these errors were encountered: