Sass dies with an error (NoMethodError) when requested to --watch

350 views
Skip to first unread message

Gunnar Wolf

unread,
Jun 23, 2010, 1:29:32 AM6/23/10
to ha...@googlegroups.com
Hi,

I got this report against the Haml/Sass Debian package:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586613

It can be reproduced with this (really) minimal test case:

0 gwolf@malenkaya『34』/tmp$ touch empty.scss
0 gwolf@malenkaya『35』/tmp$ sass --watch empty.scss:empty.css
>>> Sass is watching for changes. Press Ctrl-C to stop.
create empty.css
NoMethodError: undefined method `scope' for Sass::Plugin:Module
Use --trace for backtrace.
1 gwolf@malenkaya『36』/tmp$ sass --watch empty.scss:empty.css --trace
>>> Sass is watching for changes. Press Ctrl-C to stop.
overwrite empty.css
/usr/lib/ruby/1.8/sass/plugin.rb:146:in `watch': undefined method `scope' for Sass::Plugin:Module (NoMethodError)
from /usr/lib/ruby/1.8/haml/exec.rb:435:in `watch_or_update'
from /usr/lib/ruby/1.8/haml/exec.rb:347:in `process_result'
from /usr/lib/ruby/1.8/haml/exec.rb:42:in `parse'
from /usr/lib/ruby/1.8/haml/exec.rb:22:in `parse!'
from /usr/bin/sass:8

Of course, sass does think it knows what to do with --watch:

$ sass --help
Usage: sass [options] [INPUT] [OUTPUT]

Description:
Uses the Sass engine to parse the specified template
and outputs the result to the specified file.

Options:
--rails RAILS_DIR Install Haml and Sass from the
Gem to a Rails project
-c, --check Just check syntax, don't
evaluate.
-s, --stdin Read input from standard input
instead of an input file
--trace Show a full traceback on error
--scss Use the CSS-superset SCSS syntax.
--watch Watch files or directories for changes.
The location of the generated CSS
can be set using a colon:
sass --watch
input.sass:output.css
sass --watch
input-dir:output-dir

Are we doing anything wrong here? Both reports ocurred with HAML/SASS
version 3.0.9.

Greetings,

--
Gunnar Wolf • gw...@gwolf.org(+52-55)5623-0154 / 1451-2244

Nathan Weizenbaum

unread,
Jun 23, 2010, 6:02:41 AM6/23/10
to ha...@googlegroups.com
I can't reproduce with 3.0.9 or the latest stable. In both cases, #scope should be included by Sass::Plugin including Haml::Util on line 33.


--
You received this message because you are subscribed to the Google Groups "Haml" group.
To post to this group, send email to ha...@googlegroups.com.
To unsubscribe from this group, send email to haml+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.


Gunnar Wolf

unread,
Jul 29, 2010, 4:15:23 PM7/29/10
to Haml
I have found the cause of this problem to be due to my packaging - I
am not shipping vendor/fssm, as it is a library available for
systemwide use - But the dependency on it had not been pre-declared.
Sorry for the noise,

Nathan Weizenbaum

unread,
Jul 30, 2010, 12:06:23 AM7/30/10
to ha...@googlegroups.com
Good to know. Thanks.


--
Reply all
Reply to author
Forward
0 new messages