-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"ENOENT: no such file or directory" when deleting a file #86
Comments
@denchen if you're able to provide a minimally reproducible scenario (eg against an If not, can you post the output from Thanks |
@denchen something to try
|
@hjdivad I have a minimally(?) reproducible repo here: https://github.com/denchen/broken-ember-app This repo was generated from
And with that, you'll get the errors I'm seeing. |
@denchen ok i wasn't able to install with npm but no matter, i can reproduce this issue with yarn. This is a regression in fs-tree-diff@0.5.4 |
The latest fs-tree-diff (released earlier today) v0.5.6 has fixed this issue (or atleast the one in the example app provided) Relevant PR: |
Just to validate, I re-NPM'd my app and validated that removing files no longer produces those errors. Thanks! |
@denchen thank you for reporting! |
I still get errors whenever I remove a file while running Ember CLI version:
Here's a typical stacktrace: The Broccoli Plugin: [broccoli-persistent-filter:Babel > [Babel: @ember-decorators/argument]: Babel: @ember-decorators/argument] failed with:
Error: ENOENT: no such file or directory, scandir '/Users/stevehull/Dev/my-app/client/tmp/funnel-input_base_path-31WhveH9.tmp/'
at Object.fs.readdirSync (fs.js:911:18)
at _walkSync (/Users/stevehull/Dev/my-app/client/node_modules/walk-sync/index.js:74:18)
at Function.entries (/Users/stevehull/Dev/my-app/client/node_modules/walk-sync/index.js:50:10)
at Funnel.processFilters (/Users/stevehull/Dev/my-app/client/node_modules/ember-cli/node_modules/broccoli-funnel/index.js:323:26)
at Funnel.build (/Users/stevehull/Dev/my-app/client/node_modules/ember-cli/node_modules/broccoli-funnel/index.js:259:10)
at /Users/stevehull/Dev/my-app/client/node_modules/broccoli-plugin/read_compat.js:93:34
at tryCatch (/Users/stevehull/Dev/my-app/client/node_modules/rsvp/dist/rsvp.js:525:12)
at invokeCallback (/Users/stevehull/Dev/my-app/client/node_modules/rsvp/dist/rsvp.js:538:13)
at publish (/Users/stevehull/Dev/my-app/client/node_modules/rsvp/dist/rsvp.js:508:7)
at flush (/Users/stevehull/Dev/my-app/client/node_modules/rsvp/dist/rsvp.js:2415:5)
The broccoli plugin was instantiated at:
at Babel.Plugin (/Users/stevehull/Dev/my-app/client/node_modules/broccoli-plugin/index.js:7:31)
at Babel.Filter [as constructor] (/Users/stevehull/Dev/my-app/client/node_modules/broccoli-persistent-filter/index.js:64:10)
at new Babel (/Users/stevehull/Dev/my-app/client/node_modules/broccoli-babel-transpiler/index.js:36:10)
at Class.transpileTree (/Users/stevehull/Dev/my-app/client/node_modules/ember-cli-babel/index.js:52:18)
at Object.toTree (/Users/stevehull/Dev/my-app/client/node_modules/ember-cli-babel/index.js:61:30)
at /Users/stevehull/Dev/my-app/client/node_modules/ember-cli-preprocess-registry/preprocessors.js:180:26
at Array.forEach (<anonymous>)
at processPlugins (/Users/stevehull/Dev/my-app/client/node_modules/ember-cli-preprocess-registry/preprocessors.js:178:11)
at Function.module.exports.preprocessJs (/Users/stevehull/Dev/my-app/client/node_modules/ember-cli-preprocess-registry/preprocessors.js:171:10)
at Class.preprocessJs (/Users/stevehull/Dev/my-app/client/node_modules/ember-cli/lib/models/addon.js:1172:25) |
@sdhull if you have the cycles to create a minimal scenario for reproducing the error it would help a lot. |
Easy to repro locally:
Then look at your previous tab with
|
awesome, thanks @sdhull |
@sdhull can you confirm your global |
@sdhull okay I've reproduced on This is to pick up ember-cli/broccoli-lint-eslint#115 |
@sdhull if you want to follow along i'm backporting the fix to |
@sdhull backported fix released |
Strange, in our yarn.lock file, we have:
|
My global |
@sdhull it's possible you were experiencing a different issue with similar symptoms. In any case, is the bug present in your project after upgrading? |
On my example Really appreciate your help ❤️ |
Problem doesn't present in a bare app with ember 2.16.2... it must be some combination of our other dependencies 😖 |
OK so it looks like Thanks again @hjdivad 🎉 |
@sdhull awesome glad to hear things are working for you now 👍 Happy hacking! 🎉 |
I'm not sure this is the right module to open this issue against, but recently I started getting
ENOENT: no such file or directory
whenever I delete a file in my Ember app tree whileember serve
is running.For example, if I have a
global-message-service
component, and I run:I then see this:
Deleting the file first instead of the directory also triggers the error. Deleting
tmp/
&dist/
before I start the server seems to have no effect.I can't be sure, but I think the errors started happening when I did a fresh
npm install
of my Ember app recently. Just to verify it's not a bug I recently introduced on my side, I did a git checkout of my code from late September, did a freshnpm install
, and I still see this issue. I seebroccoli-funnel
has updated recently, which is why I decided to open the issue here.Any ideas?
The text was updated successfully, but these errors were encountered: