codegram/pelusa — Issue #11: Unable to run pelusa with rbx 2.0.0dev
Author: dqminh
Created: 2012-02-16 05:07:20+00:00
State: open

My rbx version is `rubinius 2.0.0dev (1.9.3 01942925 yyyy-mm-dd JI) [x86_64-apple-darwin11.3.0]`

When i tried to use pelusa with our current codebase, it returns back

```
An exception occurred running /Users/viki/.rvm/gems/rbx-head/bin/pelusa
undefined method `line' on an instance of Array. (NoMethodError)

Backtrace:
Kernel(Array)#line (method_missing) at kernel/delta/kernel.rb:81
{ } in Pelusa::Lint::IndentationLevel#iterate_lines! at /Users/viki/.rvm/gems
/rbx-head/gems
/pelusa-0.0.2/lib
/pelusa/lint
/indentation_level.rb:32
{ } in Pelusa::Iterator.Iterator at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/iterator.rb:4
{ } in Pelusa::Iterator#initialize at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/iterator.rb:21
Array#each at kernel/bootstrap/array.rb:68
{ } in Pelusa::Lint::IndentationLevel#iterate_lines! at /Users/viki/.rvm/gems
/rbx-head/gems
/pelusa-0.0.2/lib
/pelusa/lint
/indentation_level.rb:37
{ } in Pelusa::Iterator.Iterator at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/iterator.rb:4
{ } in Pelusa::Iterator.Iterator at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/iterator.rb:13
Array#each at kernel/bootstrap/array.rb:68
{ } in Pelusa::Iterator.Iterator at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/iterator.rb:13
{ } in Pelusa::Iterator#initialize at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/iterator.rb:21
Array#each at kernel/bootstrap/array.rb:68
{ } in Pelusa::Lint::IndentationLevel#iterate_lines! at /Users/viki/.rvm/gems
/rbx-head/gems
/pelusa-0.0.2/lib
/pelusa/lint
/indentation_level.rb:39
{ } in Pelusa::Iterator.Iterator at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/iterator.rb:4
Class#Iterator at /Users/viki/.rvm/gems
/rbx-head/gems/pelusa-0.0.2
/lib/pelusa/iterator.rb:7
Array#each at kernel/bootstrap/array.rb:69
{ } in Pelusa::Iterator.Iterator at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/iterator.rb:6
{ } in Pelusa::Iterator.Iterator at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/iterator.rb:13
Array#each at kernel/bootstrap/array.rb:68
{ } in Pelusa::Iterator.Iterator at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/iterator.rb:13
{ } in Pelusa::Iterator.Iterator at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/iterator.rb:13
Array#each at kernel/bootstrap/array.rb:68
{ } in Pelusa::Iterator.Iterator at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/iterator.rb:13
{ } in Pelusa::Iterator.Iterator at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/iterator.rb:13
Array#each at kernel/bootstrap/array.rb:68
{ } in Pelusa::Iterator.Iterator at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/iterator.rb:13
{ } in Pelusa::Iterator#initialize at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/iterator.rb:21
Array#each at kernel/bootstrap/array.rb:68
Pelusa::Lint::IndentationLevel#iterate_lines! at /Users/viki/.rvm/gems/rbx-head
/gems/pelusa-0.0.2/lib/pelusa
/lint/indentation_level.rb:43
Pelusa::Lint::IndentationLevel#check at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/lint
/indentation_level.rb:10
{ } in Pelusa::ClassAnalyzer#analyze at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa
/class_analyzer.rb:25
Array#map at kernel/bootstrap/array19.rb:18
Pelusa::ClassAnalyzer#analyze at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa
/class_analyzer.rb:23
{ } in Pelusa::Analyzer#analyze at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/analyzer.rb:22
Array#map at kernel/bootstrap/array19.rb:18
Pelusa::Analyzer#analyze at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/analyzer.rb:19
Pelusa::Runner#run_file at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/runner.rb:37
{ } in Pelusa::Runner#run at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/runner.rb:18
Array#map at kernel/bootstrap/array19.rb:18
Pelusa::Runner#run at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/runner.rb:17
Pelusa.run at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa.rb:7
Pelusa::Cli#run at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/lib/pelusa/cli.rb:17
Object#__script__ at /Users/viki/.rvm/gems/rbx-head/gems
/pelusa-0.0.2/bin/pelusa:13
Kernel(Object)#load at kernel/common/kernel.rb:588
Object#__script__ at /Users/viki/.rvm/gems/rbx-head/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
```