[Ruby 1.9 - Bug #98] (Open) irb Classを抜けるとTypeError

Issue #98 has been reported by Anonymous.


Bug #98: irb Classを抜けるとTypeError
http://redmine.ruby-lang.org/issues/show/98

Author: Anonymous
Status: Open
Priority: Normal
Assigned to:
Category:
Target version:

ClassやClass.newなどのClassクラスのオブジェクトに入ると抜けるときにTypeErrorになります。

irb-trunk -r irb/completion --simple-prompt

RUBY_DESCRIPTION
=> “ruby 1.9.0 (2008-06-04 revision 16813) [i686-linux]”

irb Class
exit
TypeError: can’t convert Symbol into String
from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:317:in
eval' from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:317:inblock in inspect’
from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:310:in
each' from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:310:ininspect’
from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:302:in
output_value' from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:150:inblock (2 levels) in eval_input’
from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:263:in
signal_status' from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:146:inblock in eval_input’
from
/home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb/ruby-lex.rb:243:in block (2 levels) in each_top_level_statement' from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb/ruby-lex.rb:230:inloop’
from
/home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb/ruby-lex.rb:230:in block in each_top_level_statement' from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb/ruby-lex.rb:229:incatch’
from
/home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb/ruby-lex.rb:229:in
each_top_level_statement' from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:145:ineval_input’
from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:69:in
block in start' from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:68:incatch’
from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:68:in
start' from /home/kazu/opt/ruby-trunk/bin/irb-trunk:12:in'Maybe
IRB bug!!

exit
% irb18 -r irb/completion --simple-prompt

RUBY_DESCRIPTION
=> “ruby 1.8.7 (2008-06-04 patchlevel 5000) [i686-linux]”

irb Class
exit
=> #<IRB::Irb: @context=#IRB::Context:0xb7c5a94c,
@signal_status=:IN_EVAL, @scanner=#RubyLex:0xb7c5a104>

exit
%

e$B%A%1%C%He(B #98 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

Applied in changeset r18465.

http://redmine.ruby-lang.org/issues/show/98

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs