executable-hooks
executable-hooks copied to clipboard
Error Loading executable-hooks And gem-wrappers After Upgrading To rvm 2.3.4
I'm getting some failures in a gem that depends on executable-hooks and gem-wrappers. bundle install produces the following error messages:
Error loading RubyGems plugin "/Users/michaelchapman/.rvm/gems/ruby-2.3.4@global/gems/executable-hooks-1.4.2/lib/rubygems_plugin.rb": cannot load such file -- executable-hooks/wrapper (LoadError)
Error loading RubyGems plugin "/Users/michaelchapman/.rvm/gems/ruby-2.3.4@global/gems/gem-wrappers-1.3.2/lib/rubygems_plugin.rb": cannot load such file -- gem-wrappers (LoadError)
Both gems are ignored by bundler. It says their extensions are not built. I have run gem pristine --all and it says that the relevant versions have had their extensions built and are restored, but it doesn't seem to help.
When I run the gem that relies on these two, I get some failures with rspec that seem to originate with executable-hooks...
/usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/ripper/lexer.rb:123:in `_push_token': undefined method `state' for #<Ripper::Lexer:0x007feb3927b330 @buf=[], @stack=[]> (NoMethodError)
...
from /Users/michaelchapman/.rvm/gems/ruby-2.3.4/bin/ruby_executable_hooks:15:in `eval'
from /Users/michaelchapman/.rvm/gems/ruby-2.3.4/bin/ruby_executable_hooks:15:in `<main>'
bundle install --system seems to have cleared up this issue.
There might be a update for this solution. When I tried bundle install --system, it says:
╰─ bundle install --system
[DEPRECATED] The --system flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use bundle config set system 'true', and stop using this flag.
Is this still valid or we can close it?
bundle install --systemseems to have cleared up this issue.
gem update --system solved it on my end