thoughtbot / cocaine

A small library for doing (command) lines.
https://robots.thoughtbot.com
Other
785 stars 55 forks source link

Cocaine gem giving error #45

Closed vikask closed 11 years ago

vikask commented 11 years ago

When i'm adding gem "cocaine", "0.3.2" and run this application.then getting this error.....

"/usr/local/lib/ruby/gems/1.9.1/gems/coffee-filter-0.1.1/lib/coffee-filter/coffeescript.rb:8:in <module:Coffeescript>': undefined methodlazy_require' for Coffee::Filter::Coffeescript:Module (NoMethodError) from /usr/local/lib/ruby/gems/1.9.1/gems/coffee-filter-0.1.1/lib/coffee-filter/coffeescript.rb:5:in <module:Filter>' from /usr/local/lib/ruby/gems/1.9.1/gems/coffee-filter-0.1.1/lib/coffee-filter/coffeescript.rb:4:inmodule:Coffee' from /usr/local/lib/ruby/gems/1.9.1/gems/coffee-filter-0.1.1/lib/coffee-filter/coffeescript.rb:3:in <top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:inrequire' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in block in require' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:inload_dependency' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in require' from /usr/local/lib/ruby/gems/1.9.1/gems/coffee-filter-0.1.1/lib/coffee-filter.rb:1:in<top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in require' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:inblock (2 levels) in require' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in each' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:inblock in require' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in each' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:inrequire' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler.rb:128:in require' from /home/pht-20/projects/my_family_histree/config/application.rb:13:in<top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.12/lib/rails/commands.rb:53:in require' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.12/lib/rails/commands.rb:53:inblock in <top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.12/lib/rails/commands.rb:50:in tap' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.12/lib/rails/commands.rb:50:in<top (required)>' from script/rails:6:in require' from script/rails:6:in

'

jyurek commented 11 years ago

I'm sorry, I don't quite understand the problem. The method lazy_require is not in the cocaine codebase, and this stacktrace actually deals with a library called coffee-filter (presumably this one: https://github.com/paulnicholson/coffee-filter). How does this apply to cocaine?

vikask commented 11 years ago

ok..thanks

vikask commented 11 years ago

i think this is caused by Haml(4.0). try using the older version of Haml by inserting this line into your gemfile. gem "haml", "< 4.0" and run "bundle update".

jyurek commented 11 years ago

Thanks for the update. Hopefully someone with the same problem will see this.

andrewmartin commented 11 years ago

I did! Thank you.