Giter Club home page Giter Club logo

Comments (6)

joliss avatar joliss commented on June 26, 2024

Could this be a variation of isaacs/rimraf#72?

from broccoli-plugin.

simplesmiler avatar simplesmiler commented on June 26, 2024

I guess it is closely related, but why does broccoli tries to delete files before printing the error?
The issue I'm facing is the lost error message.

from broccoli-plugin.

joliss avatar joliss commented on June 26, 2024

why does broccoli tries to delete files before printing the error?

Ah, I see the problem - the cleanup happens before the error is reported, so the cleanup error "wins". It's a bit tricky to change this without silently swallowing cleanup errors, or adding a bunch of extra error handling code.

I'd like to suggest that it's actually acceptable to print the cleanup error rather than the build error. If a cleanup error happens, that's so fundamental an issue that it should usually be fixed first. I realize that this is happening a lot on Windows because of isaacs/rimraf#72, but then again perhaps one could say that Broccoli is simply broken on Windows until isaacs/rimraf#72 is fixed, and this is just one of many symptoms of this brokenness.

from broccoli-plugin.

simplesmiler avatar simplesmiler commented on June 26, 2024

But would not additional .catch before .finally suffice?

from broccoli-plugin.

joliss avatar joliss commented on June 26, 2024

I've thought about this some more, and I don't think the behavior should be changed. If there's a cleanup error, then that error should be reported.

from broccoli-plugin.

simplesmiler avatar simplesmiler commented on June 26, 2024

Fair enough. The isaacs/rimraf#72 is painful.

from broccoli-plugin.

Related Issues (17)

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.