Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Loading executable-hooks And gem-wrappers After Upgrading To rvm 2.3.4 #31

Open
ecssiah opened this issue Apr 26, 2018 · 4 comments

Comments

@ecssiah
Copy link

ecssiah commented Apr 26, 2018

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>'
@ecssiah
Copy link
Author

ecssiah commented Apr 26, 2018

bundle install --system seems to have cleared up this issue.

@allenlinli
Copy link

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.

@pkuczynski
Copy link
Member

Is this still valid or we can close it?

@GrabbenD
Copy link

bundle install --system seems to have cleared up this issue.

gem update --system solved it on my end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants