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

Removed Yard-Rails, still getting "[warn]: Error loading plugin 'yard-rails'" two times #1

Open
jmuheim opened this issue Nov 15, 2012 · 3 comments

Comments

@jmuheim
Copy link

jmuheim commented Nov 15, 2012

I have removed yard-rails gem, but when running rspec, I'm getting 2 occurrences of [warn]: Error loading plugin 'yard-rails'.

I have searched the whole project but don't seem to be able to find the cause and remove it.

Any idea? Thank you.

@jmuheim
Copy link
Author

jmuheim commented Nov 15, 2012

After having removed the .yardoc file in the project's root, it's only displaying once now.

@ogeidix
Copy link
Owner

ogeidix commented Nov 27, 2012

I have no idea. Unfortunately right now I don't have time to investigate it and I am not using the gem since 5 months.

@limhoff-r7
Copy link

@jmuheim I had the same problem, but with 'yard-delegate': the issue was that although 'yard-delegate' was no longer in my Gemfile and bundle, it was still in my gemset. Make sure to gem uninstall yard-rails as yard looks for plugin gems using rubygems directly and that bypasses the bundle:

 # Load gem plugins if :load_plugins is true
    def self.load_gem_plugins
      return true unless options[:load_plugins]
      require 'rubygems'
      result = true
      Gem.source_index.find_name('').each do |gem|
        begin
          next true unless gem.name =~ YARD_PLUGIN_PREFIX
          load_plugin(gem.name)
        rescue Gem::LoadError => e
          tmp = load_plugin_failed(gem.name, e)
          result = tmp if !tmp
        end
      end
      result
    rescue LoadError
      log.debug "RubyGems is not present, skipping plugin loading"
      false
    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

3 participants