听不使用sass-3.3.0.rc.3 - Undfined Method

时间:2014-02-08 23:21:47

标签: ruby sass compass-sass

决定我今天要更新我的sass开发环境以使用源映射,我似乎坚持这个错误。我已经尝试通过切换到rbenv转移到新版本的ruby,卸载所有内容,重新安装所有内容。甚至去了并确保在ruby的mac安装中没有对旧监听的迷路引用。我似乎无法克服这个问题。这是手表上的痕迹。

 sass --watch scss:public/css --trace 
 >>> Sass is watching for changes. Press Ctrl-C to stop.

 ~/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sass-3.3.0.rc.3/lib/sass/plugin/compiler.rb:306:in `create_listener': undefined method `to' for Listen:Module (NoMethodError)
from ~/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sass-3.3.0.rc.3/lib/sass/plugin/compiler.rb:233:in `watch'
from ~/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sass-3.3.0.rc.3/lib/sass/plugin.rb:108:in `method_missing'
from ~/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sass-3.3.0.rc.3/lib/sass/exec.rb:509:in `watch_or_update'
from ~/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sass-3.3.0.rc.3/lib/sass/exec.rb:346:in `process_result'
from ~/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sass-3.3.0.rc.3/lib/sass/exec.rb:43:in `parse'
from ~/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sass-3.3.0.rc.3/lib/sass/exec.rb:22:in `parse!'
from ~/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sass-3.3.0.rc.3/bin/sass:13:in `<top (required)>'
from ~/.rbenv/versions/2.1.0/bin/sass:23:in `load'
from ~/.rbenv/versions/2.1.0/bin/sass:23:in `<main>'

显示正在使用的ruby版本:

     [scott] ~/CODE/ $ which ruby
     ~/.rbenv/shims/ruby

这里是宝石列表输出

     bigdecimal (1.2.5, 1.2.3)
     bundler (1.5.3)
     celluloid (0.15.2)
     chunky_png (1.2.9)
     ffi (1.9.3)
     fssm (0.2.10)
     hitimes (1.2.1)
     io-console (0.4.2)
     json (1.8.1)
     listen (2.4.1)
     minitest (5.2.2, 4.7.5)
     multi_json (1.8.4)
     psych (2.0.4, 2.0.2)
     rake (10.1.1, 10.1.0)
     rb-fsevent (0.9.4)
     rb-inotify (0.9.3)
     rb-kqueue (0.2.0)
     rdoc (4.1.1, 4.1.0)
     rubygems-update (2.2.2)
     sass (3.3.0.rc.3)
     test-unit (2.5.5, 2.1.0.0)
     timers (2.0.0, 1.1.0)

1 个答案:

答案 0 :(得分:2)

这里的问题相同。

使用旧版本可以解决问题

$ gem uninstall sass
$ gem install sass -v 3.3.0.rc.2

不要忘记适当的指南针版本

$gem install compass -v 0.13.alpha.12