-
Notifications
You must be signed in to change notification settings - Fork 28
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
Better error reporting #93
Comments
I did end up fixing this problem... although I'm still not entirely sure what did it since I changed so much. But I think the larger issue still stands.. My biggest problem with transfuse is the lack of meaningful context when there is a problem. Even if you could spit out what was under analysis at the time of failure, that would go a long way to improving productivity at midnight on a sunday :) |
Really good idea Dan. We could also add a line specific error report for this case (ErrorType encountered). |
Here's my thoughts on how to attempt to make this better:
Thoughts? |
maybe do what grade does and hide it by default and add "add --showstack to see stacktrace" to the error message. |
yes, that's what I had in mind. |
Here's another example... the only way I know how to track this down is to add a bunch of system.outs to transfuse and use a local version of it... is there a smarter way?
|
I think you have a good idea around at least logging the component being analyzed/generated. Other than that I think better error reporting through the |
Somehow I have a broken build.. here is the stack trace:
There doesn't seem to be an obvious problems in the fragment or its Injected stuff... but this error isn't much to go on. I see in the generated code a reference to
import org.androidtransfuse.Transfuse$$ScopesUtil;
which doesn't seem to have been generated yet... but other than that, I'm not seeing much... Where in this stack could we output some good context that would quickly help get to the bottom of this?The text was updated successfully, but these errors were encountered: