[Ironruby-core] Strange type error

Seo Sanghyeon sanxiyn at gmail.com
Wed May 13 02:45:34 EDT 2009


Any idea what's going on in the following?

$ gem install chronic

$ cat test.rb
require 'rubygems'
require 'chronic'
puts Chronic.parse('3pm')

$ mono ir.exe test.rb
/var/lib/gems/1.8/gems/chronic-0.2.3/lib/chronic/repeaters/repeater_time.rb:68:in
`next': can't convert IronRuby::Builtins::RubyObject into Float
(TypeError)
from /var/lib/gems/1.8/gems/chronic-0.2.3/lib/chronic/repeaters/repeater_time.rb:67:in
`next'
from :0:in `catch'
from mscorlib:0:in `CallSite.Target'
from Microsoft.Scripting.Core:0:in
`invoke_object__this___CallSite_RubyScope_object_Proc_SymbolId'
from /var/lib/gems/1.8/gems/chronic-0.2.3/lib/chronic/repeaters/repeater_time.rb:107:in
`this'
from /var/lib/gems/1.8/gems/chronic-0.2.3/lib/chronic/handlers.rb:348:in
`find_within'
from mscorlib:0:in `CallSite.Target'
from Microsoft.Scripting.Core:0:in
`invoke_object__this___CallSite_RubyScope_object_SymbolId'
from /var/lib/gems/1.8/gems/chronic-0.2.3/lib/chronic/handlers.rb:326:in
`get_anchor'
from /var/lib/gems/1.8/gems/chronic-0.2.3/lib/chronic/handlers.rb:219:in
`handle_r'
from /var/lib/gems/1.8/gems/chronic-0.2.3/lib/chronic/handlers.rb:16707566:in
`tokens_to_span'
from :0:in `__send__'
from mscorlib:0:in `CallSite.Target'
from /var/lib/gems/1.8/gems/chronic-0.2.3/lib/chronic/handlers.rb:50:in
`tokens_to_span'
from :0:in `each'
from mscorlib:0:in `CallSite.Target'
from /var/lib/gems/1.8/gems/chronic-0.2.3/lib/chronic/chronic.rb:84:in `parse'
from test.rb:3
from mscorlib:0:in `CallSite.Target'

-- 
Seo Sanghyeon


More information about the Ironruby-core mailing list