2016-01-20 179 views
6

当我尝试运行“捆绑高管罗盘表”像往常一样在一个项目上,我现在有这样的警告:弃用警告

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. 

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

+1

这应该是你可以忽略的东西。您可以尝试升级到alpha版本,并查看是否可以为您解决问题(例如'gem install compass --pre')。弃用警告仅在Sass 3.4.20中;降级到3.4.19也会消除警告。 – cimmanon

+0

Hummm我已经有了sass 3.4.19,而且我正在使用捆绑器 – Hedy

+0

如果我做了一个“捆绑exec罗盘编译”,这是没有警告!问题只发生在观看期间... – Hedy

回答

-2

在这种情况下,您只需停止指南针监视命令(或重新启动cmd)并启动sass-convert函数,它将为您解决此问题。下一次只是经常使用compass watch。希望这会有所帮助。

+0

这不会有帮助,因为问题在Compass提供的模块中,而不是OP的代码。 – cimmanon

+0

@cimmanon - 这对我来说减缓了同样的问题 – Moo

4

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