homebrew-cask: Bug report: [keycastr reinstallation, uninstallation fails]

Remember to follow the pre bug report guide beforehand. Failure to do so might get your issue closed.

Description of issue

[Trying variously to reinstall or uninstall the cask keycastr fails.]

Output of `brew cask <command> --verbose`
$ brew cask uninstall keycastr --verbose
Warning: Calling "cask :v1 => 'token'" is deprecated!
Use "cask 'token'" instead.
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cask_loader.rb:36:in `cask'

==> Disabling accessibility access
==> Print: Entry, "CFBundleIdentifier", Does Not Exist
Error: keycastr: 'bundle_identifier' failed with: Command failed to execute!

==> Failed command:
/usr/libexec/PlistBuddy -c Print CFBundleIdentifier #<Pathname:/Applications/KeyCastr.app/Contents/Info.plist>

==> Standard Output of failed command:
File Doesn't Exist, Will Create: /Applications/KeyCastr.app/Contents/Info.plist


==> Standard Error of failed command:
Print: Entry, "CFBundleIdentifier", Does Not Exist


==> Exit status of failed command:
#<Process::Status: pid 97617 exit 1>
Error: Kernel.exit
$ brew cask reinstall keycastr --verbose
==> Downloading https://github.com/keycastr/keycastr/releases/download/v0.9.3/KeyCastr.app.zip
Already downloaded: /Users/jhemann/Library/Caches/Homebrew/Cask/keycastr--0.9.3.zip
==> Verifying checksum for Cask keycastr
Warning: Calling "cask :v1 => 'token'" is deprecated!
Use "cask 'token'" instead.
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cask_loader.rb:36:in `cask'

==> Disabling accessibility access
==> Print: Entry, "CFBundleIdentifier", Does Not Exist
Error: keycastr: 'bundle_identifier' failed with: Command failed to execute!

==> Failed command:
/usr/libexec/PlistBuddy -c Print CFBundleIdentifier #<Pathname:/Applications/KeyCastr.app/Contents/Info.plist>

==> Standard Output of failed command:
File Doesn't Exist, Will Create: /Applications/KeyCastr.app/Contents/Info.plist


==> Standard Error of failed command:
Print: Entry, "CFBundleIdentifier", Does Not Exist


==> Exit status of failed command:
#<Process::Status: pid 97807 exit 1>
Error: Kernel.exit
Output of `brew doctor`
$ brew doctor 
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  android-sdk

Warning: Broken symlinks were found. Remove them with `brew prune`:
  /usr/local/share/ghostscript/9.10/Resource/Font/logo10.pfb
  /usr/local/share/ghostscript/9.10/Resource/Font/logo8.pfb
  /usr/local/share/ghostscript/9.10/Resource/Font/logo9.pfb
  /usr/local/share/ghostscript/9.10/Resource/Font/logobf10.pfb
  /usr/local/share/ghostscript/9.10/Resource/Font/logod10.pfb
  /usr/local/share/ghostscript/9.10/Resource/Font/logosl10.pfb
  /usr/local/share/ghostscript/9.10/Resource/Font/logosl8.pfb
  /usr/local/share/ghostscript/9.10/Resource/Font/logosl9.pfb
  /usr/local/share/ghostscript/9.10/Resource/Font/manfnt.pfb
  /usr/local/share/ghostscript/9.10/Resource/Font/wasy10.pfb
  /usr/local/share/ghostscript/9.10/Resource/Font/wasy5.pfb
  /usr/local/share/ghostscript/9.10/Resource/Font/wasy6.pfb
  /usr/local/share/ghostscript/9.10/Resource/Font/wasy7.pfb
  /usr/local/share/ghostscript/9.10/Resource/Font/wasy8.pfb
  /usr/local/share/ghostscript/9.10/Resource/Font/wasy9.pfb
  /usr/local/share/ghostscript/9.10/Resource/Font/wasyb10.pfb
Output of `brew cask doctor`
$ brew cask doctor 
==> macOS Release:
10.10.5
==> Hardware Architecture:
intel-64
==> Ruby Version:
2.0.0-p481
==> Ruby Path:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
==> Homebrew Version:
Homebrew 1.1.8-42-g1f97e3186a
Homebrew/homebrew-core (git revision f753a; last commit 2017-01-26)
==> Homebrew Executable Path:
/usr/local/bin/brew
==> Homebrew Cellar Path:
/usr/local/Cellar
==> Homebrew Repository Path:
/usr/local/Homebrew
==> Homebrew Origin:
https://github.com/Homebrew/brew.git
==> Homebrew-Cask Version:
Homebrew-Cask 1.1.8-42-g1f97e3186a
caskroom/homebrew-cask (git revision 2138; last commit 2017-01-26)
==> Homebrew-Cask Install Location:
<NONE>
==> Homebrew-Cask Staging Location:
/usr/local/Caskroom
==> Homebrew-Cask Cached Downloads:
/Users/me/Library/Caches/Homebrew/Cask
0 files, 0B
==> Homebrew-Cask Default Tap Path:
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask
==> Homebrew-Cask Alternate Cask Taps:
/usr/local/Homebrew/Library/Taps/railwaycat/homebrew-emacsmacport
==> Homebrew-Cask Default Tap Cask Count:
3540
==> Contents of $LOAD_PATH:
/usr/local/Homebrew/Library/Homebrew/cask/lib
/usr/local/Homebrew/Library/Homebrew
/Library/Ruby/Site/2.0.0
/Library/Ruby/Site/2.0.0/x86_64-darwin14
/Library/Ruby/Site/2.0.0/universal-darwin14
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/x86_64-darwin14
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/universal-darwin14
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/x86_64-darwin14
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14
==> Contents of $RUBYLIB Environment Variable:
<NONE>
==> Contents of $RUBYOPT Environment Variable:
<NONE>
==> Contents of $RUBYPATH Environment Variable:
<NONE>
==> Contents of $RBENV_VERSION Environment Variable:
<NONE>
==> Contents of $CHRUBY_VERSION Environment Variable:
<NONE>
==> Contents of $GEM_HOME Environment Variable:
<NONE>
==> Contents of $GEM_PATH Environment Variable:
<NONE>
==> Contents of $BUNDLE_PATH Environment Variable:
<NONE>
==> Contents of $PATH Environment Variable:
PATH="/Users/me/Library/Haskell/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Library/TeX/texbin:/Users/me/Library/Haskell/bin:/usr/local/sbin:/Applications/Racket v6.5/bin:/Users/me/perl5/bin://FlameGraph:/Applications/Racket v6.5/bin:/Users/me/perl5/bin:/Users/me/FlameGraph:/usr/local/Homebrew/Library/Homebrew/cask/cmd:/usr/local/Homebrew/Library/Homebrew/shims/scm"
==> Contents of $SHELL Environment Variable:
SHELL="/bin/bash"
==> Contents of Locale Environment Variables:
LANG="en_US.UTF-8"

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 18 (10 by maintainers)

Most upvoted comments

A copy of the original formula that was used when first installing the Cask is kept inside a hidden .metadata directory, which is what I think may be causing your issue

Nice call! Definitely the right direction of thinking.