You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
binding.irb fails when used in BasicObject-derived class #1114
I expected that binding.irb would start an interactive session regardless of execution context's class. However, that is not the case, as IRB can't be found when called in BasicObject. Though, this behavior is inconsistent and depends both on Ruby version and irb version.
This script consistently reproduces the problem for me on Ruby 3.3.9, but not 3.2.9:
Oops, just noticed that I wasn't using the latest version of "irb" gem. This no longer fails with 1.15.2. Even though there aren't any changes in Binding#irb between them.
Activity
trinistr commentedon Jul 30, 2025
Oops, just noticed that I wasn't using the latest version of "irb" gem. This no longer fails with 1.15.2. Even though there aren't any changes in
Binding#irbbetween them.tompng commentedon Nov 19, 2025
Fixed in #1031