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

broccoli-funnel update 0.2.12 breaks build #251

Closed
medokin opened this issue Nov 3, 2015 · 18 comments
Closed

broccoli-funnel update 0.2.12 breaks build #251

medokin opened this issue Nov 3, 2015 · 18 comments

Comments

@medokin
Copy link
Contributor

medokin commented Nov 3, 2015

It seems like the broccoli-funnel update to 0.2.12 broke something.
Everythink works fine if I set broccoli-funnel to =<0.2.10

Steps to reproduce:

> ember new intl-test
> cd intl-test
> ember install ember-intl@2.0.0-rc.4 // actually it does not matter which version you take
> ember s


version: 1.13.8
Livereload server on http://localhost:49156
Serving on http://localhost:4200/
ENOENT: no such file or directory, mkdir 'c:\dev\ember\intl-test\tmp\funnel-outp
ut_path-Y4uJi6u4.tmp\assets\intl'
Error: ENOENT: no such file or directory, mkdir 'c:\dev\ember\intl-test\tmp\funn
el-output_path-Y4uJi6u4.tmp\assets\intl'
    at Error (native)
    at Object.fs.mkdirSync (fs.js:799:18)
    at Funnel.applyPatch [as _applyPatch] (c:\dev\ember\intl-test\node_modules\e
mber-intl\node_modules\broccoli-funnel\index.js:287:10)
    at Funnel.<anonymous> (c:\dev\ember\intl-test\node_modules\ember-intl\node_m
odules\broccoli-funnel\index.js:246:10)
    at Array.forEach (native)
    at Funnel.processFilters (c:\dev\ember\intl-test\node_modules\ember-intl\nod
e_modules\broccoli-funnel\index.js:245:9)
    at Funnel.build (c:\dev\ember\intl-test\node_modules\ember-intl\node_modules
\broccoli-funnel\index.js:167:10)
    at c:\dev\ember\intl-test\node_modules\ember-intl\node_modules\broccoli-funn
el\node_modules\broccoli-plugin\read_compat.js:61:34
    at lib$rsvp$$internal$$tryCatch (c:\dev\ember\intl-test\node_modules\ember-i
ntl\node_modules\broccoli-funnel\node_modules\broccoli-plugin\node_modules\promi
se-map-series\node_modules\rsvp\dist\rsvp.js:493:16)
    at lib$rsvp$$internal$$invokeCallback (c:\dev\ember\intl-test\node_modules\e
mber-intl\node_modules\broccoli-funnel\node_modules\broccoli-plugin\node_modules
\promise-map-series\node_modules\rsvp\dist\rsvp.js:505:17)
@medokin medokin changed the title Ember build fails - Funnel Error Ember build fails after new broccoli-funnel Release Nov 3, 2015
@medokin medokin changed the title Ember build fails after new broccoli-funnel Release broccoli-funnel update to 0.2.12 breaks build Nov 3, 2015
@medokin medokin changed the title broccoli-funnel update to 0.2.12 breaks build broccoli-funnel update 0.2.12 breaks build Nov 3, 2015
@rwjblue
Copy link
Contributor

rwjblue commented Nov 3, 2015

ember-intl is using Funnel to move a set of input files to assets/intl here. The error is originating from https://github.com/broccolijs/broccoli-funnel/blob/master/index.js#L287.

I am not super familiar with fs-tree-diff (or the new refactor to use it) yet, but a complete guess is that calling fs.mkdirSync (as opposed to mkdir -p) isn't accounting for parent directories that do not exist yet?

@stefanpenner - Any ideas on this?

@stefanpenner
Copy link
Collaborator

let me try on posix, otherwise i'll need to debug on some windows machine.

@stefanpenner
Copy link
Collaborator

Unfortunately unable to reproduce on OSX.

I am not super familiar with fs-tree-diff (or the new refactor to use it) yet, but a complete guess is that calling fs.mkdirSync (as opposed to mkdir -p) isn't accounting for parent directories that do not exist yet?

