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
file changed templates/application.hbs
EEXIST, file already exists '/Users/fivetwentysix/testapp/tmp/caching-writer-dest-dir_GE6biD.tmp'
Error: EEXIST, file already exists '/Users/fivetwentysix/testapp/tmp/caching-writer-dest-dir_GE6biD.tmp'
at Error (native)
at Object.fs.symlinkSync (fs.js:852:18)
at symlink (/Users/fivetwentysix/testapp/node_modules/ember-cli/node_modules/symlink-or-copy/index.js:82:14)
at Function.symlinkOrCopySync (/Users/fivetwentysix/testapp/node_modules/ember-cli/node_modules/symlink-or-copy/index.js:58:5)
at /Users/fivetwentysix/testapp/node_modules/ember-cli/node_modules/broccoli-sourcemap-concat/node_modules/broccoli-caching-writer/index.js:103:21
at lib$rsvp$$internal$$tryCatch (/Users/fivetwentysix/testapp/node_modules/ember-cli/node_modules/promise-map-series/node_modules/rsvp/dist/rsvp.js:489:16)
at lib$rsvp$$internal$$invokeCallback (/Users/fivetwentysix/testapp/node_modules/ember-cli/node_modules/promise-map-series/node_modules/rsvp/dist/rsvp.js:501:17)
at lib$rsvp$$internal$$publish (/Users/fivetwentysix/testapp/node_modules/ember-cli/node_modules/promise-map-series/node_modules/rsvp/dist/rsvp.js:472:11)
at lib$rsvp$asap$$flush (/Users/fivetwentysix/testapp/node_modules/ember-cli/node_modules/promise-map-series/node_modules/rsvp/dist/rsvp.js:1290:9)
at process._tickCallback (node.js:355:11)
Happens when I save any file with ember serve running.
This happens on a brand new project created with ember-cli-0.1.15
@fivetwentysix aside from stopping the server prior to making changes, have you found any sort of work around for this?
I'm experiencing it too in an unadulterated stock ember app on:
version: 0.2.0-beta.1 node: 0.12.0 npm: 2.1.8
@btecu no outputPaths here. Obviously it's referenced in node_modules/ember-cli/lib/broccoli/ember-app.js but the app i just tested on is a fresh install of ember cli, a newed up app, and no modifications other than rewriting a project file out.
Probably a bad idea, but what I did to get around this problem was editing app/node_modules/ember-cli/node_modules/symlink-or-copy/copy-dereference/index.js and replace fs.writeFileSync(dest, contents, { flag: 'wx', mode: srcStats.mode }) with fs.writeFileSync(dest, contents, { flag: 'w', mode: srcStats.mode })
Hi folks - an hour ago, I did an npm update in my project directory. Immediately afterward, I started noticing the same crashing behaviour after changing a file while serving. Like others here, I suspect this has to do with an upstream dependency completely breaking everything, but I have no idea which one it could be. Would it be useful to share the contents of package.json here?
(For the record, the 'already existing' file is tmp/class-tmp_cache_dir-85EAruZ0.tmp , which is only relevant in that it's also a tmp/... file. The last step in the trace is Object.fs.symlinkSync. Would be happy to share the rest of the trace if it'll help.)
If I knew how to reverse / undo npm update, I'd do it in a heartbeat. I can't even parse the output of the command, it's just a jumble of different dependency trees and conflict warnings. Every time I think "maybe Javascript has finally matured," something like this happens, the whole building topples, and I yearn for a classic, vetted language with a massive standard library.
I'm getting this too. I'm not sure if this works but if you specify "rimraf":"2.2.8" in package.json, it fixes. rimraf 2.3.0 is just released about 7 hours ago from now.
@dopin's suggestion did not work for me. I tried cloning (broken), installing (broken), open old files (worked). Something new in the way that cache files are stored. If I just delete all the cache files with the commonatliy of "caching-writer-dest-dir{otherjunkhere}" then it saved ONCE fine. Next time back to broken.
I also ran into this error while using ember-cli-coffeescript and trying to add ember-simple-auth. The solution was to convert my routes/application.coffee back to JavaScript. For some reason the default application route in ember-simple-auth conflicts with the one written in CoffeeScript.
Reacted by Micky Brunetti, Olle Jonsson, Anastasios Kapetzoglou and simonlennon-advanced
I also ran into this error while using ember-cli-coffeescript and trying to add ember-simple-auth. The solution was to convert my routes/application.coffee back to JavaScript. For some reason the default application route in ember-simple-auth conflicts with the one written in CoffeeScript.
This issue still exists 3 years later, wonder why no one has patched it yet
I stumbled on the same error while doing some project restructuring and in my case it was caused by moving component files out of the /app/components and /app/templates/components directories and into the pods structure without changing the file names to component.js and template.hbs respectively.
For example, create a directory /app/pods/components/my-component and move or create the files my-component.js and my-component.hbs and you will see the error thrown on build.
It took a minute to realize the oversight so hopefully this might save others some time.
Activity
btecu commentedon Mar 4, 2015
Any of you using
outputPaths?#3365
wstrinz commentedon Mar 4, 2015
I'm getting this too, tried with multiple versions of ember-cli. Not using
outputPathsas far as I know, just a plain oldember new myapp.mariozig commentedon Mar 4, 2015
@fivetwentysix aside from stopping the server prior to making changes, have you found any sort of work around for this?
I'm experiencing it too in an unadulterated stock ember app on:
version: 0.2.0-beta.1node: 0.12.0npm: 2.1.8@btecu no
outputPathshere. Obviously it's referenced innode_modules/ember-cli/lib/broccoli/ember-app.jsbut the app i just tested on is a fresh install of ember cli, a newed up app, and no modifications other than rewriting a project file out.TimothyGu commentedon Mar 4, 2015
See also http://stackoverflow.com/questions/28846170/ember-cli-crash-on-rebuild-after-clean-install-what-am-i-doing-wrong
btecu commentedon Mar 4, 2015
Probably a bad idea, but what I did to get around this problem was editing
app/node_modules/ember-cli/node_modules/symlink-or-copy/copy-dereference/index.jsand replacefs.writeFileSync(dest, contents, { flag: 'wx', mode: srcStats.mode })withfs.writeFileSync(dest, contents, { flag: 'w', mode: srcStats.mode })Restart
ember serverafterwards...bobbyhubbard commentedon Mar 4, 2015
Same issue here. See broccolijs/node-symlink-or-copy#4
mariozig commentedon Mar 4, 2015
@bobbyhubbard are you sure it's the same bug? nodejs/node-v0.x-archive#8651 says it was fixed in
node: 0.12.0and i'm definitely seeing it with that version.stickbyatlas commentedon Mar 4, 2015
Hi folks - an hour ago, I did an npm update in my project directory. Immediately afterward, I started noticing the same crashing behaviour after changing a file while serving. Like others here, I suspect this has to do with an upstream dependency completely breaking everything, but I have no idea which one it could be. Would it be useful to share the contents of package.json here?
(For the record, the 'already existing' file is tmp/class-tmp_cache_dir-85EAruZ0.tmp , which is only relevant in that it's also a tmp/... file. The last step in the trace is Object.fs.symlinkSync. Would be happy to share the rest of the trace if it'll help.)
fivetwentysix commentedon Mar 4, 2015
This is why npm needs something similar to gemfile.lock
stickbyatlas commentedon Mar 4, 2015
If I knew how to reverse / undo
npm update, I'd do it in a heartbeat. I can't even parse the output of the command, it's just a jumble of different dependency trees and conflict warnings. Every time I think "maybe Javascript has finally matured," something like this happens, the whole building topples, and I yearn for a classic, vetted language with a massive standard library.dopin commentedon Mar 4, 2015
I'm getting this too. I'm not sure if this works but if you specify
"rimraf":"2.2.8"in package.json, it fixes.rimraf 2.3.0 is just released about 7 hours ago from now.
JohnRodney commentedon Mar 4, 2015
@dopin's suggestion did not work for me. I tried cloning (broken), installing (broken), open old files (worked). Something new in the way that cache files are stored. If I just delete all the cache files with the commonatliy of "caching-writer-dest-dir{otherjunkhere}" then it saved ONCE fine. Next time back to broken.
fotinakis commentedon Mar 4, 2015
Hitting this too just in the last few hours, yikes yikes...
131 remaining items
erichaus commentedon Mar 13, 2016
@sulphur I'm running into this issue and I think it has to do with ember-cli-coffeescript...
myapp/routes/application.js does not exists only myapp/routes/application.coffee
any ideas?
sulphur commentedon Mar 13, 2016
maybe try to remove your
tmpdir etc.andrewhavens commentedon Apr 13, 2016
I also ran into this error while using
ember-cli-coffeescriptand trying to addember-simple-auth. The solution was to convert myroutes/application.coffeeback to JavaScript. For some reason the default application route inember-simple-authconflicts with the one written in CoffeeScript.UI Fixes - update packages to fix "File Exists" issue
rebase-master commentedon Feb 1, 2017
I encountered the same error when I put the file name in gulp.dest()
Removing style.css from
gulp.dest( outputDir + 'css/style.css')fixed it for me. Not sure if rimraf has anything to do with this.CARNET-4; Fix broken symlink handling; <cargo>Fix broken symlink hand…
CARNET-1; Fix broken symlink handling; <cargo>Fix broken symlink hand…
CARNET-2; Fix broken symlink handling; <cargo>Fix broken symlink hand…
CARNET-6; Fix broken symlink handling; <cargo>Fix broken symlink hand…
CARNET-5; Fix broken symlink handling; <cargo>Fix broken symlink hand…
CARNET-4; Fix broken symlink handling; <cargo>Fix broken symlink hand…
CARNET-5; Fix broken symlink handling; <cargo>Fix broken symlink hand…
CARNET-3; Fix broken symlink handling; <cargo>Fix broken symlink hand…
simonlennon-advanced commentedon Aug 16, 2020
This issue still exists 3 years later, wonder why no one has patched it yet
zofskeez commentedon Sep 4, 2020
I stumbled on the same error while doing some project restructuring and in my case it was caused by moving component files out of the
/app/componentsand/app/templates/componentsdirectories and into the pods structure without changing the file names tocomponent.jsandtemplate.hbsrespectively.For example, create a directory
/app/pods/components/my-componentand move or create the filesmy-component.jsandmy-component.hbsand you will see the error thrown on build.It took a minute to realize the oversight so hopefully this might save others some time.