-
Notifications
You must be signed in to change notification settings - Fork 140
Closed
Description
Description
Hello. 👋 I'd like to be able to launch IRB and then create a basic object (i.e. BasicObject.new) without seeing the following error with IRB 1.6.2:
An error occurred when inspecting the object: #<NoMethodError: undefined method `is_a?' for #<BasicObject:0x000000010dd12a28>>
Result of Kernel#inspect: #<BasicObject:0x000000010dd12a28>
With IRB 1.6.3 (after making it the default gem), behavior changes slightly to the following:
(Object doesn't support #inspect)
Here's a quick screencast using IRB 1.6.2:
basic_object_error.mp4
Result of irb_info
Ruby version: 3.2.1
IRB version: irb 1.6.3 (2023-03-06)
InputMethod: RelineInputMethod with Reline 0.3.2 and /Users/bkuhlmann/.inputrc
.irbrc path: /Users/bkuhlmann/.irbrc
RUBY_PLATFORM: arm64-darwin22.3.0
LANG env: en_US.UTF-8
East Asian Ambiguous Width: 1
Terminal Emulator
iTerm (but behavior is the same using macOS Terminal as well).
Setting Files
I'm using a custom ~/.irbrc but behavior is the same whether I use my configuration or not.
Metadata
Metadata
Assignees
Labels
No labels