-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[BUGFIX beta] fail builds in ember-cli when ember-cli-shims isn't met #4057
Conversation
These fail in node because:
This error happens when |
The node tests are generating a new app which is running |
Consumers of ember-data do not care about Ember Data's internal stack trace for this error. You are specifying in the message exactly who is throwing the error. The stack is just needlessly noisey and will drown out the actual message. |
It seems to me that we need more tailored messages. I see at least three scenarios that all seem to deserve their own messaging:
|
In my testing, this dies very fast and the error message and stack are clear to see. It would be useful to have the stack later when people will inevitably open issues for this further down the line. If people choose to debug this themselves, having the stack is very useful. I needed it for Ember Pouch to try to get it to load for this version of Ember Data. I wouldn't have pursued it otherwise.
I agree, seems great. |
@fivetanley - Thanks for working on this. I'm sorry that I didn't think all of this through when I added the warning... |
I may skip the assertion when we're running node tests for now. There's not a way to get in the middle of the test helpers and install the correct version of ember-cli-shims before the test helpers run as far as I can tell. |
d4e24bb
to
dd3f3c6
Compare
dd3f3c6
to
3454fe5
Compare
Once travis comes back green we are good to go. I tested each of the scenarios Rob outlined in a new ember app. |
[BUGFIX beta] fail builds in ember-cli when ember-cli-shims isn't met
fixes #4044
I disagree with @rwjblue that this should be a silent error. I've found this same kind of error to be nice to see which plugin is throwing an error where, in case I need to debug it or a file an issue about it.