Runtime error after moving to 1.8.7

  • Thread starter Gerardo Santana Gómez Garrido
  • Start date
M

Michal Suchanek

Ruby/Informix works fine on Ruby 1.8.6, but after installing Ruby
1.8.7 and calling CursorBase#drop I get the following error message

wrong number of arguments (0 for 1) (ArgumentError)

CursorBase#drop is declared as
[http://github.com/santana/ruby-informix/tree/master/ext/informixc.ec:33= 32]

rb_define_method(rb_cCursorBase, "drop", rb_cursorbase_drop, 0);

You did not provide enough information (such as the failing method or
the full backtrace) for diagnosing the problem.

In general it is not unusual for code that works fine on 1.8.6 to fail
on 1.8.7 or the other way around as there are several incompatible
changes between these two versions.

You are probably using a stdlib method that has changed.

Thanks

Michal
 
G

Gerardo Santana Gómez Garrido

Ruby/Informix works fine on Ruby 1.8.6, but after installing Ruby
1.8.7 and calling CursorBase#drop I get the following error message

wrong number of arguments (0 for 1) (ArgumentError)

CursorBase#drop is declared as
[http://github.com/santana/ruby-informix/tree/master/ext/informixc.ec:3= 332]

rb_define_method(rb_cCursorBase, "drop", rb_cursorbase_drop, 0);

You did not provide enough information (such as the failing method


As mentioned above, CursorBase#drop is the failing method as in it's
the one that raises the unexpected exception when it's called.
CursorBase#drop is declared as recieving no arguments but it asks for
one anyways in Ruby 1.8.7. This is not the case in Ruby 1.8.6.

I'm providing also the declaration line

http://github.com/santana/ruby-informix/tree/master/ext/informixc.ec:3332

which says


rb_define_method(rb_cCursorBase, "drop", rb_cursorbase_drop, 0);


You see?, it's declared as receiving no arguments. It works as
advertised in Ruby 1.8.6. It doesn't in Ruby 1.8.7.


or
the full backtrace) for diagnosing the problem.

Let me work on that and mail you back.
In general it is not unusual for code that works fine on 1.8.6 to fail
on 1.8.7 or the other way around as there are several incompatible
changes between these two versions.

You are probably using a stdlib method that has changed.

Thanks

Michal

Thanks Michal for your attention. Actually I'm just using the
rb_define_method function to define a method as receiving no arguments
but it's asking for one anyways.


Thanks in advance for your help.
--=20
Gerardo Santana
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,969
Members
47,524
Latest member
ecomwebdesign

Latest Threads

Top