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
<internal:core> core/type.rb:104:in `coerce_to_failed': wrong argument type Hash (expected String) (TypeError)
from <internal:core> core/type.rb:93:in `execute_coerce_to'
from <internal:core> core/type.rb:85:in `coerce_to'
from /opt/rubies/truffleruby-22.3.0/lib/truffle/stringio.rb:146:in `initialize'
from (irb):1:in `<top (required)>'
from <internal:core> core/kernel.rb:407:in `loop'
from <internal:core> core/throw_catch.rb:36:in `catch'
from <internal:core> core/throw_catch.rb:36:in `catch'
from /opt/rubies/truffleruby-22.3.0/lib/gems/gems/irb-1.3.5/exe/irb:11:in `<top (required)>'
from <internal:core> core/kernel.rb:376:in `load'
from <internal:core> core/kernel.rb:376:in `load'
from /opt/rubies/truffleruby-22.3.0/bin/irb:42:in `<main>'
<internal:core> core/type.rb:91:in `execute_coerce_to': undefined method `to_str' for {:encoding=>#<Encoding:ASCII-8BIT>}:Hash (NoMethodError)
Did you mean? to_s
to_set
from <internal:core> core/type.rb:85:in `coerce_to'
from /opt/rubies/truffleruby-22.3.0/lib/truffle/stringio.rb:146:in `initialize'
from (irb):1:in `<top (required)>'
from <internal:core> core/kernel.rb:407:in `loop'
from <internal:core> core/throw_catch.rb:36:in `catch'
from <internal:core> core/throw_catch.rb:36:in `catch'
from /opt/rubies/truffleruby-22.3.0/lib/gems/gems/irb-1.3.5/exe/irb:11:in `<top (required)>'
from <internal:core> core/kernel.rb:376:in `load'
from <internal:core> core/kernel.rb:376:in `load'
from /opt/rubies/truffleruby-22.3.0/bin/irb:42:in `<main>'
<internal:core> core/type.rb:276:in `convert_type': no implicit conversion of Hash into String (TypeError)
from <internal:core> core/type.rb:258:in `rb_convert_type'
from <internal:core> core/kernel.rb:171:in `StringValue'
from /opt/rubies/truffleruby-22.3.0/lib/truffle/stringio.rb:154:in `initialize'
from (irb):2:in `<top (required)>'
from <internal:core> core/kernel.rb:407:in `loop'
from <internal:core> core/throw_catch.rb:36:in `catch'
from <internal:core> core/throw_catch.rb:36:in `catch'
from /opt/rubies/truffleruby-22.3.0/lib/gems/gems/irb-1.3.5/exe/irb:11:in `<top (required)>'
from <internal:core> core/kernel.rb:376:in `load'
from <internal:core> core/kernel.rb:376:in `load'
from /opt/rubies/truffleruby-22.3.0/bin/irb:42:in `<main>'
Looking at the CRuby implementation of StringIO I assume that StringIO.new accepts the keyword arguments only for compatibility of method signature with IO.new and File.new. It checks some error cases and just ignores values.
StringIO.new
does not appear to accept keyword arguments.TruffleRuby 22.3.0
CRuby 3.0.4
The text was updated successfully, but these errors were encountered: