Barbara Ramiro reported an issue where in the Boost Advanced Settings referencing a SASS variable in the Raw SCSS would produce an error.
The error was initially encountered on a MoodleCloud site, however I verified with Bas Brands the error is prevalent on the current master branch.
To reproduce I went to Boost > Advanced Settings and entered $moodle-test: #FF00FF; as "Raw initial SCSS" then referenced that variable in the "Raw SCSS" section with:
Saving this form produced the error:
Coding error detected, it must be fixed by a programmer: Error: Undefined variable: "$moodle-test". on line 2 of stdin >> border-colour: $moodle-test; ---------------^
More information about this error
Error code: codingerror
line 138 of /lib/classes/scss.php: coding_exception thrown
line 10574 of /lib/adminlib.php: call to core_scss->compile()
line 2242 of /lib/adminlib.php: call to admin_setting_scsscode->validate()
line 8187 of /lib/adminlib.php: call to admin_setting_configtext->write_setting()
line 44 of /admin/settings.php: call to admin_write_settings()
The pathtosassc config setting is set to /usr/local/bin/sassc on Cloud.
See attached screenshots.