Project

General

Profile

Actions

Bug #1810

closed

Switching into the specified irb subsession (complains a TypeError)

Added by robyonrails (Roberto Casadei) almost 15 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.0 (2008-06-20 revision 17482) [i486-linux]
Backport:
[ruby-core:24518]

Description

=begin
In irb, with the fg command, it switch the subsession correctly but it complains.

debian-roby:/home/roby# irb
irb(main):001:0> irb
irb#1(main):001:0> fg 0
TypeError: can't convert Symbol into String
from /usr/lib/ruby/1.9.0/irb.rb:317:in eval' from /usr/lib/ruby/1.9.0/irb.rb:317:in block in inspect'
from /usr/lib/ruby/1.9.0/irb.rb:310:in each' from /usr/lib/ruby/1.9.0/irb.rb:310:in inspect'
from /usr/lib/ruby/1.9.0/irb.rb:302:in output_value' from /usr/lib/ruby/1.9.0/irb.rb:150:in block (2 levels) in eval_input'
from /usr/lib/ruby/1.9.0/irb.rb:263:in signal_status' from /usr/lib/ruby/1.9.0/irb.rb:146:in block in eval_input'
from /usr/lib/ruby/1.9.0/irb/ruby-lex.rb:243:in block (2 levels) in each_top_level_statement' from /usr/lib/ruby/1.9.0/irb/ruby-lex.rb:230:in loop'
from /usr/lib/ruby/1.9.0/irb/ruby-lex.rb:230:in block in each_top_level_statement' from /usr/lib/ruby/1.9.0/irb/ruby-lex.rb:229:in catch'
from /usr/lib/ruby/1.9.0/irb/ruby-lex.rb:229:in each_top_level_statement' from /usr/lib/ruby/1.9.0/irb.rb:145:in eval_input'
from /usr/lib/ruby/1.9.0/irb.rb:69:in block in start' from /usr/lib/ruby/1.9.0/irb.rb:68:in catch'
from /usr/lib/ruby/1.9.0/irb.rb:68:in start' from /usr/bin/irb:12:in 'Maybe IRB bug!!
irb(main):002:0>

roby@debian-roby:~$ irb -v
irb 0.9.5(05/04/13)

Sorry if it wasn't relevant.
=end


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #144: irb fgClosedkeiju (Keiju Ishitsuka)Actions
Actions #1

Updated by naruse (Yui NARUSE) over 14 years ago

  • Status changed from Open to Assigned
  • Assignee set to keiju (Keiju Ishitsuka)

=begin
Currently following in my environment.

% ruby19 -v
ruby 1.9.2dev (2009-11-04 trunk 25649) [x86_64-freebsd8.0]

irb(main):011:0> fg 0
(eval):2: warning: method redefined; discarding old irb_fg
(eval):2: warning: previous definition of irb_fg was here
IRB::IrbSwitchedToCurrentThread: カレントスレッドに切り替わりました.
from (eval):3:in irb_fg' from (eval):14:in irb_fg'
from (irb):11
from /usr/local/bin/irb19:12:in `'

=end

Actions #2

Updated by mame (Yusuke Endoh) about 14 years ago

  • Status changed from Assigned to Closed

=begin
Hi,

I close this ticket because I guess this is already fixed, at least in trunk.

--
Yusuke Endoh
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0