Closed everton closed 7 months ago
debugging the callers for the abbrev inside the gem, I was able to find the cause in my case; it was the Highline gem, and they are already looking for this issue:
I will not close the issue here now because I am still curious: is there any way that Ruby or Zeitwerk could improve this warning to point to the gem causing the warning? I mean, probably other similar cases will happen with other gems, and it seems interesting to know what the cause is without the need to debug from inside Zeitwerk code, but I really don't know if Ruby has the resources to instrument this.
Hi @everton.
Indeed, this is the 5th issue that is opened for the same reason.
Zeitwerk decorates Kernel#require
and Ruby issues a warning that basically assumes nobody is decorating that method. But this assumption is incorrect, since a few gems do, and Ruby modules are open by design anyway.
We are discussing here https://github.com/ruby/ruby/pull/10244.
Ruby 3.3.0 is presenting this warning while loading a Rails application:
The lib is now available as a gem maintained by Ruby team: https://github.com/ruby/abbrev
But I can't see any direct usage of the lib inside the project, so I think this is caused by dependencies loaded through zeitwerk, which leads to another problem (if this is the case): how can I tell what exactly is causing this?
I opened this issue here cause I don't know how I can find where is the proper repo to open it, feel free to close it, of course, but it would be great if:
Thanks!