-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
The compiler crashed: NoSuchMethodError: The getter 'boxedVariables' was called on null #48776
Comments
@peerwaya Can you provide a code sample which reproduces the issue? |
Indeed, this looks very similar to #47916. The fix for that other issue landed in 5090974, which is supposed to be included in 2.18.0-7.0.dev The error location above points at
@peerwaya - is your code using BigInts? Do you also use constructor-tear offs. Maybe you can share some snippets using those? |
@peerwaya - no worries, I was able to reproduce this now locally. Here is a minimal repro: main() {
BigInt.from;
} @johnniwinther - I'm reassigning this to the CFE since it appears to be a kernel issue like the previous one. It is related, but I'm not quite sure what triggers it in this case. Could it be the fact that the target is external and later patched? I thought at first it could be a modularity issue, but the issue is still present if I compile both the SDK and the user code together in dart2js (commenting out when we load the platform.dill file) |
A fix is the pipeline: https://dart-review.googlesource.com/c/sdk/+/242284 |
@peerwaya - since you are in the master channel, this will likely be out in a release very soon (a matter of days). That said, if you want to workaround the issue, you only need to remove the use of tear-offs for constructors in classes defined in the dart SDK. For example, replace |
Thanks for the update. Well done! |
Run flutter build web --target lib/main.dart on my internal project, and the compiler crashes. This looks similar #47916
Log:
The text was updated successfully, but these errors were encountered: