-
Bug
-
Resolution: Done
-
Minor
-
None
-
3.2.1
-
MOODLE_32_STABLE
-
-
With reference to: https://moodle.org/mod/forum/discuss.php?d=346241 the PHP SCSS compiler fails to parse "@import url('')" at-rule statements. It fails with a stack trace:
[05-Feb-2017 13:39:46 Europe/London] PHP Notice: Array to string conversion in F:\moodledev\moodle32\lib\scssphp\Compiler.php on line 2727
|
|
[05-Feb-2017 13:39:46 Europe/London] Default exception handler: Exception - unknown value type: Array: line: 7 Debug:
|
|
Error code: generalexceptionmessage
|
* line 3418 of \lib\scssphp\Compiler.php: Leafo\ScssPhp\Exception\CompilerException thrown
|
* line 2727 of \lib\scssphp\Compiler.php: call to Leafo\ScssPhp\Compiler->throwError()
|
* line 2756 of \lib\scssphp\Compiler.php: call to Leafo\ScssPhp\Compiler->compileValue()
|
* line 115 of \lib\classes\scss.php: call to Leafo\ScssPhp\Compiler->compileStringContent()
|
* line 1274 of \lib\scssphp\Compiler.php: call to core_scss->compileChild()
|
* line 295 of \lib\scssphp\Compiler.php: call to Leafo\ScssPhp\Compiler->compileChildrenNoReturn()
|
* line 194 of \lib\scssphp\Compiler.php: call to Leafo\ScssPhp\Compiler->compileRoot()
|
* line 98 of \lib\classes\scss.php: call to Leafo\ScssPhp\Compiler->compile()
|
* line 1216 of \lib\outputlib.php: call to core_scss->to_css()
|
* line 884 of \lib\outputlib.php: call to theme_config->get_css_content_from_scss()
|
* line 171 of \theme\styles.php: call to theme_config->get_css_content()
|
where in this case 'Array: line 7' was a line in a Boost scss preset. But you will get a similar error wherever you put the code and its then parsed.
Refs:
https://developer.mozilla.org/en/docs/Web/CSS/[~imported]
https://github.com/sass/libsass/issues/289
- has a non-specific relationship to
-
MDL-61394 Add an experimental feature to allow the use of SassC for scss compilation
-
- Closed
-
- has been marked as being related by
-
MDL-57313 Various issues with the CLI script import-bootswatch.php
-
- Closed
-
- will be (partly) resolved by
-
MDL-70301 Upgrade SCSSPHP to 1.4.1
-
- Closed
-