SASS -watch does not work continuously, remote pattern detected

I am working on a project in vim, and every time I save my .scss file, I get the following error:

Deleted template detected: /home/path/to/my.scss
/usr/lib/ruby/gems/1.8/gems/sass-3.1.17/bin/../lib/sass/../sass/plugin/compiler.rb:338:in `read': No such file or directory - public/stylesheets/my.scss (Errno::ENOENT)
        from /usr/lib/ruby/gems/1.8/gems/listen-0.4.2/lib/listen/adapters/linux.rb:34:in `join'
        from /usr/lib/ruby/gems/1.8/gems/listen-0.4.2/lib/listen/adapters/linux.rb:34:in `start'
        from /usr/lib/ruby/gems/1.8/gems/listen-0.4.2/lib/listen/multi_listener.rb:44:in `start'
        from /usr/lib/ruby/gems/1.8/gems/sass-3.1.17/bin/../lib/sass/../sass/plugin/compiler.rb:306:in `watch'
        from /usr/lib/ruby/gems/1.8/gems/sass-3.1.17/bin/../lib/sass/../sass/plugin.rb:107:in `send'
        from /usr/lib/ruby/gems/1.8/gems/sass-3.1.17/bin/../lib/sass/../sass/plugin.rb:107:in `method_missing'
        from /usr/lib/ruby/gems/1.8/gems/sass-3.1.17/bin/../lib/sass/../sass/exec.rb:431:in `watch_or_update'
        from /usr/lib/ruby/gems/1.8/gems/sass-3.1.17/bin/../lib/sass/../sass/exec.rb:302:in `process_result'
        from /usr/lib/ruby/gems/1.8/gems/sass-3.1.17/bin/../lib/sass/../sass/exec.rb:41:in `parse'
        from /usr/lib/ruby/gems/1.8/gems/sass-3.1.17/bin/../lib/sass/../sass/exec.rb:21:in `parse!'
        from /usr/lib/ruby/gems/1.8/gems/sass-3.1.17/bin/sass:8
        from /usr/bin/sass:19:in `load'
        from /usr/bin/sass:19

Thoughts? It works if I manually restart the -watch server every time, but it is somewhat against his spirit.

+5
source share
1 answer

You must make full use of Compass !

What a compass

Compass is a must-have tool for every SASS encoder. The compass consists of two parts:

  • meta-framework for SASS;
  • command line tool used to compile Compass projects and other useful materials.

compass watch - , . CSS , , , sass --watch. SASS/SCSS, @import .

Ruby RubyGems. sass, , .

Compass, :

  • Compass RubyGems: gem install compass.
  • compass.rb ( Project/compass.rb).
  • compass watch .

config.rb

compass.rb, :

css_dir =   "stylesheets"
sass_dir =  "sass"
-2

All Articles