Skip to content

Rails 8.1.1 Ruby 3.4.0 no implicit conversion of Array into Integer (TypeError) #870

@stony245

Description

@stony245

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions