2016-01-20 181 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,然後它正常工作。