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
Rails 8.1.1 Ruby 3.4.0 no implicit conversion of Array into Integer (TypeError) #870
I get the following error when starting rails console in Rails 8.1.1 and Ruby 3.4.0 ./console Array values in the parameter toGem.paths=` are deprecated.
Please use a String or nil.
An Array ({"GEM_PATH" => ["/home/pst/.rbenv/versions/3.4.7/lib/ruby/gems/3.4.0", "/home/pst/.local/share/gem/ruby/3.4.0"]}) was passed in from bin/rails:3:in 'Kernel#load'
Running via Spring preloader in process 16688
Loading development environment (Rails 8.1.1)
/home/pst/.rbenv/versions/3.4.7/lib/ruby/gems/3.4.0/gems/reline-0.6.3/lib/reline/line_editor.rb:418:in 'block in Reline::LineEditor#render_line_differential': no implicit conversion of Array into Integer (TypeError)
x, w, content = new_items[level]
^^^^^
from /home/pst/.rbenv/versions/3.4.7/lib/ruby/gems/3.4.0/gems/reline-0.6.3/lib/reline/line_editor.rb:410:in 'Array#each'
`
new_items is [0, 19, "pst(\e[34mdev\e[0m):001> "], [19, 0, ""]]
and level is [0, nil]
in that case
Can you check if Array#chunk is overridden?
Can you check if the overridden Array#chunk is correctly implemented?
p[1,2,3,4,5].chunk{[1,nil,2][_1/2]}.to_a# Should print [[1, [1]], [2, [4, 5]]]p[].method(:chunk).source_location# Should print nilp[1,2,3,4,5].chunk(2)# Should raise ArgumentError
If it is overridden in a gem, I want to know which gem is the cause.
Activity
tompng commentedon Nov 20, 2025
I think this is the same issue as #670.
Can you check if
Array#chunkis overridden?Can you check if the overridden
Array#chunkis correctly implemented?If it is overridden in a gem, I want to know which gem is the cause.