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
Upgrading my ruby from 3.1 to 3.3.1, my very simple script stopped working because it couldn't find Kernel.loop. (But it's also easily reproducible from /ruby eval).
Steps to reproduce
/ruby eval [].shuffle or /ruby eval loop { break } or call any other function defined in .rbinc files.
Current behavior
21:51:28 =!= | ruby: error: (eval at (eval at eval:34):7):1:in `script_ruby_eval': undefined method `shuffle' for an instance of Array (#<Class:#<NoMethodError:0x00007f4b6cdd6d78>>)
21:51:28 =!= | ruby: error: from (eval at eval:34):7:in `module_eval'
21:51:28 =!= | ruby: error: from (eval at eval:34):7:in `script_ruby_eval'
Expected behavior
Built-in ruby functions work...
Suggested solutions
No response
Additional information
No response
WeeChat version
4.2.2
What OS are you using?
Gentoo
On which terminal are you running WeeChat?
No response
Which terminal multiplexer are you using?
No response
The text was updated successfully, but these errors were encountered:
Looks like ruby_process_options need to be called now, it calls a bunch of (private) setup functions, something sets up these builtin methods. As a very quick and dirty workaround, adding
Describe the bug
Upgrading my ruby from 3.1 to 3.3.1, my very simple script stopped working because it couldn't find
Kernel.loop
. (But it's also easily reproducible from/ruby eval
).Steps to reproduce
/ruby eval [].shuffle
or/ruby eval loop { break }
or call any other function defined in.rbinc
files.Current behavior
Expected behavior
Built-in ruby functions work...
Suggested solutions
No response
Additional information
No response
WeeChat version
4.2.2
What OS are you using?
Gentoo
On which terminal are you running WeeChat?
No response
Which terminal multiplexer are you using?
No response
The text was updated successfully, but these errors were encountered: