I always use a Linux OS, but I need to check the operation under Windows for others. I have set up a xampp package and a symfony2 framework.
config.yml:
# Assetic Configuration
assetic:
debug: "%kernel.debug%"
use_controller: false
write_to: %kernel.root_dir%/../../html/
#bundles: [ ]
#java: /usr/bin/java
filters:
cssrewrite : ~
sass :
bin: "C:\Ruby\bin\sass"
compass :
bin: "C:\Ruby\bin\compass"
yui_css:
jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.8.jar"
yui_js:
jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.8.jar"
closure:
jar: "%kernel.root_dir%/Resources/java/compiler.jar"
error message:
[exception] 500 | Internal Server Error | Assetic\Exception\FilterException
[message] An error occurred while running:
"C:\Ruby\bin\ruby.EXE" "C:\Ruby\bin\compass" "compile" "C:\Users\user\AppData\Local\Temp" "--boring" "--config" "C:\Users\user\AppData\Local\Temp\ass1047.tmp" "--sass-dir" "" "--css-dir" "" "C:/Users/user/AppData/Local/Temp/ass1048.tmp.sass"
Error Output:
Individual stylesheets must be in the sass directory.
I couldn't understand the "Individual stylesheets must be in the sass directory." error.
How do I set the compass in Symfony2 on windows?
Version information:
- Windows : 7
- Ruby : 2.1.5
- Sass : 3.4.10
- Compass : 1.0.3