lsegal / yard

YARD is a Ruby Documentation tool. The Y stands for "Yay!"
http://yardoc.org
MIT License
1.94k stars 397 forks source link

Error loading RubyGems plugin rubygems/doc_manager #669

Closed TvL2386 closed 11 years ago

TvL2386 commented 11 years ago

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

lsegal commented 11 years ago

gem uninstall yard -v 0.6.8 should solve this. Make sure you use the latest version of YARD on Ruby 2.

TvL2386 commented 11 years ago

Ah darn... Some Gemfile depended on the old version... Tyvm! Problem solved!

maniempire commented 10 years ago

I followed the above steps and the issue resolved now. Thanks.

olivierlacan commented 8 years ago

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.

lsegal commented 8 years ago

@olivierlacan can you print the updated error, Ruby version, YARD version, RubyGems version, and possibly your Gemfile.lock?

olivierlacan commented 8 years ago
$ 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)
dorianmariecom commented 2 years ago

For me it was the inverse, gem install yard fixed it

dorianmarie commented 8 months ago

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)