You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running a task defined as a series to pass the same as running the tasks from command line
What actually happened?
When running as a series the tasks fail.
[17:45:04] The following tasks did not complete: ab, b
Did you forget to signal async completion?
Please give us a sample of your gulpfile
/* VERSION 1 */letgulp=require("gulp");letrename=require("gulp-rename");gulp.task('a',()=>{returngulp.src('gulpfile.js').pipe(rename('gulpfile.js.one')).pipe(gulp.dest('_out'))})gulp.task('b',()=>{returngulp.src('gulpfile.js').pipe(rename('gulpfile.js.two')).pipe(gulp.dest('_out'))})gulp.task('ab',gulp.series('a','b'))
/* VERSION 2 */letgulp=require("gulp");letrename=require("gulp-rename");functiona(){returngulp.src('gulpfile.js').pipe(rename('gulpfile.js.one')).pipe(gulp.dest('_out'))}functionb(){returngulp.src('gulpfile.js').pipe(rename('gulpfile.js.two')).pipe(gulp.dest('_out'))}exports.a=aexports.b=bexports.ab=gulp.series(a,b)
Terminal output / screenshots
$ gulp a
[17:44:33] Using gulpfile .../gulpfile.js
[17:44:33] Starting 'a'...
[17:44:35] Finished 'a' after 1.99 s
$ gulp b
[17:44:33] Using gulpfile .../gulpfile.js
[17:44:33] Starting 'b'...
[17:44:35] Finished 'b' after 1.98 s
$ gulp a b
[17:44:50] Using gulpfile .../gulpfile.js
[17:44:50] Starting 'a'...
[17:44:50] Starting 'b'...
[17:44:52] Finished 'a' after 2.23 s
[17:44:52] Finished 'b' after 2.23 s
gulp ab
[17:45:01] Using gulpfile .../gulpfile.js
[17:45:01] Starting 'ab'...
[17:45:01] Starting 'a'...
[17:45:03] Finished 'a' after 2.6 s
[17:45:03] Starting 'b'...
[17:45:04] The following tasks did not complete: ab, b
Did you forget to signal async completion?
node:internal/process/report:91
set reportOnUncaughtException(trigger) {
^
RangeError: Maximum call stack size exceeded
at set reportOnUncaughtException [as reportOnUncaughtException] (node:internal/process/report:91:32)
at setUncaughtExceptionCaptureCallback (node:internal/process/execution:106:46)
at updateExceptionCapture (node:domain:179:5)
at Domain.enter (node:domain:325:3)
at EventEmitter.emit (node:domain:551:10)
at processDirents (node_modules/glob-stream/index.js:88:10)
at next (node_modules/now-and-later/lib/mapSeries.js:43:5)
at handler (node_modules/now-and-later/lib/mapSeries.js:57:9)
at f (node_modules/once/once.js:25:25)
at processDirents (node_modules/glob-stream/index.js:113:7)
Node.js v18.17.1
Please provide the following information:
Linux dev-vagrant 5.15.0-92-generic bus error #102-Ubuntu SMP Wed Jan 10 09:37:39 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
node -v : v18.17.1
npm -v : 10.5.0
gulp:
gulp -v
CLI version: 3.0.0
Local version: 5.0.0
Additional information
I fully accept that I might be doing the series thing wrong. I have tried with not using the string version of my tasks instead supplying functions but I get the same effect.
NOTE: Changing series() to parallel() results in successful runs!
The text was updated successfully, but these errors were encountered:
What were you expecting to happen?
Running a task defined as a series to pass the same as running the tasks from command line
What actually happened?
When running as a series the tasks fail.
Please give us a sample of your gulpfile
Terminal output / screenshots
Please provide the following information:
node -v : v18.17.1
npm -v : 10.5.0
Additional information
I fully accept that I might be doing the series thing wrong. I have tried with not using the string version of my tasks instead supplying functions but I get the same effect.
NOTE: Changing series() to parallel() results in successful runs!
The text was updated successfully, but these errors were encountered: