Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not run on Windows with spaces in binary or output path #32

Open
sebastian-lenz opened this issue Jul 22, 2014 · 0 comments
Open
Labels

Comments

@sebastian-lenz
Copy link

I ran into a little issue while trying to install DocPad with SASS support on a Windows machine. When executing DocPad there is an error thrown caused by the SASS plugin when trying to launch the compiler in a location something like C:\Program Files\ruby\rubygems\gem\sass.bat. The path is not correctly escaped and the plugin tries to run C:\Program. Same problem seems to apply when the path to the *.sass files contains spaces. As this is the default application folder in Windows, this seems not like an unusual scenario.

I've tried to modify line 97 of src/sass.plugin.coffee to look something like this:

command = [].concat(if safeps.isWindows() then execPath.replace(/ /g, '^ ') else execPath)

but this leads to a strange error sockets timeout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants