Found it!  (I work with the OP)

For the benefit of anyone else running into this, the offending
construction was

- form_tag 'foo' do
  = content
- end if some_condition

Replaced with:

- if some_condition
  - format_tag 'foo' do
    = content

and now all is well.  I ended up patching raw_next_line to print each
line to stdout as it was processed in order to find the offending
template; there might be a better way to do that, but since that only
took two minutes to do and it worked, I didn't spend any more time on
it.




On Aug 24, 9:41 pm, Nathan Weizenbaum <[email protected]> wrote:
> What's the template that's causing this?
>
>
>
> On Mon, Aug 24, 2009 at 9:18 AM, ebeard <[email protected]> wrote:
>
> > Just upgraded to haml 2.2.2 and got the error when running rake test:
>
> > /usr/local/lib/ruby/gems/1.8/gems/haml-2.2.2/lib/haml/precompiler.rb:
> > 385:in `close_element': wrong number of arguments (3 for 1)
> > (ArgumentError)
> >        from /usr/local/lib/ruby/gems/1.8/gems/haml-2.2.2/lib/haml/
> > precompiler.rb:385:in `send'
> >        from /usr/local/lib/ruby/gems/1.8/gems/haml-2.2.2/lib/haml/
> > precompiler.rb:385:in `close'
> >        from /usr/local/lib/ruby/gems/1.8/gems/haml-2.2.2/lib/haml/
> > precompiler.rb:189:in `process_indent'
> >        from /usr/local/lib/ruby/gems/1.8/gems/haml-2.2.2/lib/haml/
> > precompiler.rb:189:in `times'
> >        from /usr/local/lib/ruby/gems/1.8/gems/haml-2.2.2/lib/haml/
> > precompiler.rb:189:in `process_indent'
> >        from /usr/local/lib/ruby/gems/1.8/gems/haml-2.2.2/lib/haml/
> > precompiler.rb:159:in `precompile'
> >        from /usr/local/lib/ruby/gems/1.8/gems/haml-2.2.2/lib/haml/
> > engine.rb:112:in `initialize'
> >        from /usr/local/lib/ruby/gems/1.8/gems/haml-2.2.2/lib/haml/
> > template/plugin.rb:21:in `new'
> >         ... 27 levels...
> >        from /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/
> > rake_test_loader.rb:5:in `load'
> >        from /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/
> > rake_test_loader.rb:5
> >        from /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/
> > rake_test_loader.rb:5:in `each'
> >        from /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/
> > rake_test_loader.rb:5
> > rake aborted!
>
> > I removed the vendor/plugins/haml directory and all seems well.
>
> > Is this normal?

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to