【问题标题】:Deprecation warning on ruby with compass指南针对红宝石的弃用警告
【发布时间】:2016-07-21 04:06:50
【问题描述】:

当我尝试像往常一样在项目上运行“bundle exec compass watch”时,我现在收到了这个警告:

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.

每个 gem 都是最新的,我不知道如何删除这个警告...

【问题讨论】:

  • 这应该是你可以忽略的。您可以尝试升级到 alpha 版本,看看是否可以为您解决问题(例如gem install compass --pre)。弃用警告仅在 Sass 3.4.20 中出现;降级到 3.4.19 也会消除警告。
  • 嗯,我已经有 sass 3.4.19,我正在使用 bundler
  • 如果我执行“bundle exec compass compile”,则没有警告!问题只出现在观看过程中...

标签: ruby sass bundler compass


【解决方案1】:

这也发生在我身上。我关闭了终端并重新打开它,然后尝试compass watch,此时它记录了修改后的 sass 文件但没有写入 css 文件。然后我又跑了compass clean,然后又跑了compass watch,然后它就可以正常工作了。

【讨论】:

    【解决方案2】:

    在这种情况下,您只需要停止 compass watch 命令(或重新启动 cmd)并启动 sass-convert 函数即可为您解决此问题。下次只需定期使用compass watch。希望这会有所帮助。

    【讨论】:

    • 这无济于事,因为问题出在 Compass 提供的模块中,而不是 OP 的代码中。
    猜你喜欢
    • 2012-12-08
    • 1970-01-01
    • 2012-05-26
    • 1970-01-01
    • 1970-01-01
    • 2019-04-27
    • 2014-02-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多