Error loading RubyGems plugin rubygems/doc_manager
Everytime I use the gem executable, I'm getting some error from yard:
tom@laptole:~$ gem --version
Error loading RubyGems plugin "/usr/local/rvm/gems/ruby-2.0.0-p0/gems/yard-0.6.8/lib/rubygems_plugin.rb": cannot load such file -- rubygems/doc_manager (LoadError)
2.0.3
As you can see I'm using: gem 2.0.3 ruby 2.0.0-p0 yard 0.6.8
Regards, Tom
gem uninstall yard -v 0.6.8 should solve this. Make sure you use the latest version of YARD on Ruby 2.
Ah darn... Some Gemfile depended on the old version... Tyvm! Problem solved!
I followed the above steps and the issue resolved now. Thanks.
Hmm. @lsegal I can swear I have uninstalled yard and reinstalled it via Bundler countless times but I keep getting this error and multiple people at Code School too.
@olivierlacan can you print the updated error, Ruby version, YARD version, RubyGems version, and possibly your Gemfile.lock?
$ gem install powder
Error loading RubyGems plugin "/Users/olivierlacan/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/yard-0.8.3/lib/rubygems_plugin.rb": cannot load such file -- rubygems/doc_manager (LoadError)
Updating yard to 0.8.7.6 fixed the issue for me apparently:
Installing yard 0.8.7.6 (was 0.8.3)
For me it was the inverse, gem install yard fixed it
Today got the same error and the solution was to gem install yard or add gem "yard" to the Gemfile
Error loading RubyGems plugin "/Users/dorianmariefr/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/plugins/yard_plugin.rb": cannot load such file -- /Users/dorianmariefr/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/yard-0.9.34/lib/rubygems_plugin.rb (LoadError)