-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Macro does not give details when run in command line. #55610
Comments
@johnniwinther are we getting any diagnostics at all for macros reported yet from the CFE? |
We should report both crashes and errors, maybe a bit crudely at the moment. |
@davidmorgan What is the status of the Flutter integration for macro support? |
It should work everywhere at this point, although we don't have test coverage. That error comes from |
We do print these but the implementation is likely not air tight. |
In response to #55610 Change-Id: I8730a84ca44d85463b7de41112d520588ef86848 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/365601 Reviewed-by: Morgan :) <davidmorgan@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
I've landed https://dart-review.googlesource.com/c/sdk/+/365601 which adds the context messages to the output. In case of a crash the context message is the stack trace. |
Thank you! Is there an easy way to detect if the change reached flutter muster or is still on the way? |
It's still on the way. The fix is in |
I checked the latest flutter and got interesting issue. I have my macro code wrapped in try catch, and print custom error.
To repro:
My flutter version:
|
Are you emitting this as an error diagnostic, just calling |
code is here: https://github.com/polina-c/disposable_macro/blob/main/macro/lib/src/disposable_macro.dart Should it be done differently? |
Ah, yes, I think that a You can throw instead, which we will convert to an error, or you can use the |
Steps to repro:
on below
@disposable()`flutter test --enable-experiment=macros test/disposable_test.dart
The text was updated successfully, but these errors were encountered: