GithubHelp home page GithubHelp logo

Comments (6)

yocontra avatar yocontra commented on July 20, 2024

@stu-salsbury Misunderstanding about how streams work I think. If you want to listen to an error on the inp stream you should add an error event listener to that stream. The callback for the buffer stream has nothing to do with error events up or downstream

from gulp-util.

yocontra avatar yocontra commented on July 20, 2024

@stu-salsbury err is always null btw https://github.com/gulpjs/gulp-util/blob/master/lib/buffer.js#L8

from gulp-util.

laurelnaiad avatar laurelnaiad commented on July 20, 2024

I'm listening for specific errors along the way in the pipe and attempting to handle them without quitting the pipeline -- I was never actually relying on the err arg in the buffer callback, which is I suppose how I never realized it isn't populated. Something seems to have changed recently with respect to whether the callback happens at all. Perhaps that's on my side, I have a lot going on. I will continue to investigate. Thanks.

from gulp-util.

yocontra avatar yocontra commented on July 20, 2024

@stu-salsbury If an error event happens then streams get unpiped, and thus the buffer plugin has nothing to buffer and will never call the callback. Use something like gulp-plumber to disable that node core behavior

from gulp-util.

laurelnaiad avatar laurelnaiad commented on July 20, 2024

I'm already using gulp-plumber. I think the issue has something to do with a change to how I'm using lazypipe, which doesn't get along well with gulp-plumber. I'm going to try to backtrack and figure out where it went south.

from gulp-util.

laurelnaiad avatar laurelnaiad commented on July 20, 2024

If was a fundamental issue with the combination of gulp-plumber, lazypipe and gulp-if. I took out gulp-if/lazypipe and replaced them with gulp-filter and all is well.

from gulp-util.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.