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

Nasty broccoli fix to make it more stable on windows #493

Merged
merged 1 commit into from Apr 28, 2014

Conversation

MajorBreakfast
Copy link
Contributor

@ebryn requested that I upload this super hacky broccoli fix for windows

How it works:
Instead of crashing on various file errors, it uses the async rimraf to remove the problematic file and rebuilds again (and again) until the build succeeds.

@stefanpenner
Copy link
Contributor

@MajorBreakfast can we lock to a known tag, I don't want to introduce instability as you iterate

@MajorBreakfast
Copy link
Contributor Author

@stefanpenner I really don't want to iterate on that. It's a stupid fix which Jo could merge as an interim solution into broccoli. It doesn't address the actual problem, it just makes it disappear a bit.

@stefanpenner
Copy link
Contributor

lets still tag it to a version v0.0.1 or sha or something

@rwjblue
Copy link
Member

rwjblue commented Apr 28, 2014

I am STRONGLY in favor of not changing this. If the problem is in the Watcher, just use our own watcher. It is completely pluggable. We are instantiating manually anyways (in the build, server, and test --server commands).

@MajorBreakfast
Copy link
Contributor Author

@rjackson That's a good idea :)

@rwjblue
Copy link
Member

rwjblue commented Apr 28, 2014

I have already localized all of the instantiation of the Watcher in https://github.com/stefanpenner/ember-cli/blob/master/lib/utilities/build-watcher.js. Make that file instantiate a custom class, and done. No need to fork or maintain a long running divergent branches or anything.

@stefanpenner
Copy link
Contributor

can you add a changelog entry, and a quick inline comment so source readers know the context and the origin of the solution

@@ -28,3 +31,52 @@ module.exports = function(options) {

return watcher;
};

function Watcher(builder) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we put the watcher in its own file?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a model to me.....

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have to rethink the file structure in another PR. utilities/ seems the wrong folder for these files in the first place.

MajorBreakfast added a commit that referenced this pull request Apr 28, 2014
Nasty broccoli fix to make it more stable on windows
@MajorBreakfast MajorBreakfast merged commit 6081a69 into master Apr 28, 2014
@rwjblue rwjblue deleted the broccoli-fix branch April 28, 2014 21:44
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

Successfully merging this pull request may close these issues.

None yet

3 participants