assetic icon indicating copy to clipboard operation
assetic copied to clipboard

Can't compile SCSS files on Windows

Open MKlipaGavanski opened this issue 9 years ago • 6 comments

I am trying to getting this working on WAMP on Windows, but keep on failing.

I have WAMP 2.5 Ruby 2,2 and Compass 1,0.3 installed on my Windows 8.1 PC with WAMP 2.5.

Here is the screenshot that shows I have Ruby and Compass installed on my PC. screenshot

Here shows the configuration files that I used in my Symfony 2 project. config

This is the error I encounter when I try to run the project. error-screen

Here is the line for assetic bundle on the composer.json file. "symfony/assetic-bundle": "~2.3"

As far as I checked, it looks like that this is something to deal with piping file streams. Just want to know whether this can be fixed or I need to install Ubuntu or Mac OSX. Please advise.

MKlipaGavanski avatar May 15 '15 02:05 MKlipaGavanski

Edit "vendor/kriswallsmith/assetic/src/Assetic/Filter/CompassFilter.php"

Change Line 312 from:

$pb->add('--sass-dir')->add('')->add('--css-dir')->add('');

to:

$pb->add('--sass-dir')->add($tempDir)->add('--css-dir')->add($tempDir);

That fixed it for me.

sujayjaju avatar Jul 28 '15 09:07 sujayjaju

@sujayjaju - the fixed worked also on my setup on windows.. @kriswallsmith - could this be added to code, or would it break something ?

nakashu avatar Aug 26 '15 10:08 nakashu

+1 Would be nice if this could be added.

vansante avatar Sep 10 '15 07:09 vansante

+1 We need this too. (It was adden in 2011 but then removed with the next commit :weary:)

jleehr avatar Nov 04 '15 09:11 jleehr

+1

TorrnexT avatar Nov 21 '16 15:11 TorrnexT

https://github.com/kriswallsmith/assetic/pull/803 is fixing the issue.

kubawerlos avatar Nov 21 '16 15:11 kubawerlos