eladmeidar / rails_indexes

A rake task to track down missing database indexes. does not assume that all foreign keys end with the convention of _id.
http://blog.eizesus.com/2009/9/find-where-to-index-your-tables-on-a-rails-app/
MIT License
489 stars 35 forks source link

Error when running with rvm and ruby 1.9.2-p136 #20

Open kayluhb opened 13 years ago

kayluhb commented 13 years ago

I get the following error when I try to run metrical with rails 3.

/home/user/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/racc/parser.rb:349:in `on_error':  (Racc::ParseError)
parse error on value "." (tDOT)

from /home/user/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/racc/parser.rb:99:in `_racc_do_parse_c'
from /home/user/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/racc/parser.rb:99:in `do_parse'
from /home/user/.rvm/gems/ruby-1.9.2-p136@global/gems/ruby_parser-2.0.5/lib/ruby_parser_extras.rb:749:in `process'
from /home/user/.rvm/gems/ruby-1.9.2-p136@global/gems/flog-2.5.0/lib/flog.rb:241:in `block in flog'
from /home/user/.rvm/gems/ruby-1.9.2-p136@global/gems/flog-2.5.0/lib/flog.rb:235:in `each'
from /home/user/.rvm/gems/ruby-1.9.2-p136@global/gems/flog-2.5.0/lib/flog.rb:235:in `flog'
from /home/user/.rvm/gems/ruby-1.9.2-p136@global/gems/metric_fu-2.0.1/lib/generators/flog.rb:20:in `emit'
from /home/user/.rvm/gems/ruby-1.9.2-p136@global/gems/metric_fu-2.0.1/lib/base/generator.rb:126:in `block in generate_report'
from /home/user/.rvm/gems/ruby-1.9.2-p136@global/gems/metric_fu-2.0.1/lib/base/generator.rb:124:in `each'
from /home/user/.rvm/gems/ruby-1.9.2-p136@global/gems/metric_fu-2.0.1/lib/base/generator.rb:124:in `generate_report'
from /home/user/.rvm/gems/ruby-1.9.2-p136@global/gems/metric_fu-2.0.1/lib/base/generator.rb:52:in `generate_report'
from /home/user/.rvm/gems/ruby-1.9.2-p136@global/gems/metric_fu-2.0.1/lib/base/report.rb:54:in `add'
from /home/user/.rvm/gems/ruby-1.9.2-p136@global/gems/metrical-0.0.4/bin/metrical:34:in `block in <top (required)>'
from /home/user/.rvm/gems/ruby-1.9.2-p136@global/gems/metrical-0.0.4/bin/metrical:34:in `each'
from /home/user/.rvm/gems/ruby-1.9.2-p136@global/gems/metrical-0.0.4/bin/metrical:34:in `<top (required)>'
from /home/user/.rvm/gems/ruby-1.9.2-p136@global/bin/metrical:19:in `load'
from /home/user/.rvm/gems/ruby-1.9.2-p136@global/bin/metrical:19:in `<main>'