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

[Bug]: Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0. #9427

Closed
edgan opened this issue Aug 18, 2023 · 7 comments

Comments

@edgan
Copy link

edgan commented Aug 18, 2023

Operating System

Fedora 38 x86_64

Ruby Version

ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]

Jekyll Version

jekyll 4.3.2

GitHub Pages Version

No response

Expected Behavior

No warnings

Current Behavior

Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($spacing-unit, 2) or calc($spacing-unit / 2)

More info and automated migrator: https://sass-lang.com/d/slash-div

   ╷
40 │   margin-bottom: $spacing-unit / 2;
   │                  ^^^^^^^^^^^^^^^^^
   ╵
    ../../../../minima-2.5.1/_sass/minima/_base.scss 40:18  @import
    minima.scss 48:3                                        @import
    /home/ngrennan/blog/assets/main.scss 1:9                root stylesheet
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($spacing-unit, 2) or calc($spacing-unit / 2)

More info and automated migrator: https://sass-lang.com/d/slash-div

    ╷
134 │   padding-left: $spacing-unit / 2;
    │                 ^^^^^^^^^^^^^^^^^
    ╵
    ../../../../minima-2.5.1/_sass/minima/_base.scss 134:17  @import
    minima.scss 48:3                                         @import
    /home/ngrennan/blog/assets/main.scss 1:9                 root stylesheet
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($spacing-unit, 2) or calc($spacing-unit / 2)

More info and automated migrator: https://sass-lang.com/d/slash-div

    ╷
189 │     padding-right: $spacing-unit / 2;
    │                    ^^^^^^^^^^^^^^^^^
    ╵
    ../../../../minima-2.5.1/_sass/minima/_base.scss 189:20  @content
    minima.scss 38:5                                         media-query()
    ../../../../minima-2.5.1/_sass/minima/_base.scss 186:3   @import
    minima.scss 48:3                                         @import
    /home/ngrennan/blog/assets/main.scss 1:9                 root stylesheet
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($spacing-unit, 2) or calc($spacing-unit / 2)

More info and automated migrator: https://sass-lang.com/d/slash-div

    ╷
190 │     padding-left: $spacing-unit / 2;
    │                   ^^^^^^^^^^^^^^^^^
    ╵
    ../../../../minima-2.5.1/_sass/minima/_base.scss 190:19  @content
    minima.scss 38:5                                         media-query()
    ../../../../minima-2.5.1/_sass/minima/_base.scss 186:3   @import
    minima.scss 48:3                                         @import
    /home/ngrennan/blog/assets/main.scss 1:9                 root stylesheet
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($spacing-unit, 3) or calc($spacing-unit / 3)

More info and automated migrator: https://sass-lang.com/d/slash-div

    ╷
244 │     padding: ($spacing-unit / 3) ($spacing-unit / 2);
    │               ^^^^^^^^^^^^^^^^^
    ╵
    ../../../../minima-2.5.1/_sass/minima/_base.scss 244:15  @import
    minima.scss 48:3                                         @import
    /home/ngrennan/blog/assets/main.scss 1:9                 root stylesheet
Warning: 6 repetitive deprecation warnings omitted.
Run in verbose mode to see all warnings.
                    done in 0.196 seconds.
 Auto-regeneration: disabled. Use --watch to enable.

Duplicate of #9252, but not actually fixed in released version 4.3.2

@edgan
Copy link
Author

edgan commented Aug 18, 2023

Trying to downgrade as a workaround to jekyll-sass-converter-2.2.0 or jekyll-sass-converter-2.0.0 makes causes errors like.

