Project

General

Profile

Bug #144

irb fg

Added by Anonymous about 9 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-dev:35074]

Description

=begin
西山和広です。

fgに引数を指定しなかったりjobsにない数値を指定すると
「Maybe IRB bug!!」になります。

「Maybe IRB bug!!」の前に改行がないのも変な気がします。

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

RUBY_DESCRIPTION
=> "ruby 1.9.0 (2008-06-12 revision 17105) [i686-linux]"
fg
ArgumentError: wrong number of arguments (0 for 1)
from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb/cmd/nop.rb:19:in execute'
from (eval):3:in
irb_fg'
from (eval):9:in irb_fg'
from (irb):2:in
irb_binding'
from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb/workspace.rb:80:in ev
al'
from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb/workspace.rb:80:in
evaluate'
from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb/context.rb:218:in evaluate'
from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:149:in
block (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:in
block 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:in
loop'
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:in
catch'
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:in
eval_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:in
catch'
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!!
jobs
=> #0->irb on main (#Thread:0x805c1cc: running)
fg 1
NoMethodError: undefined method alive?' for nil:NilClass
from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb/ext/multi-irb.rb:55:in
switch'
from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb/cmd/subirb.rb:32:in execute'
from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb/cmd/nop.rb:19:in
execute'
from (eval):3:in irb_fg'
from (eval):9:in
irb_fg'
from (irb):4:in irb_binding'
from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb/workspace.rb:80:in
eval'
from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb/workspace.rb:80:in evaluate'
from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb/context.rb:218:in
evaluate'
from /home/kazu/opt/ruby-trunk/lib/ruby/1.9.0/irb.rb:149:in block (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:in block 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:in loop'
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:in catch'
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:in eval_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:in catch'
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!!

--
|ZnZ(ゼット エヌ ゼット)
|西山和広(Kazuhiro NISHIYAMA)
=end


Related issues

Related to Ruby trunk - Bug #1810: Switching into the specified irb subsession (complains a TypeError)Closed2009-07-23

Associated revisions

Revision 9169
Added by nahi (Hiroshi Nakamura) almost 12 years ago

* lib/{soap,wsdl,xsd}, test/{soap,wsdl,xsd}: imported soap4r/1.5.5.

#nnn is a ticket number at http://dev.ctor.org/soap4r

* SOAP

* allow to configure an envelope namespace of SOAP request. (#124)
TemporaryNamespace = 'http://www.w3.org/2003/05/soap-envelope'
@client.options["soap.envelope.requestnamespace"] =
TemporaryNamespace
@client.options["soap.envelope.responsenamespace"] =
TemporaryNamespace
@client.do_proc(...)

* let SOAP request XML indent space configuable. see
"soap.envelope.no_indent" option. (#130)

* let external CES configuable.
ex. client["soap.mapping.external_ces"] = 'SJIS'. $KCODE is used
by default. (#133)
external CES ::= CES used in Ruby object of client and server
internal CES ::= CES used in SOAP/OM

* add iso-8859-1 external CES support. (#106)

* fixed illegal 'qualified' handling of elements. it caused
ASP.NET inteoperability problem. (#144)

* added 'soap.envelope.use_numeric_character_reference' (boolean)
option to let query XML use numeric character reference in XML,
not plain UTF-8 character. !GoogleSearch server seems to not
allow plain UTF-8 character since 2005-08-15 update. (#147)

* SOAP::Header::SimpleHeader (de)serialization throws an exception
on !SimpleHeader.on_(in|out)bound when header is a String. so we
could not use a simple single element headerItem. fixed. thanks
to emil. (#129)

* out parameter of rpc operation did not work. (#132)

* follow HTTP redirect only if using http-access2. (#125) (#145)

* add a workaround for importing an WSDL whose path begins with
drive letter. (#115)

* WSDL

* SOAP Data which is defined as a simpletype was not mapped
correctly to Ruby obj when using wsdl2ruby.rb generated classdef
file. (#123)

* rpc/literal support. (#118)

* re-implemented local element qualify/unqualify control. handles
elementFormDefault and form in WSDL. (#119)

* Array of an element which has simpleType causes a crash. (#128)

* prarmeterOrder may not contain return part so it can be shorter
than parts size. Thanks to Hugh. (#139)

* Samples

* added !BasicAuth client sample. (#117)

* added Base64 client/server sample.

* added Flickr SOAP interface client sample. (#122)

* added !SalesForce client sample. (#135)

* updated Thawte CA certificate for !GoogleAdWords sample.

* updated a client script with the newer version made by Johan.
thanks!

* shortened long file names. (#120)

* fixed typo in authheader sample. (#129)

* updated deprecated method usage. (#138)

Revision 9169
Added by nahi (Hiroshi Nakamura) almost 12 years ago

* lib/{soap,wsdl,xsd}, test/{soap,wsdl,xsd}: imported soap4r/1.5.5.

#nnn is a ticket number at http://dev.ctor.org/soap4r

* SOAP

* allow to configure an envelope namespace of SOAP request. (#124)
TemporaryNamespace = 'http://www.w3.org/2003/05/soap-envelope'
@client.options["soap.envelope.requestnamespace"] =
TemporaryNamespace
@client.options["soap.envelope.responsenamespace"] =
TemporaryNamespace
@client.do_proc(...)

* let SOAP request XML indent space configuable. see
"soap.envelope.no_indent" option. (#130)

* let external CES configuable.
ex. client["soap.mapping.external_ces"] = 'SJIS'. $KCODE is used
by default. (#133)
external CES ::= CES used in Ruby object of client and server
internal CES ::= CES used in SOAP/OM

* add iso-8859-1 external CES support. (#106)

* fixed illegal 'qualified' handling of elements. it caused
ASP.NET inteoperability problem. (#144)

* added 'soap.envelope.use_numeric_character_reference' (boolean)
option to let query XML use numeric character reference in XML,
not plain UTF-8 character. !GoogleSearch server seems to not
allow plain UTF-8 character since 2005-08-15 update. (#147)

* SOAP::Header::SimpleHeader (de)serialization throws an exception
on !SimpleHeader.on_(in|out)bound when header is a String. so we
could not use a simple single element headerItem. fixed. thanks
to emil. (#129)

* out parameter of rpc operation did not work. (#132)

* follow HTTP redirect only if using http-access2. (#125) (#145)

* add a workaround for importing an WSDL whose path begins with
drive letter. (#115)

* WSDL

* SOAP Data which is defined as a simpletype was not mapped
correctly to Ruby obj when using wsdl2ruby.rb generated classdef
file. (#123)

* rpc/literal support. (#118)

* re-implemented local element qualify/unqualify control. handles
elementFormDefault and form in WSDL. (#119)

* Array of an element which has simpleType causes a crash. (#128)

* prarmeterOrder may not contain return part so it can be shorter
than parts size. Thanks to Hugh. (#139)

* Samples

* added !BasicAuth client sample. (#117)

* added Base64 client/server sample.

* added Flickr SOAP interface client sample. (#122)

* added !SalesForce client sample. (#135)

* updated Thawte CA certificate for !GoogleAdWords sample.

* updated a client script with the newer version made by Johan.
thanks!

* shortened long file names. (#120)

* fixed typo in authheader sample. (#129)

* updated deprecated method usage. (#138)

Revision 9169
Added by nahi (Hiroshi Nakamura) almost 12 years ago

* lib/{soap,wsdl,xsd}, test/{soap,wsdl,xsd}: imported soap4r/1.5.5.

#nnn is a ticket number at http://dev.ctor.org/soap4r

* SOAP

* allow to configure an envelope namespace of SOAP request. (#124)
TemporaryNamespace = 'http://www.w3.org/2003/05/soap-envelope'
@client.options["soap.envelope.requestnamespace"] =
TemporaryNamespace
@client.options["soap.envelope.responsenamespace"] =
TemporaryNamespace
@client.do_proc(...)

* let SOAP request XML indent space configuable. see
"soap.envelope.no_indent" option. (#130)

* let external CES configuable.
ex. client["soap.mapping.external_ces"] = 'SJIS'. $KCODE is used
by default. (#133)
external CES ::= CES used in Ruby object of client and server
internal CES ::= CES used in SOAP/OM

* add iso-8859-1 external CES support. (#106)

* fixed illegal 'qualified' handling of elements. it caused
ASP.NET inteoperability problem. (#144)

* added 'soap.envelope.use_numeric_character_reference' (boolean)
option to let query XML use numeric character reference in XML,
not plain UTF-8 character. !GoogleSearch server seems to not
allow plain UTF-8 character since 2005-08-15 update. (#147)

* SOAP::Header::SimpleHeader (de)serialization throws an exception
on !SimpleHeader.on_(in|out)bound when header is a String. so we
could not use a simple single element headerItem. fixed. thanks
to emil. (#129)

* out parameter of rpc operation did not work. (#132)

* follow HTTP redirect only if using http-access2. (#125) (#145)

* add a workaround for importing an WSDL whose path begins with
drive letter. (#115)

* WSDL

* SOAP Data which is defined as a simpletype was not mapped
correctly to Ruby obj when using wsdl2ruby.rb generated classdef
file. (#123)

* rpc/literal support. (#118)

* re-implemented local element qualify/unqualify control. handles
elementFormDefault and form in WSDL. (#119)

* Array of an element which has simpleType causes a crash. (#128)

* prarmeterOrder may not contain return part so it can be shorter
than parts size. Thanks to Hugh. (#139)

* Samples

* added !BasicAuth client sample. (#117)

* added Base64 client/server sample.

* added Flickr SOAP interface client sample. (#122)

* added !SalesForce client sample. (#135)

* updated Thawte CA certificate for !GoogleAdWords sample.

* updated a client script with the newer version made by Johan.
thanks!

* shortened long file names. (#120)

* fixed typo in authheader sample. (#129)

* updated deprecated method usage. (#138)

Revision 9169
Added by nahi (Hiroshi Nakamura) almost 12 years ago

* lib/{soap,wsdl,xsd}, test/{soap,wsdl,xsd}: imported soap4r/1.5.5.

#nnn is a ticket number at http://dev.ctor.org/soap4r

* SOAP

* allow to configure an envelope namespace of SOAP request. (#124)
TemporaryNamespace = 'http://www.w3.org/2003/05/soap-envelope'
@client.options["soap.envelope.requestnamespace"] =
TemporaryNamespace
@client.options["soap.envelope.responsenamespace"] =
TemporaryNamespace
@client.do_proc(...)

* let SOAP request XML indent space configuable. see
"soap.envelope.no_indent" option. (#130)

* let external CES configuable.
ex. client["soap.mapping.external_ces"] = 'SJIS'. $KCODE is used
by default. (#133)
external CES ::= CES used in Ruby object of client and server
internal CES ::= CES used in SOAP/OM

* add iso-8859-1 external CES support. (#106)

* fixed illegal 'qualified' handling of elements. it caused
ASP.NET inteoperability problem. (#144)

* added 'soap.envelope.use_numeric_character_reference' (boolean)
option to let query XML use numeric character reference in XML,
not plain UTF-8 character. !GoogleSearch server seems to not
allow plain UTF-8 character since 2005-08-15 update. (#147)

* SOAP::Header::SimpleHeader (de)serialization throws an exception
on !SimpleHeader.on_(in|out)bound when header is a String. so we
could not use a simple single element headerItem. fixed. thanks
to emil. (#129)

* out parameter of rpc operation did not work. (#132)

* follow HTTP redirect only if using http-access2. (#125) (#145)

* add a workaround for importing an WSDL whose path begins with
drive letter. (#115)

* WSDL

* SOAP Data which is defined as a simpletype was not mapped
correctly to Ruby obj when using wsdl2ruby.rb generated classdef
file. (#123)

* rpc/literal support. (#118)

* re-implemented local element qualify/unqualify control. handles
elementFormDefault and form in WSDL. (#119)

* Array of an element which has simpleType causes a crash. (#128)

* prarmeterOrder may not contain return part so it can be shorter
than parts size. Thanks to Hugh. (#139)

* Samples

* added !BasicAuth client sample. (#117)

* added Base64 client/server sample.

* added Flickr SOAP interface client sample. (#122)

* added !SalesForce client sample. (#135)

* updated Thawte CA certificate for !GoogleAdWords sample.

* updated a client script with the newer version made by Johan.
thanks!

* shortened long file names. (#120)

* fixed typo in authheader sample. (#129)

* updated deprecated method usage. (#138)

History

#1 Updated by ko1 (Koichi Sasada) about 9 years ago

  • Assignee set to keiju (Keiju Ishitsuka)

=begin

=end

#2 Updated by mame (Yusuke Endoh) almost 9 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r18837.
=end

Also available in: Atom PDF