Closed jfelchner closed 1 year ago
https://github.com/broccolijs/broccoli#errors is some related docs, but more detailed work is happening here: https://github.com/broccolijs/broccoli/blob/06438d912ffedd1cf236337569ceae49e9c9e29d/lib/builder.js#L279-L373
and more specifically: https://github.com/broccolijs/broccoli/blob/06438d912ffedd1cf236337569ceae49e9c9e29d/lib/builder.js#L356-L372
cc @joliss
Big :+1: on getting a richer Broccoli error object, and using it to produce better error pages.
We can evolve the Broccoli error API without breakage by adding feature flags to Broccoli's node API and converting old error objects into new error objects and vice versa. (@rwjblue has done this before as well.)
The current structure of Broccoli errors is defined in builder.js:378. The file/treeDir/line/column structure is very rudimentary indeed, and we could clearly extend it as suggested by @jfelchner.
Closing as stale. Big changes are coming to CLI's pipeline which the current discussion won't suit. Thank you for all the effforts!
One of my major OSS initiatives in 2018 is going to be to improve error messages throughout Ember in order to make our lives as developers easier. One of the lowest hanging fruit in regards to improving errors involves the error page that is shown when a build error happens.
The purpose of this issue is to document all of the work that is required to get the error page to the state we think as a community that should be the end result. I'll edit this description as requirements change.
There will likely be other error improvements that will fall out of this work at which time I'll create a new issue for those improvements.
Error Structure
Note: This list is what we expect to need from the error object for all of its various use cases.
EmberCLI
Broccoli Only
Examples