ekyll 
/home/ngrennan/.local/share/gem/ruby/gems/ffi-1.15.5/lib/ffi/library.rb:145:in `block in ffi_lib': Could not open library '/home/ngrennan/.local/share/gem/ruby/gems/sassc-2.4.0/ext/libsass.so': /home/ngrennan/.local/share/gem/ruby/gems/sassc-2.4.0/ext/libsass.so: cannot open shared object file: No such file or directory (LoadError)
	from /home/ngrennan/.local/share/gem/ruby/gems/ffi-1.15.5/lib/ffi/library.rb:99:in `map'
	from /home/ngrennan/.local/share/gem/ruby/gems/ffi-1.15.5/lib/ffi/library.rb:99:in `ffi_lib'
	from /home/ngrennan/.local/share/gem/ruby/gems/sassc-2.4.0/lib/sassc/native.rb:13:in `rescue in <module:Native>'
	from /home/ngrennan/.local/share/gem/ruby/gems/sassc-2.4.0/lib/sassc/native.rb:10:in `<module:Native>'
	from /home/ngrennan/.local/share/gem/ruby/gems/sassc-2.4.0/lib/sassc/native.rb:6:in `<module:SassC>'
	from /home/ngrennan/.local/share/gem/ruby/gems/sassc-2.4.0/lib/sassc/native.rb:5:in `<top (required)>'
	from /home/ngrennan/.local/share/gem/ruby/gems/sassc-2.4.0/lib/sassc.rb:31:in `require_relative'
	from /home/ngrennan/.local/share/gem/ruby/gems/sassc-2.4.0/lib/sassc.rb:31:in `<top (required)>'
	from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /home/ngrennan/.local/share/gem/ruby/gems/jekyll-sass-converter-2.2.0/lib/jekyll/converters/scss.rb:3:in `<top (required)>'
	from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /home/ngrennan/.local/share/gem/ruby/gems/jekyll-sass-converter-2.2.0/lib/jekyll-sass-converter.rb:4:in `<top (required)>'
	from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /home/ngrennan/.local/share/gem/ruby/gems/jekyll-4.3.2/lib/jekyll.rb:195:in `<top (required)>'
	from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /home/ngrennan/.local/share/gem/ruby/gems/jekyll-4.3.2/exe/jekyll:8:in `<top (required)>'
	from /home/ngrennan/bin/jekyll:25:in `load'
	from /home/ngrennan/bin/jekyll:25:in `<main>'
/home/ngrennan/.local/share/gem/ruby/gems/ffi-1.15.5/lib/ffi/library.rb:145:in `block in ffi_lib': Could not open library '/home/ngrennan/.local/share/gem/ruby/gems/sassc-2.4.0/lib/sassc/libsass.so': /home/ngrennan/.local/share/gem/ruby/gems/sassc-2.4.0/lib/sassc/libsass.so: cannot open shared object file: No such file or directory (LoadError)
	from /home/ngrennan/.local/share/gem/ruby/gems/ffi-1.15.5/lib/ffi/library.rb:99:in `map'
	from /home/ngrennan/.local/share/gem/ruby/gems/ffi-1.15.5/lib/ffi/library.rb:99:in `ffi_lib'
	from /home/ngrennan/.local/share/gem/ruby/gems/sassc-2.4.0/lib/sassc/native.rb:11:in `<module:Native>'
	from /home/ngrennan/.local/share/gem/ruby/gems/sassc-2.4.0/lib/sassc/native.rb:6:in `<module:SassC>'
	from /home/ngrennan/.local/share/gem/ruby/gems/sassc-2.4.0/lib/sassc/native.rb:5:in `<top (required)>'
	from /home/ngrennan/.local/share/gem/ruby/gems/sassc-2.4.0/lib/sassc.rb:31:in `require_relative'
	from /home/ngrennan/.local/share/gem/ruby/gems/sassc-2.4.0/lib/sassc.rb:31:in `<top (required)>'
	from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /home/ngrennan/.local/share/gem/ruby/gems/jekyll-sass-converter-2.2.0/lib/jekyll/converters/scss.rb:3:in `<top (required)>'
	from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /home/ngrennan/.local/share/gem/ruby/gems/jekyll-sass-converter-2.2.0/lib/jekyll-sass-converter.rb:4:in `<top (required)>'
	from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /home/ngrennan/.local/share/gem/ruby/gems/jekyll-4.3.2/lib/jekyll.rb:195:in `<top (required)>'
	from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /home/ngrennan/.local/share/gem/ruby/gems/jekyll-4.3.2/exe/jekyll:8:in `<top (required)>'
	from /home/ngrennan/bin/jekyll:25:in `load'
	from /home/ngrennan/bin/jekyll:25:in `<main>'

@jekyllbot jekyllbot added the stale Nobody stepped up to work on this issue. label Oct 18, 2023
@jekyllbot
Copy link
Contributor

This issue has been automatically marked as stale because it has not been commented on for at least two months.

The resources of the Jekyll team are limited, and so we are asking for your help.

If this is a bug and you can still reproduce this error on the latest 3.x-stable or master/main branch, please reply with all of the information you have about it in order to keep the issue open.

If this is a feature request, please consider building it first as a plugin. Jekyll 3 introduced hooks which provide convenient access points throughout the Jekyll build pipeline whereby most needs can be fulfilled. If this is something that cannot be built as a plugin, then please provide more information about why in order to keep this issue open.

This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions.

@mattr- mattr- removed the stale Nobody stepped up to work on this issue. label Oct 18, 2023
@harryhanYuhao
Copy link

What is the resolution of this issue?

@newinternetboy
Copy link

Operating System
20.04.1-Ubuntu

Ruby Version
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]

Jekyll Version
jekyll 4.3.2

Current Behavior
Deprecation Warning: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div(9, 16)
More info and automated migrator: https://sass-lang.com/d/slash-div

31 │ $mfp-iframe-ratio: 9/16; // Ratio of iframe (9/16 = widescreen, 3/4 = standard, etc.)

@devnyxie
Copy link

Got the same issue when starting the Jekyll app on latest Arch system.
Logs and my system below~
image
image

@aetos382
Copy link

aetos382 commented Jan 2, 2024

This is a minima issue.
It has been fixed, but the gem has not been released, nor is it planned to be in the near future.

see: jekyll/minima#709

@mattr-
Copy link
Member

mattr- commented May 23, 2024

Closing since this is a bug in minima that already has a fix.

@mattr- mattr- closed this as completed May 23, 2024
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

7 participants