Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning, interpolation near operators #2052

Open
cecukemon opened this issue Jan 26, 2016 · 24 comments
Open

Deprecation warning, interpolation near operators #2052

cecukemon opened this issue Jan 26, 2016 · 24 comments

Comments

@cecukemon
Copy link

With compass 1.0.3 and Sass 3.4.20, I'm getting the following deprecation warnings:

DEPRECATION WARNING on line 87 of /usr/local/lib/ruby/gems/2.1/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}')

I "fixed" this using sass-convert -F scss -T scss --in-place -R stylesheets/ in the compass installation dir, but that's not really a viable solution for a production environment.

@joshrickert
Copy link

+1

@cfaria
Copy link

cfaria commented Feb 9, 2016

+1 <3

@lpbouvier
Copy link

+1

1 similar comment
@niels-k-86
Copy link

+1

@RoterNagel
Copy link

1+

@apost
Copy link

apost commented Feb 17, 2016

+1

2 similar comments
@bezreyhan
Copy link

+1

@BKapelari
Copy link

+1

@etdev
Copy link

etdev commented Mar 1, 2016

+1

5 similar comments
@stakahashi
Copy link

+1

@Farson
Copy link

Farson commented Mar 10, 2016

+1

@uxte
Copy link

uxte commented Mar 17, 2016

+1

@frekele
Copy link

frekele commented Mar 20, 2016

+1

@BigGMK
Copy link

BigGMK commented Mar 21, 2016

+1

@mrpatricko
Copy link

mrpatricko commented Mar 24, 2016

This will fix the warnings but ultimately we'll want to switch to libSass.

Goto "/Applications/CodeKit.app/Contents/Resources/engines/compass/compass-core/stylesheets/compass/css3/_deprecated-support.scss"

Change line 87 to this...

// A debug tool for checking browser support

@mixin debug-support-matrix($experimental: true, $ie: true) {
  @debug  '#{"$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';
  @debug  '#{"$ie6-"}$legacy-support-for-ie6'
          '#{"$ie7-"}$legacy-support-for-ie7'
          '#{"$ie8-"}$legacy-support-for-ie8';
}

@uxte
Copy link

uxte commented Mar 24, 2016

Thanks for the fix @mrpatricko but what do you mean with switch to " switch to libSass"?

@HasStacey
Copy link

+1

@mrpatricko
Copy link

Hi @uxte, there's a similar issue on Github in which bdkjones recommends switching to libSass and I just passed along the recommendation. He also mentions that he will update Codekit once Compass updates to the newer Sass syntax.

The edits on line 87 are just a quick way for me to remove the warnings in the meantime.

Compass needs to update to support the newer Sass syntax released in CodeKit 2.7.1. When they do, I’ll update CodeKit to include that newer version of Compass. In the meantime, I’d consider migrating away from Compass because doing so will let you compile your Sass files with Libsass, which will change your life. Check out Bourbon for a possible replacement. -bdkjones

@dsignr
Copy link

dsignr commented Apr 9, 2016

+1 Thank you so much :')

@momondogroup
Copy link

+1 this fixed it for me as well

mattheworiordan added a commit to ably-forks/compass that referenced this issue Jun 8, 2016
Fixes deprecation warning with SASS and Compass#2052

```
DEPRECATION WARNING on line 92 of /Users/mattheworiordan/.rvm/gems/ruby-2.2.2/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}')
```
@mattheworiordan
Copy link

See #2088 for a fix until the issue is resolved in the repo directly

mattheworiordan added a commit to ably-forks/compass that referenced this issue Jun 8, 2016
Fixes deprecation warning with SASS and Compass#2052

```
DEPRECATION WARNING on line 92 of /Users/mattheworiordan/.rvm/gems/ruby-2.2.2/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}')
```
@tsai-jimmy
Copy link

Thanks for the fix @mrpatricko

@Quniwork
Copy link

+1, Thanks for the fix @mrpatricko !

jessedoyle added a commit to jessedoyle/foundation-sites that referenced this issue Aug 17, 2017
* Use the `unquote` function as suggested to resolve
  deprecation warnings with SASS >= 3.4.20.
* Fixes Compass/compass#2052

SEE: sass/sass#1778
@CJohnDesign
Copy link

Thanks for the fix @mrpatricko!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests