docpad / docpad-plugin-sass

Adds support for the SASS and SCSS CSS pre-processors to DocPad. It also supports the Compass framework.
Other
13 stars 6 forks source link

An Error occured #6

Closed lapa182 closed 11 years ago

lapa182 commented 11 years ago

I'm trying to use the plugin in my project but it keep it saying this error. I've already defined it manually and continuos error.

Error: spawn ENOENT at errnoException (child_process.js:945:11) at Process.ChildProcess._handle.onexit (child_process.js:736:34) error: An error occured: Error: spawn ENOENT at errnoException (child_process.js:945:11) at Process.ChildProcess._handle.onexit (child_process.js:736:34) error: An error occured: Error: spawn ENOENT at errnoException (child_process.js:945:11) at Process.ChildProcess._handle.onexit (child_process.js:736:34)

lapa182 commented 11 years ago

Node version 0.10, windows 8.

balupton commented 11 years ago

Hey mate, can you try specifying the sassPath and scssPath manually, you can find details here: https://github.com/docpad/docpad-plugin-sass/issues/5

Let me know how it goes and I'll act accordingly :)

lapa182 commented 11 years ago

I've putted in the config file the following sentence correct me if i'm wrong please:

  sassPath: 'X:\Ruby193\lib\ruby\gems\1.9.1\gems\sass-3.2.7\bin\sass',
  scssPath: 'X:\Ruby193\lib\ruby\gems\1.9.1\gems\sass-3.2.7\bin\scss',
  compass: 'X:\Ruby193\lib\ruby\gems\1.9.1\gems\compass-0.12.2\bin\compass',

And it worked, but when I've created the .css.scss file it made the following error: print

michaud commented 11 years ago

I've been trying things after getting the same kind of errors. I used these and got it to work:

    plugins:
        sass:
            sassPath: 's:/Ruby193/bin/sass.bat'
            scssPath: 's:/Ruby193/bin/scss.bat'
balupton commented 11 years ago

@lapa182 you may have to use double backslash there, so: 'X:\\Ruby193\\lib\\ruby\\gems\\1.9.1\\gems\\sass-3.2.7\\bin\\sass' - as single backslash has a special meaning in strings

lapa182 commented 11 years ago

I used what @michaud told and it worked, thanks!