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 RubyGems plugin rubygems/doc_manager #669

Closed
TvL2386 opened this issue May 1, 2013 · 8 comments
Closed

Error loading RubyGems plugin rubygems/doc_manager #669

TvL2386 opened this issue May 1, 2013 · 8 comments

Comments

@TvL2386
Copy link

TvL2386 commented May 1, 2013

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
Copy link
Owner

lsegal commented May 2, 2013

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

@lsegal lsegal closed this as completed May 2, 2013
@TvL2386
Copy link
Author

TvL2386 commented May 2, 2013

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

@maniempire
Copy link

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

@olivierlacan
Copy link

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
Copy link
Owner

lsegal commented Dec 21, 2015

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

@olivierlacan
Copy link

$ 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
Copy link

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

@dorianmarie
Copy link

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)

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

6 participants