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

Do you know where the file plugins/yard_plugin.rb is coming from? #1529

Closed dorianmarie closed 8 months ago

dorianmarie commented 8 months ago

I have an issue with rubygems not cleaning up one file

https://github.com/rubygems/rubygems/issues/7387

Steps to reproduce

I haven't figured out a consistent way to reproduce it

When the file is there, running bundle or gem will trigger the warning.

A file is generated somehow:

require_relative '../gems/yard-0.9.34/lib/rubygems_plugin.rb'

or

require_relative '../gems/yard-0.9.28/lib/rubygems_plugin.rb'
> cat /Users/dorianmariefr/.asdf/installs/ruby/*/lib/ruby/gems/*/plugins/yard_plugin.rb
require_relative '../gems/yard-0.9.28/lib/rubygems_plugin.rb'
require_relative '../gems/yard-0.9.28/lib/rubygems_plugin.rb'
require_relative '../gems/yard-0.9.28/lib/rubygems_plugin.rb'

Actual Output

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)

Expected Output

Nothing

Environment details:

I see it on Fedora package also

https://packages.fedoraproject.org/pkgs/rubygem-yard/rubygem-yard/fedora-rawhide.html

Screenshot 2024-01-16 at 20 28 55

So do you have any idea where this file is coming from and why it's not being removed?

dorianmarie commented 8 months ago

Looks like it's fixed in the latest release of rubygems/bundler