When I run brew cask info for sublime text 3, I see this error
$ brew cask info sublime-text-3
Error: private method `split' called for nil:NilClass
Please report this bug:
https://github.com/mxcl/homebrew/wiki/troubleshooting
/usr/local/Cellar/brew-cask/0.19.1/rubylib/cask/cli/info.rb:35:in `github_info'
/usr/local/Cellar/brew-cask/0.19.1/rubylib/cask/cli/info.rb:28:in `info'
/usr/local/Cellar/brew-cask/0.19.1/rubylib/cask/cli/info.rb:6:in `run'
/usr/local/Cellar/brew-cask/0.19.1/rubylib/cask/cli/info.rb:3:in `each'
/usr/local/Cellar/brew-cask/0.19.1/rubylib/cask/cli/info.rb:3:in `run'
/usr/local/Cellar/brew-cask/0.19.1/rubylib/cask/cli.rb:35:in `process'
/usr/local/bin/brew-cask.rb:6
/usr/local/Library/brew.rb:51:in `require'
/usr/local/Library/brew.rb:51:in `require?'
/usr/local/Library/brew.rb:101
Running brew cask info for sublime text (version 2) works fine.
$ brew cask info sublime-text
sublime-text: 2.0.2
http://www.sublimetext.com/2
Not installed
https://github.com/phinze/homebrew-cask/commits/master/Casks/sublime-text.rb
I tried a couple of other random casks, both installed and uninstalled but so far cannot reproduce this error.
Brew cask version: 0.19.1
Pretty sure this is a manifestation of a bug that has since been fixed. brew cask info sublime-text works for me now. Feel free to reopen if you see additional problems. :sunrise:
brew cask info sublime-text-3 is the problem, not sublime-text. I realize that's from a separate keg so here is something from the default package list that fails:
$ brew cask info gpower-3
Error: private method `split' called for nil:NilClass
Please report this bug:
https://github.com/mxcl/homebrew/wiki/troubleshooting
/usr/local/Cellar/brew-cask/0.24.0/rubylib/cask/cli/info.rb:35:in `github_info'
/usr/local/Cellar/brew-cask/0.24.0/rubylib/cask/cli/info.rb:28:in `info'
/usr/local/Cellar/brew-cask/0.24.0/rubylib/cask/cli/info.rb:6:in `run'
/usr/local/Cellar/brew-cask/0.24.0/rubylib/cask/cli/info.rb:4:in `each'
/usr/local/Cellar/brew-cask/0.24.0/rubylib/cask/cli/info.rb:4:in `run'
/usr/local/Cellar/brew-cask/0.24.0/rubylib/cask/cli.rb:35:in `process'
/usr/local/bin/brew-cask.rb:6
/usr/local/Library/brew.rb:67:in `require'
/usr/local/Library/brew.rb:67:in `require?'
/usr/local/Library/brew.rb:113
I'm loving cask so far, really great idea, thanks for your work.
The problem is with the name. Numbers are not treated as new words, so they should be named sublime-text3 and gpower3. It鈥檚 also wrong on the docs, I鈥檒l fix this in a bit.
@irrevenant It should be fixed now. Please brew update and try again.
i'm getting
~ [ brew cask info sublime-text3
Error: No available cask for sublime-text3
@hems For sublime-text3, you鈥檒l have to tap this other repo.
thanks
Just recently this issue reemerged. You see sublime-text3 (!) in your brew cask list even when you already installed it from a different tap.
Turns out now brew cask install sublime-text installs version 3 by default.
Beware.
The download page linked to at https://www.sublimetext.com now points to ST3, and as such, is now the default.
No need to beware, just be aware.
Feel free to open up a PR to add sublime-text-2 to `homebrew-versions if you think it warrants inclusion, and we can discuss it there, for sure.
no - beware is correct. if you have code (say, config management) that referenced sublime-text3, you'll find it broken.
proper backward compatible behavior would be for -both- sublime-text and sublime-text3 to install ST3, with the sublime-text3 package returning a deprecation warning, then eventually returning an error that points to the new package.
sigh.
still broken when we use brew cask install sublime-text
@airtonix please open up a new issue, following the appropriate directions in the template
Most helpful comment
Just recently this issue reemerged. You see
sublime-text3 (!)in yourbrew cask listeven when you already installed it from a different tap.Turns out now
brew cask install sublime-textinstalls version 3 by default.Beware.