louismullie / treat

Natural language processing framework for Ruby.
Other
1.37k stars 128 forks source link

debug method overiding debug method in rails #11

Closed romeo4934 closed 12 years ago

romeo4934 commented 12 years ago

Hi Louis Another little bug, when I want to use treat with rails, I have an error method when I load stylesheet_link_tag

<%= stylesheet_link_tag "application", :media => "all" %> <%= javascript_include_tag "application" %>

I have this trace : The debug method of treat is overiding the debug method in rails I think .

wrong number of arguments (0 for 1) Extracted source (around line #11):

8: 9:
10: 11: <%= stylesheet_link_tag "application", :media => "all" %> 12: <%= javascript_include_tag "application" %> 13: 14:

Application Trace | Framework Trace | Full Trace treat (1.0.4) lib/treat/kernel.rb:184:in debug' actionpack (3.2.3) lib/sprockets/helpers/rails_helper.rb:83:indebug_assets?' actionpack (3.2.3) lib/sprockets/helpers/rails_helper.rb:39:in stylesheet_link_tag' actionpack (3.2.3) lib/action_view/template.rb:143:inblock in render' activesupport (3.2.3) lib/active_support/notifications.rb:125:in instrument' actionpack (3.2.3) lib/action_view/template.rb:141:inrender' actionpack (3.2.3) lib/action_view/renderer/template_renderer.rb:59:in render_with_layout' actionpack (3.2.3) lib/action_view/renderer/template_renderer.rb:45:inrender_template' actionpack (3.2.3) lib/action_view/renderer/template_renderer.rb:18:in render' actionpack (3.2.3) lib/action_view/renderer/renderer.rb:36:inrender_template' haml (3.1.5) lib/haml/helpers/rails_323_textarea_fix.rb:26:in render_template_with_haml' actionpack (3.2.3) lib/action_view/renderer/renderer.rb:17:inrender' actionpack (3.2.3) lib/abstract_controller/rendering.rb:110:in _render_template' actionpack (3.2.3) lib/action_controller/metal/streaming.rb:225:in_render_template' actionpack (3.2.3) lib/abstract_controller/rendering.rb:103:in render_to_body' haml (3.1.5) lib/haml/helpers/rails_323_textarea_fix.rb:14:inrender_to_body_with_haml' actionpack (3.2.3) lib/action_controller/metal/renderers.rb:28:in render_to_body' actionpack (3.2.3) lib/action_controller/metal/compatibility.rb:50:inrender_to_body' actionpack (3.2.3) lib/abstract_controller/rendering.rb:88:in render' actionpack (3.2.3) lib/action_controller/metal/rendering.rb:16:inrender' actionpack (3.2.3) lib/action_controller/metal/instrumentation.rb:40:in block (2 levels) in render' activesupport (3.2.3) lib/active_support/core_ext/benchmark.rb:5:inblock in ms' /Users/ztera/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in realtime' activesupport (3.2.3) lib/active_support/core_ext/benchmark.rb:5:inms' actionpack (3.2.3) lib/action_controller/metal/instrumentation.rb:40:in block in render' actionpack (3.2.3) lib/action_controller/metal/instrumentation.rb:83:incleanup_view_runtime' actionpack (3.2.3) lib/action_controller/metal/instrumentation.rb:39:in render' remotipart (1.0.2) lib/remotipart/render_overrides.rb:8:inrender' actionpack (3.2.3) lib/action_controller/metal/implicit_render.rb:10:in default_render' actionpack (3.2.3) lib/action_controller/metal/implicit_render.rb:5:insend_action' actionpack (3.2.3) lib/abstract_controller/base.rb:167:in process_action' actionpack (3.2.3) lib/action_controller/metal/rendering.rb:10:inprocess_action' actionpack (3.2.3) lib/abstract_controller/callbacks.rb:18:in block in process_action' activesupport (3.2.3) lib/active_support/callbacks.rb:425:in_run563304916674385327process_action276644419250049832callbacks' activesupport (3.2.3) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.3) lib/active_support/callbacks.rb:385:in_run_process_action_callbacks' activesupport (3.2.3) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.3) lib/abstract_controller/callbacks.rb:17:inprocess_action' actionpack (3.2.3) lib/action_controller/metal/rescue.rb:29:in process_action' actionpack (3.2.3) lib/action_controller/metal/instrumentation.rb:30:inblock in process_action' activesupport (3.2.3) lib/active_support/notifications.rb:123:in block in instrument' activesupport (3.2.3) lib/active_support/notifications/instrumenter.rb:20:ininstrument' activesupport (3.2.3) lib/active_support/notifications.rb:123:in instrument' actionpack (3.2.3) lib/action_controller/metal/instrumentation.rb:29:inprocess_action' actionpack (3.2.3) lib/action_controller/metal/params_wrapper.rb:205:in process_action' actionpack (3.2.3) lib/abstract_controller/base.rb:121:inprocess' actionpack (3.2.3) lib/abstract_controller/rendering.rb:45:in process' actionpack (3.2.3) lib/action_controller/metal.rb:203:indispatch' actionpack (3.2.3) lib/action_controller/metal/rack_delegation.rb:14:in dispatch' actionpack (3.2.3) lib/action_controller/metal.rb:246:inblock in action' actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:73:in call' actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:73:indispatch' actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:36:in call' journey (1.0.3) lib/journey/router.rb:68:inblock in call' journey (1.0.3) lib/journey/router.rb:56:in each' journey (1.0.3) lib/journey/router.rb:56:incall' actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:600:in call' rack-pjax (0.5.9) lib/rack/pjax.rb:12:incall' mongoid (2.4.10) lib/rack/mongoid/middleware/identity_map.rb:33:in block in call' mongoid (2.4.10) lib/mongoid.rb:133:inunit_of_work' mongoid (2.4.10) lib/rack/mongoid/middleware/identity_map.rb:33:in call' sass (3.1.18) lib/sass/plugin/rack.rb:54:incall' warden (1.1.1) lib/warden/manager.rb:35:in block in call' warden (1.1.1) lib/warden/manager.rb:34:incatch' warden (1.1.1) lib/warden/manager.rb:34:in call' actionpack (3.2.3) lib/action_dispatch/middleware/best_standards_support.rb:17:incall

louismullie commented 12 years ago

2aa9794b5cb6959dabedad95ef46ce89381c6d1a 941490362ca30f263f54b3c2551752fd05b4fac8

fabiormoura commented 11 years ago

I'm also having this issue with Rails 3.2.13.rc2 + ruby 2.0.0

louismullie commented 11 years ago

Can you upgrade to the latest version of Treat? We're no longer using this debug method.