Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@a-siva
Copy link
Contributor

@a-siva a-siva commented Dec 6, 2022

@zanderso
Copy link
Member

zanderso commented Dec 6, 2022

Looks like the dependency on package:quiver needs to be updated. google/quiver-dart@c855b10 is 3.1.0 and has been migrated to null-safety.

@zanderso
Copy link
Member

zanderso commented Dec 6, 2022

Unfortunately, it also looks like the generated FIDL bindings are not ready for sound null-safety? It might be simpler to pass --no-sound-null-safety to the VM in the flutter_runner and/or dart_runner. I'm not sure where to do that, but maybe it's here? https://github.com/flutter/engine/blob/main/shell/platform/fuchsia/flutter/component_v1.cc#L426

cc @akbiggs for advice.

settings_.dart_flags = {};

// Run in unsound null safe mode as the code does not seem to be reacy.
settings_.dart_flags.push_back("--no-sound-null-safety");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know whether this also needs to go in https://github.com/flutter/engine/blob/main/shell/platform/fuchsia/flutter/component_v2.cc#L489. I was hoping to get some help from the Fuchsia team on that. But if the presubmits are green, I think we can go ahead with this as-is, and follow-up with them after.

@zanderso zanderso requested a review from akbiggs December 6, 2022 22:19
@a-siva
Copy link
Contributor Author

a-siva commented Dec 6, 2022

Let me update the version of Dart now and see if the tests succeed.

@akbiggs
Copy link
Contributor

akbiggs commented Dec 6, 2022

@a-siva a-siva changed the title Remove uses of --no-sound-null-safety in preparation for the Dart 3.0 roll Roll Dart SDK from 35a9facce191 to e517487c5679 (Dart 3.0) Dec 6, 2022
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@a-siva a-siva merged commit 8d83b98 into flutter:main Dec 7, 2022
@a-siva a-siva deleted the roll-dart30 branch December 7, 2022 04:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants