buo / homebrew-cask-upgrade

A command line tool for upgrading every outdated app installed by Homebrew Cask
MIT License
2.4k stars 90 forks source link

error on brew cu #112

Closed hmstanley closed 5 years ago

hmstanley commented 5 years ago

Error: cannot load such file -- cask/all /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire' /usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade/lib/bcu.rb:4:in <top (required)>' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' /usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade/cmd/brew-cu.rb:32:in<top (required)>' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire' /usr/local/Homebrew/Library/Homebrew/utils.rb:19:in require?' /usr/local/Homebrew/Library/Homebrew/brew.rb:95:in

'

~ ▶ brew cask doctor ==> Homebrew-Cask Version Homebrew-Cask 1.7.3 Homebrew/homebrew-cask (git revision 02f179; last commit 2018-09-05) ==> macOS 10.13.6 ==> SIP Enabled ==> Java N/A ==> Homebrew-Cask Install Location

==> Homebrew-Cask Staging Location /usr/local/Caskroom ==> Homebrew-Cask Taps: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask (4045 casks) ==> Contents of $LOAD_PATH /Library/Ruby/Gems/2.3.0/gems/did_you_mean-1.0.0/lib /Library/Ruby/Site/2.3.0 /Library/Ruby/Site/2.3.0/x86_64-darwin17 /Library/Ruby/Site/2.3.0/universal-darwin17 /Library/Ruby/Site /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/vendor_ruby/2.3.0 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/vendor_ruby/2.3.0/x86_64-darwin17 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/vendor_ruby/2.3.0/universal-darwin17 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/vendor_ruby /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/x86_64-darwin17 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/universal-darwin17 /usr/local/Homebrew/Library/Homebrew/cask/lib /usr/local/Homebrew/Library/Homebrew ==> Environment Variables LC_ALL="en_US.UTF-8" PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/Homebrew/Library/Homebrew/shims/scm" SHELL="/bin/bash"
greveritt commented 5 years ago

Hmm, it looks like this is caused by #110 ?

hmstanley commented 5 years ago

Do i need to do anything? to fix?

electriquo commented 5 years ago

@hmstanley: do this

$ cd "$(brew --repo)
$ git fetch
$ git reset --hard origin/master
$ brew update
hmstanley commented 5 years ago

That worked. Please close.

On Sep 5, 2018, at 9:26 AM, y0y0z notifications@github.com wrote:

@hmstanley https://github.com/hmstanley: do this

$ cd "$(brew --repo) $ git fetch $ git reset --hard origin/master $ brew update — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/buo/homebrew-cask-upgrade/issues/112#issuecomment-418793946, or mute the thread https://github.com/notifications/unsubscribe-auth/AA9MaBHTZq5ma5pUW1SZQupsKpT7DZ45ks5uX_sjgaJpZM4WbN7J.

mrichman commented 5 years ago

@hmstanley Why close this issue? You are not the only one affected, and there needs to be a better fix than nuking the git repo.

hmstanley commented 5 years ago

Oh, fair enough.. sorry.. was just pointing out that it fixed it for me.

mrichman commented 5 years ago

@hmstanley That's cool.

Also, the first line in the proposed workaround is incorrect. You need to omit the double quotes (").

The correct command is cd $(brew --repo)

hmstanley commented 5 years ago

yea. Fixed that myself.. but yes.

On Sep 5, 2018, at 11:10 AM, Mark Richman notifications@github.com wrote:

@hmstanley https://github.com/hmstanley That's cool.

Also, the first line in the proposed workaround is incorrect. You need to omit the double quotes (").

The correct command is cd $(brew --repo)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/buo/homebrew-cask-upgrade/issues/112#issuecomment-418827496, or mute the thread https://github.com/notifications/unsubscribe-auth/AA9MaPGBFXLKz568DgT0xIZOjesFjsUMks5uYBODgaJpZM4WbN7J.

AJCrowley commented 5 years ago

Just came here because of this. Thanks for the fix!

QuattroGam3r commented 5 years ago

Thank you for the quick fix!

voody77 commented 5 years ago

Thx, fixed!

Hanstad commented 5 years ago

Thanks!

pl0pix commented 5 years ago

Thanks!

giacgbj commented 5 years ago

I followed the workaround, but now the error is:

ijhack:Homebrew jhack$ brew cu -ay
Error: uninitialized constant Hbc
/usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade/lib/extend/hbc.rb:3:in `<top (required)>'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade/lib/bcu.rb:6:in `<top (required)>'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade/cmd/brew-cu.rb:32:in `<top (required)>'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Homebrew/Library/Homebrew/utils.rb:19:in `require?'
/usr/local/Homebrew/Library/Homebrew/brew.rb:95:in `<main>'
untcha commented 5 years ago

Same here. Workaround leads into: Error: uninitialized constant Hbc

ondrejfuhrer commented 5 years ago

Yeah, there was another rename happening, there is already a fix for that waiting in PR https://github.com/buo/homebrew-cask-upgrade/pull/114

Just waiting for @buo to merge that. Meanwhile feel free to use my branch from that PR

Fischmuetze commented 5 years ago

@ondrejfuhrer

Meanwhile feel free to use my branch from that PR

How?

ondrejfuhrer commented 5 years ago

@Fischmuetze If you don't know, would be better if you wait until the master branch gets updated. It involves some knowledge about git and be able to fix potential issues. Therefore I would strongly recommend right now for you to wait 🙂

Fischmuetze commented 5 years ago

Thanks a lot ... hopefully the fix will be available soon

ondrejfuhrer commented 5 years ago

Since not yet merged, here is a workaround: https://github.com/buo/homebrew-cask-upgrade/pull/114#issuecomment-419379489

electriquo commented 5 years ago

@ondrejfuhrer: any idea what keeps it from being merged if it fixes the issue?

greveritt commented 5 years ago

@y0y0z I'm guessing that @buo simply hasn't had the time to review it yet; he approved another PR that @ondrejfuhrer created for this general issue.

electriquo commented 5 years ago

@buo: we all love you, could you please help us out with the merge? :) :shipit: and apologies if my mention annoyed you.