Skip to content

undefined method '=~' for class 'Pry::Code' #433

Description

@MatzFan
$ rbenv versions
=> * 3.4.4 (set by /home/me/dev/protobuf/.ruby-version)
     3.5.0-preview1
$ git clone git@github.com:ruby-protobuf/protobuf.git
$ cd protobuf
$ bundle install
$ bundle exec rake
=> rake aborted!
     NameError: undefined method '=~' for class 'Pry::Code' (NameError)

Looks like this was fixed in Pry 0.14.2, but in the Gemfile Pry is pessimistically locked to 0.13.

Changing the Gemfile to read as follows for recent Rubies got the tests running.

gem 'pry', '~> 0.15.0'
gem 'pry-byebug', '~> 3.11.0'

Also, FWIW there was a deprecation warning re ostruct having been removed when using Ruby 3.5.0-preview1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions