yard icon indicating copy to clipboard operation
yard copied to clipboard

Error loading RubyGems plugin rubygems/doc_manager

Open TvL2386 opened this issue 13 years ago • 8 comments

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

TvL2386 avatar May 01 '13 08:05 TvL2386

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

lsegal avatar May 02 '13 00:05 lsegal

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

TvL2386 avatar May 02 '13 07:05 TvL2386

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

maniempire avatar Feb 13 '14 11:02 maniempire

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 avatar Dec 21 '15 15:12 olivierlacan

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

lsegal avatar Dec 21 '15 23:12 lsegal

$ 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)

olivierlacan avatar May 19 '16 00:05 olivierlacan

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

dorianmariecom avatar Jan 16 '22 15:01 dorianmariecom

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)

dorianmarie avatar Jan 13 '24 09:01 dorianmarie