Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No response after input :123 #256

Closed
JunichiIto opened this issue Jul 8, 2021 · 0 comments · Fixed by #262
Closed

No response after input :123 #256

JunichiIto opened this issue Jul 8, 2021 · 0 comments · Fixed by #262

Comments

@JunichiIto
Copy link

Description

irb 1.0.0 in Ruby 2.6.6 shows error after input :123:

irb(main):001:0> :123
Traceback (most recent call last):
        3: from /Users/jnito/.rbenv/versions/2.6.6/bin/irb:23:in `<main>'
        2: from /Users/jnito/.rbenv/versions/2.6.6/bin/irb:23:in `load'
        1: from /Users/jnito/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/irb-1.0.0/exe/irb:11:in `<top (required)>'
SyntaxError ((irb):1: syntax error, unexpected tINTEGER, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END)

However, irb 1.3.5 in Ruby 3.0.2 shows nothing. I had to press Ctrl-C in order to continue operation:

irb(main):001:0: :123
irb(main):002:0: 
irb(main):003:0: 
^C
irb(main):001:0> 

I think the behavior in irb 1.0.0 is more interactive than irb 1.3.5, especially for Ruby newbies.

Result of irb_info

irb(main):001:0> irb_info
=> 
Ruby version: 3.0.2
IRB version: irb 1.3.5 (2021-04-03)
InputMethod: ReidlineInputMethod with Reline 0.2.5
RUBY_PLATFORM: arm64-darwin20

Terminal Emulator

Terminal.app in macOS 11.4

Setting Files

Are you using ~/.irbrc and ~/.inputrc?

No.

osyo-manga pushed a commit to osyo-manga/irb that referenced this issue Jul 20, 2021
Support int that follow on symbeg in IRB
osyo-manga added a commit to osyo-manga/irb that referenced this issue Jul 20, 2021
Support int that follow on symbeg in IRB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant