Less filter produces blank css files under Windows #146

Closed
gremo opened this Issue Dec 15, 2012 · 4 comments

Comments

Projects
None yet
5 participants

gremo commented Dec 15, 2012

Node version 0.8.16, running fine under Windows 7 x64. Command npm list -g shows:

C:\Users\Marco\AppData\Roaming\npm
└── less@1.3.1

So less module is installed correctly. Assetic configuration (parameters.yml):

parameters:
    node: C:\\Program Files\\nodejs\node.exe
    node_paths:
        - C:\\Program Files\\nodejs\\node_modules
        - C:\\Users\\Marco\\AppData\\Roaming\\npm\\node_modules

Assetic configuration (config.yml):

assetic:
    debug:          %kernel.debug%
    use_controller: false
    bundles:        [GremoTestBundle]
    #java: /usr/bin/java
    filters:
        cssrewrite: ~
        less:
            node: %node%
            node_paths: %node_paths%

I've added a var_dump($this) inside filterLoad in LessFilter.php, and all seems fine:

object(Assetic\Filter\LessFilter)[54]
  private 'nodeBin' => string 'C:\\Program Files\\nodejs\node.exe' (length=34)
  private 'nodePaths' => 
    array (size=2)
      0 => string 'C:\\Program Files\\nodejs\\node_modules' (length=39)
      1 => string 'C:\\Users\\Marco\\AppData\\Roaming\\npm\\node_modules' (length=53)
  private 'compress' => null
  protected 'loadPaths' => 
    array (size=0)
      empty

Still getting empty stylesheet files using the less filter.

SeoFood commented Jan 29, 2013

i got the same problem

i got the same problem

check out symfony#155

Member

stof commented Oct 14, 2014

Closing as the issue has been fixed in Assetic

stof closed this Oct 14, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment