Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7617679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:12:36+00:00 2026-05-31T03:12:36+00:00

Actually, this is two questions: What is the correct way to use the SCSS

  • 0

Actually, this is two questions:

  1. What is the correct way to use the SCSS filter in my Symfony project in Windows (in Twig templates) ?
    I mean, how do i use the scss binary in windows?

  2. Also, Do I necessarily need to use Compass? and “HOW” do i use compass if I have installed it?

Extension : Here is some configuration I have done:

In app/config/config.yml

assetic:
debug:          %kernel.debug%
use_controller: false
filters:
    scss:
        bin: "%kernel.root_dir%/Resources/libs/scss"
    compass:
        bin: "%kernel.root_dir%/Resources/libs/compass" 

In my twig file:

{% stylesheets 
      '@PlaylyfeBaseBundle/Resources/public/css/base.scss'
      '@PlaylyfeBaseBundle/Resources/public/css/another.scss'
   filter='scss'
   output='css/compiled/total.css'
%}
<link rel="stylesheet" href="{{ asset_url }}" />
{% endstylesheets %}

But, when i load the page, I get the following error (inside the css file)

[exception] 500 | Internal Server Error | RuntimeException
[message] The filename, directory name, or volume label syntax is incorrect.

[1] RuntimeException: The filename, directory name, or volume label syntax is incorrect.
at n/a
in C:\wamp\www\Symfony\vendor\assetic\src\Assetic\Filter\Sass\SassFilter.php line 162

at Assetic\Filter\Sass\SassFilter-&gt;filterLoad(object(Assetic\Asset\FileAsset))
in C:\wamp\www\Symfony\vendor\assetic\src\Assetic\Filter\FilterCollection.php line 62

at Assetic\Filter\FilterCollection-&gt;filterLoad(object(Assetic\Asset\FileAsset))
in C:\wamp\www\Symfony\vendor\assetic\src\Assetic\Asset\BaseAsset.php line 83

at Assetic\Asset\BaseAsset-&gt;doLoad(&#039
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T03:12:37+00:00Added an answer on May 31, 2026 at 3:12 am

    I can only speak for Compass since is what I use but the same issues/problems most likely relate to the SASS/SCSS filters as well.

    There are many known file path issues with Compass on Windows systems:

    • Issue #748: File Path normalization to support Windows systems
    • Pull Request #554: Fixes a bug on Windows systems
    • Comments on commit 539f206

    … and also fixes proposed to Assetic to deal with them:

    • Pull Request #154: Compass problem on Windows, ruby.exe not found
    • Pull Request #152: Until Compass issue 554 is not corrected
    • Issue #131: You must compile individual stylesheets from the project directory.

    I’ve found that doing the following was necessary for everything to work together…

    #1. Make sure %ruby%\bin is in your environment PATH variable:

    Example:
    PATH = "...;C:\Ruby\1.9.2\bin"

    #2. Edit %ruby%\bin\compass.bat to use absolute paths:

    @ECHO OFF
    IF NOT "%~f0" == "~f0" GOTO :WinNT
    @"C:\Ruby\1.9.2\bin\ruby.exe" "C:/Ruby/1.9.2/bin/compass" %1 %2 %3 %4 %5 %6 %7 %8 %9
    GOTO :EOF
    :WinNT
    @"C:\Ruby\1.9.2\bin\ruby.exe" "%~dpn0" %*
    

    #3. Revert 539f206 manually in compiler.rb @ line ~10:

    Note: This step may not be required on the latest Ruby/Compass versions. (Reference)

    Path: %ruby%\lib\ruby\gems\1.9.1\gems\compass-*\lib\compass\compiler.rb

    #      self.from, self.to = from.gsub('./', ''), to
          self.from, self.to = File.expand_path(from), to
    

    #4. Make sure Assetic is configured properly:

    Example (config.yml):

    assetic:
        debug:          %kernel.debug%
        use_controller: false
        filters:
            cssrewrite: ~
            compass:
                bin: %compass.bin%
            yui_js:
                jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar
            yui_css:
                jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar
    

    I use %compass.bin% in my parameters file so that I can ease the transition of the codebase between Windows and *nix systems, so my parameters.yml looks like this:

    # Assetic
    compass.bin: C:\Ruby\1.9.2\bin\compass.bat
    

    #5. (Optional) Upgrade Assetic and AsseticBundle:

    I have Assetic and AsseticBundle tagged to the very last possible commit that works with Symfony 2.0.x in my deps file:

    [assetic]
        git=http://github.com/kriswallsmith/assetic.git
        version=ac71449e46bed22c276da26bf54ab2f733b3801d
    
    [AsseticBundle]
        git=http://github.com/symfony/AsseticBundle.git
        target=bundles/Symfony/Bundle/AsseticBundle
        version=da4a46ce37557dcf3068b8493b12bdbbe47455e2
    

    Make sure to replace %ruby% in all of the paths above with your actual path to ruby.exe, mine being C:\Ruby\1.9.2.

    Steps #2 and #4 may or may not be required, but over the course of my time fighting with this issue, it is where I’ve ended up and my setup works (which is all I care about!).

    Good luck!


    Side question: Is your path to the SCSS/Compass binaries really in %kernel.root_dir%/Resources/libs?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This post is actually divided in two questions: Which kinds of associations classes/interfaces usually
I have two questions, actaully... First off, Why cant I do this: List<Object> object
I am actually stuck in merging the result of this two queries: first query:
I can't believe this - someone actually created two accounts on my social networking
actually this is not hang status, i mean..it slow response, so in that case,
I actually have two questions: (1) Is it possible to put another image on
Actually this is a two parts question: First, is ip2long a good IP validator?
I actually have two simple questions, I hope. What is the TT used for
Sanity-check questions: I did a bit of googling and discovered the correct way to
So, this is actually this question is my current keystone. I'm working on refactoring

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.