codegram/pelusa — Issue #2: Error running pelusa
Author: charley
Created: 2012-02-14 20:07:38+00:00
State: open

I'm getting this error trying to run pelusa in a directory with ruby files, I've tried on multiple machines all with the same result, using rbx-head fresh install, also tried running against a single ruby file.

A syntax error has occurred:
odd number list for Hash
near line /Users/pairing/.rvm/gems/rbx-head@metrics/gems/pelusa-0.0.1/lib/pelusa/reporters/ruby_reporter.rb:22, column 17

Code:
status: analysis.status,
^

Backtrace:
Rubinius::Melbourne#syntax_error at /Users/pairing/.rvm/rubies/rbx-head
/runtime/18/melbourne.rbc:68
Rubinius::Melbourne#parse_file at /Users/pairing/.rvm/rubies/rbx-head
/runtime/18/melbourne.rbc:84
Rubinius::Compiler::FileParser#parse at /Users/pairing/.rvm/rubies/rbx-head
/runtime/18/compiler/stages.rbc:235
Rubinius::Compiler::Parser(Rubinius::Compiler::FileParser)#run at \
/Users/pairing/.rvm/rubies/rbx-head/runtime/18/compiler/stages.rbc:217
Rubinius::Compiler#run at /Users/pairing/.rvm/rubies/rbx-head
/runtime/18/compiler/compiler.rbc:370
Rubinius::Compiler.compile at /Users/pairing/.rvm/rubies/rbx-head
/runtime/18/compiler/compiler.rbc:84
Rubinius::CodeLoader#compile_file at kernel/delta/codeloader.rb:166
Rubinius::CodeLoader#load_file at kernel/delta/codeloader.rb:147
Rubinius::CodeLoader#require at kernel/common/codeloader.rb:124
Rubinius::CodeLoader.require at kernel/common/codeloader.rb:201
Kernel(Object)#gem_original_require (require) at kernel/common/kernel.rb:639
Kernel(Object)#require at /Users/pairing/.rvm/rubies/rbx-head/lib
/rubygems/custom_require.rb:36
Object#__script__ at /Users/pairing/.rvm/gems
/rbx-head@metrics/gems/pelusa-0.0.1/bin
/../lib/pelusa.rb:22
Rubinius::CodeLoader.require at kernel/common/codeloader.rb:207
Kernel(Object)#gem_original_require (require) at kernel/common/kernel.rb:639
Kernel(Object)#require at /Users/pairing/.rvm/rubies/rbx-head/lib
/rubygems/custom_require.rb:36
Object#__script__ at /Users/pairing/.rvm/gems
/rbx-head@metrics/gems/pelusa-0.0.1/bin
/pelusa:4
Kernel(Object)#load at kernel/common/kernel.rb:588
Object#__script__ at /Users/pairing/.rvm/gems
/rbx-head@metrics/bin/pelusa:19
Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:67
Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:109
Rubinius::Loader#script at kernel/loader.rb:630
Rubinius::Loader#main at kernel/loader.rb:834