dart-sass-java icon indicating copy to clipboard operation
dart-sass-java copied to clipboard

Deprecation messages

Open dprutean opened this issue 3 months ago • 1 comments

I also got this: 15:42:26.778 [INFO ] d.larsgrefer.sass.embedded.SassCompiler - DEPRECATION WARNING [color-functions]: lighten() is deprecated. Suggestions:

color.scale($color, $lightness: 45.5357142857%) color.adjust($color, $lightness: 20%)

More info: https://sass-lang.com/d/color-functions

199 │ color: lighten($color-accent-first, 20%) !important; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ╵ src\main\resources\website\pages-static\css\style.scss 199:10 root stylesheet

15:42:27.219 [ERROR] c.w.s.website_generator.PreviewCommand - Error during website regeneration java.lang.RuntimeException: failed to process [css] at com.wisecoders.site_architect.website_generator.model.tree.DirectoryOutputNode.forAllFiles(DirectoryOutputNode.kt:78) at com.wisecoders.site_architect.website_generator.processors.impl.sass.SassProcessor.process(SassProcessor.kt:22) at com.wisecoders.site_architect.website_generator.GenerateCommand.process(GenerateCommand.kt:157) at com.wisecoders.site_architect.website_generator.GenerateCommand.run(GenerateCommand.kt:63) at com.wisecoders.site_architect.website_generator.PreviewCommand.generateWebsite(PreviewCommand.kt:94) at com.wisecoders.site_architect.website_generator.PreviewCommand.access$generateWebsite(PreviewCommand.kt:22) at com.wisecoders.site_architect.website_generator.PreviewCommand$watchAsync$$inlined$fixedRateTimer$default$1.run(Timer.kt:159) at java.base/java.util.TimerThread.mainLoop(Timer.java:566) at java.base/java.util.TimerThread.run(Timer.java:516) Caused by: java.lang.RuntimeException: failed to process [css/style.scss] at com.wisecoders.site_architect.website_generator.model.tree.DirectoryOutputNode.forAllFiles(DirectoryOutputNode.kt:78) at com.wisecoders.site_architect.website_generator.model.tree.DirectoryOutputNode.forAllFiles(DirectoryOutputNode.kt:67) ... 8 common frames omitted Caused by: java.lang.RuntimeException: failed to process [css/style.scss] at com.wisecoders.site_architect.website_generator.model.tree.DirectoryOutputNode.forAllFiles(DirectoryOutputNode.kt:73) ... 9 common frames omitted Caused by: java.lang.RuntimeException: Failed to compile SCSS file [css/style.scss] at com.wisecoders.site_architect.website_generator.processors.impl.sass.SassProcessor.process$lambda$0(SassProcessor.kt:43) at com.wisecoders.site_architect.website_generator.model.tree.DirectoryOutputNode.forAllFiles(DirectoryOutputNode.kt:71) ... 9 common frames omitted Caused by: de.larsgrefer.sass.embedded.SassCompilationFailedException: Error: There is no module with the namespace "color". ╷ 684 │ background: color.scale($color-bg, $lightness: -2%); │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ╵

dprutean avatar Sep 02 '25 13:09 dprutean

The deprecations and errors come from dart-sass itself. My library only logs and re-throws them.

To fix this, you have to fix the scss file.

larsgrefer avatar Sep 03 '25 17:09 larsgrefer