Error: undefined method `sexp_type' for class `Sexp'
jscruggs opened this issue · 4 comments
When I try to run churn 0.0.4 with ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] I get this stack trace:
F, [2010-01-12T20:14:02.861020 #6029] FATAL -- : undefined method sexp_type' for class
Sexp' (NameError)
/Library/Ruby/Gems/1.8/gems/ruby_parser-2.0.4/lib/ruby_parser_extras.rb:1025
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
require'
/Library/Ruby/Gems/1.8/gems/ruby_parser-2.0.4/lib/ruby_parser.rb:12
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in
require'
/Library/Ruby/Gems/1.8/gems/churn-0.0.4/bin/../lib/churn/churn_calculator.rb:3
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
require'
/Library/Ruby/Gems/1.8/gems/churn-0.0.4/bin/churn:18:in report_churn' /Library/Ruby/Gems/1.8/gems/churn-0.0.4/bin/churn:27:in
run!'
/Library/Ruby/Gems/1.8/gems/main-4.2.0/lib/main/program/class_methods.rb:147:in run' /Library/Ruby/Gems/1.8/gems/main-4.2.0/lib/main/program/class_methods.rb:136:in
catch'
/Library/Ruby/Gems/1.8/gems/main-4.2.0/lib/main/program/class_methods.rb:136:in run' /Library/Ruby/Gems/1.8/gems/main-4.2.0/lib/main/factories.rb:18:in
run'
/Library/Ruby/Gems/1.8/gems/main-4.2.0/lib/main/factories.rb:25:in Main' /Library/Ruby/Gems/1.8/gems/churn-0.0.4/bin/churn:5 /usr/bin/churn:19:in
load'
/usr/bin/churn:19
Thanks for filing this... I added some missing gem dependencies to my file in case any of the gems needed where out of date.
I think that might have been a problem I had when I was on an older version (3.0.0) of sexp_processor, I am currently on 3.0.3 which I added as a dependency. Can you try again and let me know the version of that gem that you have?
Thanks
Oh in case it wasn't clear their is a new gem that was pushed 0.0.5
Got version 0.0.5 of churn and now it works like a charm in ruby 1.8.7
Thanks
Great closing this issue