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

Docpad shuts down after a Sass syntax error #24

Closed patocallaghan closed 10 years ago

patocallaghan commented 10 years ago

Hey,

can you tell me is it expected behaviour that Docpad should shut down if it detects a Sass error during generation? I'm finding at the moment that each time I get a syntax error I have to re-start Docpad each time.

warning: Something went wrong while rendering: assets\css\style.css.scss
Syntax error: Undefined variable: "$site-max-width--oldie".
        on line 203 of standard input
  Use --trace for backtrace.

error: Something went wrong with the action
error: An error occured:
Error: Syntax error: Undefined variable: "$site-max-width--oldie".
        on line 203 of standard input
  Use --trace for backtrace.

    at ChildProcess.<anonymous> (D:\Dev\Github\cssoff2013\node_modules\docpad-plugin-sass\node_modules\safeps\out\lib\safeps.js:159:23)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:735:16)
    at Socket.<anonymous> (child_process.js:948:11)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Pipe.close (net.js:451:12)
info: Shutting down... cya next time!

As you can imagine this messes up my workflow a bit but I can't imagine that this is expected?

I'm on the following:

Thanks, Pat

diessica commented 10 years ago

I think it's an expected behavior, unfortunately. This happens with several plugins.

balupton commented 10 years ago

Try again with the latest plugin version. If you get a comapss error, I've added instructions to the readme on how to fix it. Let me know if it is still an issue.