在红宝石的贬值警告与指南针

时间:2016-01-20 16:28:46

标签: ruby sass bundler compass

当我尝试运行"捆绑执行罗盘手表"像往常一样,我现在有这个警告:

DEPRECATION WARNING on line 87 of /home/hedy/Sites/mywebsite.fr/src/vendor/bundle/ruby/2.3.0/gems/compass-core-1.0.3/stylesheets/compass/css3/_deprecated-support.scss: #{} interpolation near operators will be simplified
in a future version of Sass. To preserve the current behavior, use quotes:

  unquote('"$moz-"#{$experimental-support-for-mozilla} "$webkit-"#{$experimental-support-for-webkit} "$opera-"#{$experimental-support-for-opera} "$microsoft-"#{$experimental-support-for-microsoft} "$khtml-"#{$experimental-support-for-khtml}')

You can use the sass-convert command to automatically fix most cases.

DEPRECATION WARNING on line 92 of /home/hedy/Sites/mywebsite.fr/src/vendor/bundle/ruby/2.3.0/gems/compass-core-1.0.3/stylesheets/compass/css3/_deprecated-support.scss: #{} interpolation near operators will be simplified
in a future version of Sass. To preserve the current behavior, use quotes:

  unquote('"$ie6-"#{$legacy-support-for-ie6} "$ie7-"#{$legacy-support-for-ie7} "$ie8-"#{$legacy-support-for-ie8}')

You can use the sass-convert command to automatically fix most cases.

每个宝石都是最新的,我不知道如何删除此警告...

2 个答案:

答案 0 :(得分:4)

这也恰好发生在我身上。我关闭了终端并重新打开它,然后尝试compass watch,此时它记录了修改过的sass文件,但没有写入css文件。然后我再次运行compass clean后跟compass watch,然后它正常运行。

答案 1 :(得分:-2)

在这种情况下,您只需要停止指南针监视命令(或重新启动cmd)并启动将为您解决此问题的sass-convert功能。下次定期使用compass watch。希望这会有所帮助。