Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 350846

Summary: dev-ruby/haml: sass --watch doesn't work
Product: Gentoo Linux Reporter: LXj <gotletter>
Component: [OLD] DevelopmentAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description LXj 2011-01-06 18:11:08 UTC
I installed dev-ruby/haml to try out SASS (I do not have anything RoR-related installed), and it works when I run it to compile single sass files, however when I tried to launch 

sass --watch sass:css

I've got this error:

NoMethodError: undefined method `scope' for Sass::Plugin:Module
  Use --trace for backtrace.

Here is --trace output: 


$ sass --watch sass:css --trace
>>> Sass is watching for changes. Press Ctrl-C to stop.
/usr/lib64/ruby/gems/1.8/gems/haml-3.0.24/bin/../lib/sass/plugin.rb:145:in `watch': undefined method `scope' for Sass::Plugin:Module (NoMethodError)
        from /usr/lib64/ruby/gems/1.8/gems/haml-3.0.24/bin/../lib/haml/exec.rb:457:in `watch_or_update'
        from /usr/lib64/ruby/gems/1.8/gems/haml-3.0.24/bin/../lib/haml/exec.rb:360:in `process_result'
        from /usr/lib64/ruby/gems/1.8/gems/haml-3.0.24/bin/../lib/haml/exec.rb:41:in `parse'
        from /usr/lib64/ruby/gems/1.8/gems/haml-3.0.24/bin/../lib/haml/exec.rb:21:in `parse!'
        from /usr/lib64/ruby/gems/1.8/gems/haml-3.0.24/bin/sass:8
        from /usr/bin/sass:8:in `load'
        from /usr/bin/sass:8


Reproducible: Always

Steps to Reproduce:
1. Run sass --watch $dir1:$dir2 (giving it 2 of any directory paths)

Actual Results:  
sass exits with error

Expected Results:  
sass --watch should run continuesly, watching for changes in files in $dir1
Comment 1 Hans de Graaff gentoo-dev Security 2011-01-09 15:48:33 UTC
This happens because we don't provide the vendored copy of fssm. I've fixed this by adding dev-ruby/fssm to the tree and to let haml-3.0.25-r1 depend on it.

Thanks for reporting.