Hi Chris,
Forgive my n00bishness, but I don't fully understand what you mean by
"a failing test case that we can run." I'll take a stab at providing
as much information as possible. If you can give me further
instructions or point me to TFM, I'll read it and try again. :-)
I have the following two lines saved in a file called foo.haml:
:sass
#foo
I then call the following command from the Windows XP (SP2) command
prompt:
haml foo.haml
And I get the error:
Exception on line 218: uninitialized constant Sass::Plugin
I'm using:
Ruby 1.8.6
Gem 1.2.0
Local Gems:
actionmailer (2.1.1, 1.3.3)
actionpack (2.1.1, 1.13.3)
actionwebservice (1.2.3)
activerecord (2.1.1, 1.15.3)
activeresource (2.1.1)
activesupport (2.1.1, 1.4.2)
cgi_multipart_eof_fix (2.5.0)
fxri (0.3.6)
fxruby (1.6.6)
gem_plugin (0.2.3)
haml (2.0.3)
hpricot (0.4)
log4r (1.0.5)
mongrel (1.1.5)
rails (2.1.1, 1.2.3)
rake (0.8.2, 0.7.2)
rubygems-update (1.2.0)
sources (0.0.1)
win32-clipboard (0.4.1)
win32-dir (0.3.1)
win32-eventlog (0.4.3)
win32-file (0.5.3)
win32-file-stat (1.2.3)
win32-process (0.5.1)
win32-sapi (0.1.3)
win32-sound (0.4.0)
windows-pr (0.6.2)
Here is the full output from: haml --trace foo.haml
NameError on line 218: uninitialized constant Sass::Plugin
e:/ruby/lib/ruby/gems/1.8/gems/haml-2.0.3/bin/../lib/haml/filters.rb:
51:in `render_with_options'
e:/ruby/lib/ruby/gems/1.8/gems/haml-2.0.3/bin/../lib/haml/filters.rb:
83:in `compile'
e:/ruby/lib/ruby/gems/1.8/gems/haml-2.0.3/bin/../lib/haml/filters.rb:
73:in `instance_eval'
e:/ruby/lib/ruby/gems/1.8/gems/haml-2.0.3/bin/../lib/haml/filters.rb:
73:in `compile'
e:/ruby/lib/ruby/gems/1.8/gems/haml-2.0.3/bin/../lib/haml/filters.rb:
56:in `internal_compile'
e:/ruby/lib/ruby/gems/1.8/gems/haml-2.0.3/bin/../lib/haml/
precompiler.rb:413:in `close_filtered'
e:/ruby/lib/ruby/gems/1.8/gems/haml-2.0.3/bin/../lib/haml/
precompiler.rb:372:in `close'
e:/ruby/lib/ruby/gems/1.8/gems/haml-2.0.3/bin/../lib/haml/
precompiler.rb:175:in `process_indent'
e:/ruby/lib/ruby/gems/1.8/gems/haml-2.0.3/bin/../lib/haml/
precompiler.rb:175:in `times'
e:/ruby/lib/ruby/gems/1.8/gems/haml-2.0.3/bin/../lib/haml/
precompiler.rb:175:in `process_indent'
e:/ruby/lib/ruby/gems/1.8/gems/haml-2.0.3/bin/../lib/haml/
precompiler.rb:131:in `precompile'
e:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`each_with_index'
e:/ruby/lib/ruby/gems/1.8/gems/haml-2.0.3/bin/../lib/haml/
precompiler.rb:118:in `each'
e:/ruby/lib/ruby/gems/1.8/gems/haml-2.0.3/bin/../lib/haml/
precompiler.rb:118:in `each_with_index'
e:/ruby/lib/ruby/gems/1.8/gems/haml-2.0.3/bin/../lib/haml/
precompiler.rb:118:in `precompile'
e:/ruby/lib/ruby/gems/1.8/gems/haml-2.0.3/bin/../lib/haml/engine.rb:
100:in `initialize'
e:/ruby/lib/ruby/gems/1.8/gems/haml-2.0.3/bin/../lib/haml/exec.rb:
253:in `new'
e:/ruby/lib/ruby/gems/1.8/gems/haml-2.0.3/bin/../lib/haml/exec.rb:
253:in `process_result'
e:/ruby/lib/ruby/gems/1.8/gems/haml-2.0.3/bin/../lib/haml/exec.rb:
23:in `parse!'
e:/ruby/lib/ruby/gems/1.8/gems/haml-2.0.3/bin/haml:9
e:/ruby/bin/haml:19:in `load'
e:/ruby/bin/haml:19
Thanks for your time.
On Oct 4, 1:21 am, Chris Eppstein <[EMAIL PROTECTED]> wrote:
> I can't reproduce your issue, can you create a failing test case that
> we can run. Also please provide version information.
>
> Chris
>
> On Oct 3, 9:18 pm, Eric <[EMAIL PROTECTED]> wrote:
>
> > I tried to use the sass filter in a haml file, and convert it via the
> > command line. I got:
>
> > Exception on line 218: uninitialized constant Sass::Plugin
>
> > I'm guessing it's not *supposed* to work from the command line...
>
> > For reference, here's the .haml file:
> > !!! Strict
> > %html{html_attrs}
> > %head
> > %title
> > Hi there!
> > %script
> > :sass
> > .body
> > :color red
> > %body
> > %one
> > %two
> > %three Hey
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---