#278 √ resolved
Le Huy

[BUG] yaml uses Symbol#to_i

Reported by Le Huy | January 25th, 2008 @ 10:07 PM | in 1.0 preview

irb(main):001:0> require 'yaml'
NoMethodError: No method 'to_i' on an instance of Symbol.
   from Kernel(Symbol)#to_i (method_missing_cv) at kernel/core/kernel.rb:549
   from Date.once {} at /u01/rubinius/code/lib/date.rb:1106
   from Array#each at kernel/core/array.rb:557
   from Date.once at /u01/rubinius/code/lib/date.rb:1105
   from Date.__class_init__ (Date) at /u01/rubinius/code/lib/date.rb:1150
   from main.__script__ at /u01/rubinius/code/lib/date.rb:230
   from CompiledMethod#as_script at kernel/core/compiled_method.rb:206
   from Compile.single_load at kernel/core/compile.rb:219
   from Compile.unified_load {} at kernel/core/compile.rb:132
   from Array#each at kernel/core/array.rb:557
   from Compile.unified_load at kernel/core/compile.rb:113
   from Kernel(Object)#require at kernel/core/compile.rb:423
   from main.__script__ at /u01/rubinius/code/lib/rbyaml/representer.rb:2
   from CompiledMethod#as_script at kernel/core/compiled_method.rb:206
   from Compile.single_load at kernel/core/compile.rb:214
   from Compile.unified_load {} at kernel/core/compile.rb:132
   from Array#each at kernel/core/array.rb:557
   from Compile.unified_load at kernel/core/compile.rb:113
   from Kernel(Object)#require at kernel/core/compile.rb:423
   from main.__script__ at /u01/rubinius/code/lib/rbyaml/constants.rb:3
   from CompiledMethod#as_script at kernel/core/compiled_method.rb:206
   from Compile.single_load at kernel/core/compile.rb:214
   from Compile.unified_load {} at kernel/core/compile.rb:132
   from Array#each at kernel/core/array.rb:557
   from Compile.unified_load at kernel/core/compile.rb:113
   from Kernel(Object)#require at kernel/core/compile.rb:423
   from main.__script__ at /u01/rubinius/code/lib/rbyaml/scanner.rb:29
   from CompiledMethod#as_script at kernel/core/compiled_method.rb:206
   from Compile.single_load at kernel/core/compile.rb:214
   from Compile.unified_load {} at kernel/core/compile.rb:132
   from Array#each at kernel/core/array.rb:557
   from Compile.unified_load at kernel/core/compile.rb:113
   from Kernel(Object)#require at kernel/core/compile.rb:423
   from main.__script__ at /u01/rubinius/code/lib/rbyaml/loader.rb:3
   from CompiledMethod#as_script at kernel/core/compiled_method.rb:206
   from Compile.single_load at kernel/core/compile.rb:214
   from Compile.unified_load {} at kernel/core/compile.rb:132
   from Array#each at kernel/core/array.rb:557
   from Compile.unified_load at kernel/core/compile.rb:113
   from Kernel(Object)#require at kernel/core/compile.rb:423
   from main.__script__ at /u01/rubinius/code/lib/rbyaml/yaml.rb:9
   from CompiledMethod#as_script at kernel/core/compiled_method.rb:206
   from Compile.single_load at kernel/core/compile.rb:214
   from Compile.unified_load {} at kernel/core/compile.rb:132
   from Array#each at kernel/core/array.rb:557
   from Compile.unified_load at kernel/core/compile.rb:113
   from Kernel(Object)#require at kernel/core/compile.rb:423
   from main.__script__ at /u01/rubinius/code/lib/rbyaml.rb:21
   from CompiledMethod#as_script at kernel/core/compiled_method.rb:206
   from Compile.single_load at kernel/core/compile.rb:214
   from Compile.unified_load {} at kernel/core/compile.rb:132
   from Array#each at kernel/core/array.rb:557
   from Compile.unified_load at kernel/core/compile.rb:113
   from Kernel(Object)#require at kernel/core/compile.rb:423
   from main.__script__ at /u01/rubinius/code/lib/yaml.rb:1
   from CompiledMethod#as_script at kernel/core/compiled_method.rb:206
   from Compile.single_load at kernel/core/compile.rb:214
   from Compile.unified_load {} at kernel/core/compile.rb:132
   from Array#each at kernel/core/array.rb:557
   from Compile.unified_load at kernel/core/compile.rb:113
   from Kernel(Object)#require at kernel/core/compile.rb:423
   from Object#irb_binding {} at (irb):1

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Tags