no fs-tree-diff takes this into account (or should be) but i noticed the test suite does not explicity test this so I opened an issue and will investigate later today stefanpenner/fs-tree-diff#9

@mdehoog is your CLI running with or without symlinks enabled? relevant docs

@kellyselden as you are my go-to windows guy, do you have free cycles to take look?

@mm2ha
Copy link

mm2ha commented Nov 3, 2015

@stefanpenner I have the same exact error. I have moved my application to a new machine (Windows) and started to get this build error.

I have installed the ember cli windows addon, but unfortunately that did not help and the same error persists.

My colleagues were not getting this error a few weeks ago (on Windows as well) with Node v0.12.7, if that helps. But another one of my colleagues is getting the same error now with Node v4.2.1 (but on a new machine as well).

I have tried to switch back to node v0.12.7, but the result was the same error. If I remove ember-intl dependency from my project, everything builds ok.

Please let me know if there is anything I can do to help you debug this issue.

@kellyselden
Copy link

@stefanpenner I'm in training this week. If not resolved by the weekend, I can dig in.

@stefanpenner
Copy link
Collaborator

Please let me know if there is anything I can do to help you debug this issue.

i'll need to dig up a windows machine at work, or will have to look in detail tomorrow night (i have a machine at home, but will be speaking at an event tonight)

@srsgores
Copy link

srsgores commented Nov 4, 2015

Yeah, also getting this on Windows. Would like to see a solution at some point, as we only have Windows machines in the office. I guess Docker will have to do for now?

@stefanpenner
Copy link
Collaborator

@srsgores we will get it sorted out in the next day or so. I'll head home earlier today to use my windows machine before my evening plans.

For some reason getting a windows machine/vm at work is annoying, but i'l keep at it.

@stefanpenner
Copy link
Collaborator

i made some notes here: broccolijs/broccoli-funnel#53

Im going to work from home today, as I have a nice windows rig here. I hope to address this issue upstream by the end of the day.

@stefanpenner
Copy link
Collaborator

I still need to test on windows (don't have one handy at work), but I believe joliss/node-walk-sync#19 should address (or improve the situation)

npm ls walk-sync
> 0.2.6 // <-- be sure to have 0.2.7 or greater as walk-sync

@norcino
Copy link

norcino commented Nov 12, 2015

@stefanpenner the latest version is 0.2.6 so how could I have the 0.2.7? (https://github.com/joliss/node-walk-sync)
I still have the CI environment down, it's now 4 days and two dev machines broken.
Do you have any working solution you can suggest me?
My only option right now is to get rid of ember-intl.

@jasonmit
Copy link
Member

@manuelsalvatori looks like he meant 0.2.6

@norcino
Copy link

norcino commented Nov 13, 2015

@jasonmit thanks, I guessed that but it means that it doesn't fix the problem.
I had to remove ember-intl, it's a shame but I could not find any other solution.

@CrshOverride
Copy link

@manuelsalvatori We're currently developing our application inside a Vagrant Virtual Machine that runs Linux inside of Windows. By building inside the Linux VM, we work around the issue w/ building on Windows. It's less than ideal, but works.

@stefanpenner If there's anything specific you want tested on Windows, let me know. While we have working development machines, our build server is still running Windows so we're unable to build at the moment.

@jasonmit
Copy link
Member

@CrshOverride please try rc5. I cannot validate the changes since I don't have a windows VM setup, but I've removed the use of path.join where interfacing with broccoli.

@stefanpenner
Copy link
Collaborator

@CrshOverride can you provide an isolate example app demonstrating the issue, i can look tonight.

@CrshOverride
Copy link

@jasonmit @stefanpenner It looks like the change introduced in rc5 took care of the issue. Our build is succeeding once again.

@jasonmit
Copy link
Member

Excellent, thank you. Closing the issue.

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

9 participants