Skip to content

compile [exe|aot-snapshot] with --no-sound-null-safety does not work when the Dart VM is switched to sound null safety by default #50101

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

Closed
Tracked by #50093
a-siva opened this issue Sep 30, 2022 · 1 comment
Labels
area-dart-cli Use area-dart-cli for issues related to the 'dart' command like tool.

Comments

@a-siva
Copy link
Contributor

a-siva commented Sep 30, 2022

The compile [exe|aot-snapshot] commands appear to rely on the automatic detection of null safety from the kernel file as a result when the Dart VM is switched to sound null safety by default these commands do not work when used with --no-sound-null-safety

dart compile exe --no-sound-null-safety hello.dart

would fail

@a-siva a-siva added the area-dart-cli Use area-dart-cli for issues related to the 'dart' command like tool. label Sep 30, 2022
@a-siva a-siva added this to the Dart 3 alpha milestone Sep 30, 2022
@a-siva
Copy link
Contributor Author

a-siva commented Oct 19, 2022

This now works when we retain the ability to detect the null safety mode from the AOT snapshot or the kernel file.

@a-siva a-siva closed this as completed Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-dart-cli Use area-dart-cli for issues related to the 'dart' command like tool.
Projects
None yet
Development

No branches or pull requests

1 participant