Closed wfdd closed 8 years ago
As an aside, the output or brew cask doctor
has my OS X username under the 'Homebrew-Cask Cached Downloads' heading. A less astute copy-paster might unwittingly reveal their name.
Also, error message shouldn't suggest brew untap phinze/cask
command. As of https://github.com/caskroom/homebrew-cask/issues/16094#issuecomment-167276090
@sanyer That comment instructs you not to tap phinze/cask
, not untap it. Some folks have been using Homebrew Cask since the days when @phinze ran the show, and they may have an old tap lying around causing bugs. The suggestion is still relevant to those users.
@jawshooah oh, ok, makes sense. Thing is, that it confused me and I started looking for this tap, ended up tapping it :-)
Same error still after updated with merge from https://github.com/caskroom/homebrew-cask/pull/23782. Were there some changes made that might cause errors for previously installed older casks, that might not occur for outdated casks installed following this merge?
@wickles, what cask(s) exactly is this happening with?
All outdated casks that I've tried.
Note that I do have the deprecated Caskroom path:
==> Homebrew-Cask Staging Location:
/opt/homebrew-cask/Caskroom
Maybe that's causing problems?
Is it working for current casks? If it is, the Caskroom
path is unlikely to be the issue.
Yes. brew cask info
works for casks that I do not have installed and for casks that were previously installed but up to date.
That's more a lack of fault tolerance than an actual bug. The new info
lists all prior versions you've got installed; it derives these from the hidden 'metadata' folder. You appear to have deleted the cask version folders but retained their corresponding metadata entries. Try running cd /opt/homebrew-cask/Caskroom/calibre; ls .metadata | xargs mkdir
and then brew cask info calibre
again.
@wfdd, that was also the only thing I could think of, as there are some casks that move the entire versioned staged_path
as a suite
(e. g. displaycal).
Both brew cask info displaycal
and brew cask uninstall displaycal
fail after installation, so this should be treated as a bug then.
@wfdd, brew cask uninstall displaycal
is working for me, so this might be a separate issue.
I experienced this issue with casks I had previously installed and updated. I had deleted the prior version folder under /usr/local/Caskroom/(cask)/(old-version) but not the corresponding version folder in .metadata (/usr/local/Caskroom/(cask)/.metadata/(old-version)). Once I also deleted the prior version folder in .metadata everything is working as expected.
Ok, info
works appropriately now since https://github.com/caskroom/homebrew-cask/pull/23808. FWIW I was using just brew cask install --force
to upgrade outdated casks, which I was under the impression was a suggested approach.
Also, this change breaks my cask-outdated
alias:
alias cask-outdated='brew cask list | xargs brew cask info | grep -i -B 3 '\''Not installed'\'''
Is there a new suggested way to check for outdated casks?
There is not yet an officially supported way to check for outdated Casks or to upgrade Casks.
Speaking as a user and not as a maintainer, however, check out brew-cask-upgrade.
Well, uninstall
should be working now for old versions. So I would suggest
brew cask uninstall {{cask}}
brew cask install {{cask}}
to upgrade, instead of brew cask install --force
.
Would it make sense to add a line to info
to show when a cask is installed but not current? Analogously to Not installed
. For example:
mono-mdk: 4.4.2.11 http://mono-project.com/ Not up-to-date /opt/homebrew-cask/Caskroom/mono-mdk/4.2.1.102 (does not exist) /opt/homebrew-cask/Caskroom/mono-mdk/4.4.0.142 (295.0M) /opt/homebrew-cask/Caskroom/mono-mdk/4.4.1.0 (302.6M) From: https://github.com/caskroom/homebrew-cask/blob/master/Casks/mono-mdk.rb ==> Name Mono ==> Artifacts MonoFramework-MDK-4.4.2.11.macos10.xamarin.universal.pkg (pkg)
brew cask info atom
errors withNo such file or directory - /usr/local/Caskroom/atom/1.9.8
. Looking inside/usr/local/Caskroom/atom
, I appear to have version 1.9.7 installed. I moved another, unrelated cask's inner folder to a different name, ranbrew cask info other_cask
and had the same error pop up.Output of `brew cask info atom --verbose`
``` Error: No such file or directory - /usr/local/Caskroom/atom/1.9.8 Most likely, this means you have an outdated version of Homebrew-Cask. Please run: brew uninstall --force brew-cask; brew untap phinze/cask; brew untap caskroom/cask; brew update; brew cleanup; brew cask cleanup If this doesn’t fix the problem, please report this bug: https://github.com/caskroom/homebrew-cask#reporting-bugs /usr/local/Library/Homebrew/extend/pathname.rb:50:in `lstat' /usr/local/Library/Homebrew/extend/pathname.rb:50:in `lstat' /usr/local/Library/Homebrew/extend/pathname.rb:50:in `compute_disk_usage' /usr/local/Library/Homebrew/extend/pathname.rb:21:in `abv' /usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/cli/info.rb:19:in `info' /usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/cli/info.rb:8:in `block in run' /usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/cli/info.rb:5:in `each' /usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/cli/info.rb:5:in `run' /usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/cli.rb:108:in `run_command' /usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/cli.rb:146:in `process' /usr/local/Library/Taps/caskroom/homebrew-cask/cmd/brew-cask.rb:23:in `Output of `brew doctor`
—Output of `brew cask doctor`
``` ==> macOS Release: 10.11.6 ==> Hardware Architecture: intel-64 ==> Ruby Version: 2.0.0-p648 ==> Ruby Path: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby ==> Homebrew Version: Homebrew 0.9.9 (git revision b40b0; last commit 2016-08-13) Homebrew/homebrew-core (git revision 35ae; last commit 2016-08-13) ==> Homebrew Executable Path: /usr/local/bin/brew ==> Homebrew Cellar Path: /usr/local/Cellar ==> Homebrew Repository Path: /usr/local ==> Homebrew Origin: https://github.com/Homebrew/brew ==> Homebrew-Cask Version: 0.60.0 (git revision 96c1; last commit 5 hours ago) ==> Homebrew-Cask Install Location: