Skip to content
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

Windows: EPERM #11

Closed
MajorBreakfast opened this issue Feb 15, 2014 · 4 comments
Closed

Windows: EPERM #11

MajorBreakfast opened this issue Feb 15, 2014 · 4 comments

Comments

@MajorBreakfast
Copy link

Since windows is currently officially unsupported this isn't really a bug, but I still want to bring it up. This is what you currently get if you use broccoli on windows:

EPERM, operation not permitted 'C:\Users\Josef\Desktop\broccoli-sample-app\tmp\merged_tree-tmp_dest_dir-4gkuvKyb.tmp\index.html'

The first build runs through without problems. This problem occurs at rebuilding. More information is here:

nodejs/node-v0.x-archive#6599 (comment)

@joliss
Copy link
Member

joliss commented Feb 15, 2014

Weird, I don't know where we might be opening a stream. Can you paste a stack trace?

I think we'll want to have a test suite eventually, so that it'll become easier to pin down cross-platform compatibility issues. We'll see.

@joliss
Copy link
Member

joliss commented Feb 15, 2014

(Also, I'm surprised the initial build doesn't fail due to hard-linking.)

@MajorBreakfast
Copy link
Author

Error: ENOTEMPTY, directory not empty 'C:\Users\Josef\Desktop\broccoli-sample-app\tmp\merged_tree-tmp_dest_dir-38hSvvZh.tmp'
    at Object.fs.rmdirSync (fs.js:612:18)
    at rmkidsSync (C:\Users\Josef\Desktop\broccoli-sample-app\node_modules\broccoli\node_modules\quick-temp\node_modules\rimraf\rimraf.js:177:6)
    at rmdirSync (C:\Users\Josef\Desktop\broccoli-sample-app\node_modules\broccoli\node_modules\quick-temp\node_modules\rimraf\rimraf.js:169:7)
    at fixWinEPERMSync (C:\Users\Josef\Desktop\broccoli-sample-app\node_modules\broccoli\node_modules\quick-temp\node_modules\rimraf\rimraf.js:103:5)
    at Function.rimrafSync [as sync] (C:\Users\Josef\Desktop\broccoli-sample-app\node_modules\broccoli\node_modules\quick-temp\node_modules\rimraf\rimraf.js:153:26)
    at remove (C:\Users\Josef\Desktop\broccoli-sample-app\node_modules\broccoli\node_modules\quick-temp\index.js:26:12)
    at Object.makeOrRemake (C:\Users\Josef\Desktop\broccoli-sample-app\node_modules\broccoli\node_modules\quick-temp\index.js:10:5)
    at MergedTree.read (C:\Users\Josef\Desktop\broccoli-sample-app\node_modules\broccoli\lib\merged_tree.js:15:13)
    at readTree (C:\Users\Josef\Desktop\broccoli-sample-app\node_modules\broccoli\lib\builder.js:37:50)
    at C:\Users\Josef\Desktop\broccoli-sample-app\node_modules\broccoli\lib\builder.js:52:37
    at invokeCallback (C:\Users\Josef\Desktop\broccoli-sample-app\node_modules\broccoli\node_modules\rsvp\dist\commonjs\rsvp\promise.js:228:21)
    at publish (C:\Users\Josef\Desktop\broccoli-sample-app\node_modules\broccoli\node_modules\rsvp\dist\commonjs\rsvp\promise.js:176:9)
    at publishFulfillment (C:\Users\Josef\Desktop\broccoli-sample-app\node_modules\broccoli\node_modules\rsvp\dist\commonjs\rsvp\promise.js:312:5)
    at flush (C:\Users\Josef\Desktop\broccoli-sample-app\node_modules\broccoli\node_modules\rsvp\dist\commonjs\rsvp\asap.js:41:9)
    at process._tickDomainCallback (node.js:459:13)

First build is successfull, although it says "Built" twice. The server runs and I can play with the ember app. I can even make changes and it rebuilds successfully. However saving the same file multiple times in a row lets it crash.

@joliss
Copy link
Member

joliss commented Feb 25, 2014

Let's fold this into #39.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants