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

Fixed issue with paths not working on Windows OS #9

Merged
merged 1 commit into from
Mar 15, 2016

Conversation

anup-sr
Copy link
Contributor

@anup-sr anup-sr commented Mar 15, 2016

The path was assumed to have forward slashes when it was being split. This resulted in the path being wrong on Windows where paths are backslashes. The fix was to use the Node.js path library and get the OS specific separator. This fixes the issue on Windows and Unix operating systems which use a forward slash are unaffected.

The error before applying this fix was:

node_modules\gulp-slate\index.js:189
throw new PluginError(
FileOpenError: could not open include includes/_errors.md

The path was assumed to have forward slashes when it was being split. This resulted in the path being wrong on Windows where paths are backslashes. The fix was to use the Node.js path library and get the OS specific separator. This fixes the issue on Windows and Unix operating systems which use a forward slash are unaffected.

The error before applying this fix was:

```
node_modules\gulp-slate\index.js:189
throw new PluginError(
FileOpenError: could not open include includes/_errors.md
```
wodka added a commit that referenced this pull request Mar 15, 2016
Fixed issue with paths not working on Windows OS
@wodka wodka merged commit de94c1d into wodka:master Mar 15, 2016
@wodka
Copy link
Owner

wodka commented Mar 15, 2016

thanks :) I just release 1.0.6 to use this

@anup-sr
Copy link
Contributor Author

anup-sr commented Mar 15, 2016

Thanks mate...Great to have a gulp plugin for slate. Good work. Cheers.

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

Successfully merging this pull request may close these issues.

2 participants