This repository was archived by the owner on Apr 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
This repository was archived by the owner on Apr 17, 2020. It is now read-only.
Build Error from Broccoli, cannot unlink file #242
Copy link
Copy link
Open
Description
When running ember serve with ember-makeup installed and changing any *.css file, there will be a Build Error.
I do get this one:
file changed dummy/app/application/styles.css
file changed application/styles.css
Build Error (broccoli-persistent-filter:BroccoliExtractSchema)
ENOENT: no such file or directory, unlink '/var/folders/5s/d0fql03n6mj78fw8b5mk0x3m0000gn/T/broccoli-32410hNb44irLJiQI/out-322-broccoli_persistent_filter_broccoli_extract_schema/assets/dummy.makeup.json'
Stack Trace and Error Report: /var/folders/5s/d0fql03n6mj78fw8b5mk0x3m0000gn/T/error.dump.bc6c762dfed6f828cdf2c6c64fd6ef79.log
(node:32410) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, unlink '/var/folders/5s/d0fql03n6mj78fw8b5mk0x3m0000gn/T/broccoli-32410hNb44irLJiQI/out-322-broccoli_persistent_filter_broccoli_extract_schema/assets/dummy.makeup.json'
at Object.unlinkSync (fs.js:1057:3)
at /Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/index.js:320:12
at initializePromise (/Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/node_modules/rsvp/dist/lib/rsvp/-internal.js:236:5)
at new Promise (/Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/node_modules/rsvp/dist/lib/rsvp/promise.js:143:33)
at BroccoliExtractSchema.Filter._handleFile (/Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/index.js:306:10)
at changeOperation (/Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/index.js:266:25)
at /Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/index.js:50:47
at /Users/thomas/code/packages/ember-makeup/node_modules/async-promise-queue/node_modules/async/dist/async.js:196:27
at /Users/thomas/code/packages/ember-makeup/node_modules/async-promise-queue/node_modules/async/dist/async.js:74:12
at /Users/thomas/code/packages/ember-makeup/node_modules/async-promise-queue/node_modules/async/dist/async.js:4096:9
(node:32410) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 5)
(node:32410) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:32410) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, unlink '/var/folders/5s/d0fql03n6mj78fw8b5mk0x3m0000gn/T/broccoli-32410hNb44irLJiQI/out-322-broccoli_persistent_filter_broccoli_extract_schema/assets/dummy.makeup.json'
at Object.unlinkSync (fs.js:1057:3)
at /Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/index.js:320:12
at initializePromise (/Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/node_modules/rsvp/dist/lib/rsvp/-internal.js:236:5)
at new Promise (/Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/node_modules/rsvp/dist/lib/rsvp/promise.js:143:33)
at BroccoliExtractSchema.Filter._handleFile (/Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/index.js:306:10)
at changeOperation (/Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/index.js:266:25)
at /Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/index.js:50:47
at /Users/thomas/code/packages/ember-makeup/node_modules/async-promise-queue/node_modules/async/dist/async.js:196:27
at /Users/thomas/code/packages/ember-makeup/node_modules/async-promise-queue/node_modules/async/dist/async.js:74:12
at /Users/thomas/code/packages/ember-makeup/node_modules/async-promise-queue/node_modules/async/dist/async.js:4096:9
(node:32410) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 7)
(node:32410) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, unlink '/var/folders/5s/d0fql03n6mj78fw8b5mk0x3m0000gn/T/broccoli-32410hNb44irLJiQI/out-322-broccoli_persistent_filter_broccoli_extract_schema/assets/dummy.makeup.json'
at Object.unlinkSync (fs.js:1057:3)
at /Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/index.js:320:12
at initializePromise (/Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/node_modules/rsvp/dist/lib/rsvp/-internal.js:236:5)
at new Promise (/Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/node_modules/rsvp/dist/lib/rsvp/promise.js:143:33)
at BroccoliExtractSchema.Filter._handleFile (/Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/index.js:306:10)
at changeOperation (/Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/index.js:266:25)
at /Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/index.js:50:47
at /Users/thomas/code/packages/ember-makeup/node_modules/async-promise-queue/node_modules/async/dist/async.js:196:27
at /Users/thomas/code/packages/ember-makeup/node_modules/async-promise-queue/node_modules/async/dist/async.js:74:12
at /Users/thomas/code/packages/ember-makeup/node_modules/async-promise-queue/node_modules/async/dist/async.js:4096:9
(node:32410) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 10)
(node:32410) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, unlink '/var/folders/5s/d0fql03n6mj78fw8b5mk0x3m0000gn/T/broccoli-32410hNb44irLJiQI/out-322-broccoli_persistent_filter_broccoli_extract_schema/assets/dummy.makeup.json'
at Object.unlinkSync (fs.js:1057:3)
at /Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/index.js:320:12
at initializePromise (/Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/node_modules/rsvp/dist/lib/rsvp/-internal.js:236:5)
at new Promise (/Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/node_modules/rsvp/dist/lib/rsvp/promise.js:143:33)
at BroccoliExtractSchema.Filter._handleFile (/Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/index.js:306:10)
at changeOperation (/Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/index.js:266:25)
at /Users/thomas/code/packages/ember-makeup/node_modules/broccoli-persistent-filter/index.js:50:47
at /Users/thomas/code/packages/ember-makeup/node_modules/async-promise-queue/node_modules/async/dist/async.js:196:27
at /Users/thomas/code/packages/ember-makeup/node_modules/async-promise-queue/node_modules/async/dist/async.js:74:12
at /Users/thomas/code/packages/ember-makeup/node_modules/async-promise-queue/node_modules/async/dist/async.js:4096:9
(node:32410) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 12)However, running it with BROCCOLI_DEBUG='ember-makeup:*' ember s will work.
My hypothesis is: That broccoli is keeping no cache for the debug build and will create files over and over again, whereas the "prod" build will keep a cache and then it tries to unlink a not-anymore-existing file.
There is two potential errors:
ember-makeupis configured improperly at some point- This comes down from upsteam
broccoli-persistent-filter. I might find this line reasonable for this: https://github.com/broccolijs/broccoli-persistent-filter/blob/598264ab44fcccdd433abecaacb9181959cdac16/index.js#L312 more theifcondition that it tries to unlink a file wo/ checking if it actually exists.
Metadata
Metadata
Assignees
Labels
No labels