Skip to content
New issue

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

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

Already on GitHub? # to your account

Deprecation warnings. #21

Closed
xinghengwang opened this issue Jul 28, 2017 · 2 comments
Closed

Deprecation warnings. #21

xinghengwang opened this issue Jul 28, 2017 · 2 comments

Comments

@xinghengwang
Copy link

I am keeping seeing deprecation warnings like this:

DEPRECATION WARNING: Passing a string to call() is deprecated and will be illegal
in Sass 4.0. Use call(get-function("variable-exists")) instead.

DEPRECATION WARNING: Passing a string to call() is deprecated and will be illegal
in Sass 4.0. Use call(get-function("variable-exists")) instead.

DEPRECATION WARNING: Passing a string to call() is deprecated and will be illegal
in Sass 4.0. Use call(get-function("mixin-exists")) instead.

DEPRECATION WARNING: Passing a string to call() is deprecated and will be illegal
in Sass 4.0. Use call(get-function("variable-exists")) instead.

DEPRECATION WARNING: Passing a string to call() is deprecated and will be illegal
in Sass 4.0. Use call(get-function("variable-exists")) instead.

DEPRECATION WARNING: Passing a string to call() is deprecated and will be illegal
in Sass 4.0. Use call(get-function("mixin-exists")) instead.

@mmistakes
Copy link
Owner

The Susy 2.0 mixins used by the theme have Sass functions that will be deprecated in Sass 4 whenever that is released.

They are only warnings and nothing you need to worry about right now. Eventually I'll update the theme to use Susy 3, which will eliminate these warnings.

@michaelkeenan
Copy link

A fast way to remove the deprecation warnings is to replace this line in _support.scss:

$_pass: call(unquote("#{$_type}-exists"), $_i);

With this:

$_pass: call(get-function(unquote("#{$_type}-exists")), $_i);

(Beware, my approach was the "change something and see if it seems to work" method, rather than the "understand it deeply and do the correct thing in a way that definitely won't break something" method.)

mmistakes added a commit that referenced this issue Jan 5, 2018
Most of Susy's mixins have been deprecated, `@include container()`, `@include full()`, `@include span()`, `@include prefix()`, `@include suffix()`, `@include gallery()`, etc replace with new functions.

Fixes #21
mmistakes added a commit that referenced this issue Jan 5, 2018
Most of Susy's mixins have been deprecated, `@include container()`, `@include full()`, `@include span()`, `@include prefix()`, `@include suffix()`, `@include gallery()`, etc replace with new functions.

Fixes #21
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants