Command line too long
MattDiMu opened this issue · comments
This plugin doesn't work for me, I tested it on two different files. One (a large one) gives me a "command line too long"-error, the other file (small test-file) throws "Error in plugin 'gulp-html': Syntaxerror".
I'm using
- gulp-html@0.3.0
- gulp@3.8.11
- npm@2.6.0
Thanks for your report. Could you please add more information about your task in gulpfile.js?
It would be helpful if you can show me your gulpfile.js to gist or here.
Thx for your reply. My gulpfile.js is quite large, but most won't affect this task. To be sure, I've deleted everything but the following code (error is the same):
'use strict';
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
gulp.task('check', function(){
gulp.src("./app/**/*.html")
.pipe($.html());
})
I also ran into the "Command line too long" error. Here's the code I was using when I got the error:
gulp.task('html', function() {
return gulp.src(['index.html', 'examples/*.html'])
.pipe(validator())
.pipe(gulp.dest('validation/'));
});
I also tried it without the last line, in hopes of printing it to the screen, but ended up with the same error.
@MattDiMu @RandomlyKnighted Thanks for your reporting! I've updated this module to change validate resource to file path from code stdin. Could you please update and try again?
Thanks.
Ok, I updated gulp-html to version 0.4.2 but now it just gives me a different error. Now I'm getting the following:
[10:14:25] Using gulpfile D:\Github\Repositories\bootstrap-wysiwyg\gulpfile.js
[10:14:25] Starting 'html'...
path.js:146
throw new TypeError('Arguments to path.resolve must be strings');
^
TypeError: Arguments to path.resolve must be strings
at Object.win32.resolve (path.js:146:13)
at DestroyableTransform.saveFile [as _transform] (D:\Github\Repositories\bootstrap-wysiwyg\node_modules\gulp\node_mo
dules\vinyl-fs\lib\dest\index.js:36:26)
at DestroyableTransform.Transform._read (D:\Github\Repositories\bootstrap-wysiwyg\node_modules\gulp\node_modules\vin
yl-fs\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:184:10)
at DestroyableTransform.Transform._write (D:\Github\Repositories\bootstrap-wysiwyg\node_modules\gulp\node_modules\vinyl-fs\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:172:12)
at doWrite (D:\Github\Repositories\bootstrap-wysiwyg\node_modules\gulp\node_modules\vinyl-fs\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:237:10)
at writeOrBuffer (D:\Github\Repositories\bootstrap-wysiwyg\node_modules\gulp\node_modules\vinyl-fs\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:227:5)
at DestroyableTransform.Writable.write (D:\Github\Repositories\bootstrap-wysiwyg\node_modules\gulp\node_modules\vinyl-fs\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:194:11)
at DestroyableTransform.ondata (D:\Github\Repositories\bootstrap-wysiwyg\node_modules\gulp-html\node_modules\through
2\node_modules\readable-stream\lib\_stream_readable.js:572:20)
at DestroyableTransform.emit (events.js:107:17)
at readableAddChunk (D:\Github\Repositories\bootstrap-wysiwyg\node_modules\gulp-html\node_modules\through2\node_modules\readable-stream\lib\_stream_readable.js:195:16)
Is this an issue on my end or yours?