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 6820945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:29:10+00:00 2026-05-26T21:29:10+00:00

I’m trying to get assetics running with the yui compressor and, if this is

  • 0

I’m trying to get assetics running with the yui compressor and, if this is running, sass. Right now, both don’t work. When removing all filters from config.yml and the twig template, it works and php app/console assetic:dump does copy the css and js files.

Now I want to add the yui compressor and my config.yml looks like this:

assetic:
  debug: %kernel.debug%
  use_controller: false
  filters:
    yui_js:
      jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.6.jar

Adding the filter to the template and running assetic:dump again ends in the following error (translation of message by me):

[RuntimeException]
The syntax for filename, directory name or drive name is wrong

I found an article telling me to specify the path to java.exe, so I add this to config.yml:

assetic:
  ..
  java: C:/Program Files (x86)/Java/jre6/bin/java.exe
  ..

Now assetic:dump tells me:

[RuntimeException]
The COMMAND "C:/Program" is either written wrong or

I tried playing around with both variables (using \ or \ instead of /, adding single or double quotes, working with short alias Progra~1 or Progra~2) in the config, but I didn’t get anywhere. The both errors comming up all the time. Maybe someone can point me in the right direction.

  • 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-26T21:29:11+00:00Added an answer on May 26, 2026 at 9:29 pm

    Ok, I figured it out. Man, this one was brutal.

    Let’s start with the easy stuff. A working version of the config.yml can look like this:

    assetic:
      debug: false
      use_controller: false
      java: C:\Program Files (x86)\Java\jre6\bin\java.exe
      sass: C:\Program Files (x86)\Ruby192\bin\sass.bat
      filters:
        scss: ~
        yui_js:
          jar: %kernel.root_dir%\Resources\java\yuicompressor-2.4.6.jar
    

    For some reason, assetic is always importing a whole directory for scss, so I had to make a combine.scss which imports the other scss files in the correct order.

    And now it gets ugly, as one have to change the assetics core in order to get this working. The developers of assetic know this bug and I think it is fixed in some development trunk/branch but not the stable one.

    The Assetic\Util\ProcessBuilder has to be changed on line 95

    if (defined('PHP_WINDOWS_VERSION_MAJOR')) {
    

    ,line 103

    $script .= ' '.implode(' ', array_map('escapeshellarg', $args));
    

    and line 110

    return new Process($script, $this->cwd, null, $this->stdin, $this->timeout, $options);
    

    I hope this bug get fixed soon and till then anybody trying to get it working finds this thread… Took me like 8 hours of debuging, reading and trying different approaches.

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

Sidebar

Related Questions

this is what i have right now Drawing an RSS feed into the php,
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Basically, what I'm trying to create is a page of div tags, each has
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to render a haml file in a javascript response like so:
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into

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.