Gah, this shows up in the tests, too, but for some reason I neglected to run them when I checked it in. It's fixed in r707. Thanks for pointing it out.
- Nathan Xin wrote: > My problems are with revision 706 of haml/precompiler.rb > > Revision 705 of the same file is error free. > > > On Jan 2, 10:40 am, Xin <[EMAIL PROTECTED]> wrote: > >> I have just updated Haml, and now I am getting: >> >> ERROR: compiling _run_haml_47app47views47ports47index46html46haml >> RAISED no implicit conversion from nil to integer >> Backtrace: /Users/xin/apps/ports/vendor/plugins/haml/lib/haml/ >> precompiler.rb:647:in `[]' >> /Users/xin/apps/ports/vendor/plugins/haml/lib/haml/precompiler.rb: >> 647:in `count_soft_tabs' >> /Users/xin/apps/ports/vendor/plugins/haml/lib/haml/precompiler.rb: >> 127:in `precompile' >> /Users/xin/apps/ports/vendor/rails/activerecord/lib/active_record/ >> base.rb:1529:in `each_with_index' >> /Users/xin/apps/ports/vendor/plugins/haml/lib/haml/precompiler.rb: >> 125:in `each' >> /Users/xin/apps/ports/vendor/plugins/haml/lib/haml/precompiler.rb: >> 125:in `each_with_index' >> /Users/xin/apps/ports/vendor/plugins/haml/lib/haml/precompiler.rb: >> 125:in `precompile' >> /Users/xin/apps/ports/vendor/plugins/haml/lib/haml/engine.rb:71:in >> `initialize' >> /Users/xin/apps/ports/vendor/plugins/haml/lib/haml/template/patch.rb: >> 38:in `new' >> /Users/xin/apps/ports/vendor/plugins/haml/lib/haml/template/patch.rb: >> 38:in `compile_haml' >> /Users/xin/apps/ports/vendor/plugins/haml/lib/haml/template/patch.rb: >> 20:in `compile_template' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_view/base.rb: >> 383:in `compile_and_render_template' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_view/base.rb: >> 366:in `render_template' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_view/base.rb: >> 316:in `render_file' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> base.rb:1110:in `render_for_file' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> base.rb:836:in `render_with_no_layout' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> layout.rb:261:in `render_without_benchmark' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> benchmarking.rb:51:in `render' >> /sw/lib/ruby/1.8/benchmark.rb:293:in `measure' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> benchmarking.rb:51:in `render' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> base.rb:1163:in `default_render' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> base.rb:1169:in `perform_action_without_filters' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> filters.rb:697:in `call_filters' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> filters.rb:689:in `perform_action_without_benchmark' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> benchmarking.rb:68:in `perform_action_without_rescue' >> /sw/lib/ruby/1.8/benchmark.rb:293:in `measure' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> benchmarking.rb:68:in `perform_action_without_rescue' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> rescue.rb:199:in `perform_action_without_caching' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> caching.rb:678:in `perform_action' >> /Users/xin/apps/ports/vendor/rails/activerecord/lib/active_record/ >> connection_adapters/abstract/query_cache.rb:33:in `cache' >> /Users/xin/apps/ports/vendor/rails/activerecord/lib/active_record/ >> query_cache.rb:8:in `cache' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> caching.rb:677:in `perform_action' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> base.rb:524:in `send' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> base.rb:524:in `process_without_filters' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> filters.rb:685:in `process_without_session_management_support' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> session_management.rb:123:in `sass_old_process' >> /Users/xin/apps/ports/vendor/plugins/haml/lib/sass/plugin/rails.rb: >> 14:in `process' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> base.rb:388:in `process' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> dispatcher.rb:171:in `handle_request' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> dispatcher.rb:115:in `dispatch' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> dispatcher.rb:126:in `dispatch_cgi' >> /Users/xin/apps/ports/vendor/rails/actionpack/lib/action_controller/ >> dispatcher.rb:9:in `dispatch' >> /Users/xin/apps/ports/vendor/rails/railties/lib/webrick_server.rb: >> 112:in `handle_dispatch' >> /Users/xin/apps/ports/vendor/rails/railties/lib/webrick_server.rb: >> 78:in `service' >> /sw/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' >> /sw/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' >> /sw/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' >> /sw/lib/ruby/1.8/webrick/server.rb:162:in `start' >> /sw/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' >> /sw/lib/ruby/1.8/webrick/server.rb:95:in `start' >> /sw/lib/ruby/1.8/webrick/server.rb:92:in `each' >> /sw/lib/ruby/1.8/webrick/server.rb:92:in `start' >> /sw/lib/ruby/1.8/webrick/server.rb:23:in `start' >> /sw/lib/ruby/1.8/webrick/server.rb:82:in `start' >> /Users/xin/apps/ports/vendor/rails/railties/lib/webrick_server.rb: >> 62:in `dispatch' >> /Users/xin/apps/ports/vendor/rails/railties/lib/commands/servers/ >> webrick.rb:66 >> /sw/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `gem_original_require' >> /sw/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' >> /Users/xin/apps/ports/vendor/rails/activesupport/lib/active_support/ >> dependencies.rb:496:in `require' >> /Users/xin/apps/ports/vendor/rails/activesupport/lib/active_support/ >> dependencies.rb:342:in `new_constants_in' >> /Users/xin/apps/ports/vendor/rails/activesupport/lib/active_support/ >> dependencies.rb:496:in `require' >> /Users/xin/apps/ports/vendor/rails/railties/lib/commands/server.rb:39 >> ./script/server:3:in `require' >> ./script/server:3 >> >> Thanks >> >> Xin >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
