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

Conversation

@vsmenon
Copy link
Contributor

@vsmenon vsmenon commented Nov 19, 2020

Remove Dart language version opt-out for dart:ui files.

This is already ignored on a build for dart:ui, so it shouldn't change any behavior. The opt-out appears to be confusing pub analysis though. @sigurdm @mit-mit

@google-cla google-cla bot added the cla: yes label Nov 19, 2020
@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.

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

@vsmenon vsmenon requested a review from zanderso November 19, 2020 14:00
@zanderso
Copy link
Member

It looks like this change is causing window_hooks_integration_test.dart to fail to compile to kernel. The failing command is:

/b/s/w/ir/cache/builder/src/out/host_debug_unopt/dart-sdk/bin/dart \
/b/s/w/ir/cache/builder/src/out/host_debug_unopt/gen/frontend_server.dart.snapshot \
--enable-experiment=non-nullable \
--no-sound-null-safety \
--sdk-root /b/s/w/ir/cache/builder/src/out/host_debug_unopt/flutter_patched_sdk \
--incremental \
--target=flutter \
--packages /b/s/w/ir/cache/builder/src/flutter/testing/dart/.packages \
--output-dill /b/s/w/ir/cache/builder/src/out/window_hooks_integration_test.dart.kernel.dill \
/b/s/w/ir/cache/builder/src/flutter/testing/dart/window_hooks_integration_test.dart

Unfortunately, the logs don't have stderr from the command so it will need to be debugged locally.

@vsmenon
Copy link
Contributor Author

vsmenon commented Nov 19, 2020

Thanks, @zanderso - it looks like my out/paragraph_test.dart.kernel.dill is out of date. Do you know what step rebuilds that?

@zanderso
Copy link
Member

In an engine checkout, flutter/testing/run_tests.py will compile all the Dart language tests and run them. This step is failing for window_hooks_integration_test.dart https://github.com/flutter/engine/blob/master/testing/run_tests.py#L177

@vsmenon
Copy link
Contributor Author

vsmenon commented Nov 19, 2020

PTAL

I had to bump window_hooks_integration_test.dart up to 2.12 as well since that pulls in dart:ui files as parts for testing. I also had to add explicit // @dart = 2.12 annotations - the pattern of reaching into ../../lib/ui from the test file seems to confuse the Dart CFE as far as language versioning. I think @ferhatb had to do similar with the web_ui files.

@vsmenon vsmenon merged commit 550c750 into flutter:master Nov 20, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 20, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 20, 2020
jason-simmons pushed a commit to flutter/flutter that referenced this pull request Nov 24, 2020
* 53fc019 Split AOT Android Embedder and shell (flutter/engine#22179)

* fc55814 Implement Scene.toImage() in CanvasKit mode. (flutter/engine#22085)

* c45e02a Roll Dart SDK from 12fded61a2bc to a06d469024fd (1 revision) (flutter/engine#22623)

* 550c750 Remove opt outs for dart:ui (flutter/engine#22603)

* f2803ac [fuchsia] shader warmup fixes (flutter/engine#22439)

* ce94c4e Roll Dart SDK from a06d469024fd to b8fea79a2549 (1 revision) (flutter/engine#22630)

* 76b6acb Roll Fuchsia Linux SDK from aAb3NJv_h... to X1ue-JZsc... (flutter/engine#22631)

* 976e887 Roll Skia from ed289e777cfa to 9dce4d081f8a (3 revisions) (flutter/engine#22632)

* 885bd65 Roll Fuchsia Mac SDK from DQpWjEN59... to wGZWtwuY4... (flutter/engine#22633)

* 8971b82 Roll Dart SDK from b8fea79a2549 to 861ebcb175b6 (1 revision) (flutter/engine#22634)

* a09cdfd Roll Skia from 9dce4d081f8a to 8c5889937172 (1 revision) (flutter/engine#22635)

* a9f332c Roll Dart SDK from 861ebcb175b6 to 1adf3d5fa9d0 (1 revision) (flutter/engine#22636)

* 1bf5c8b [web] Implement tilemode for gradient shaders. (flutter/engine#22597)

* 97cacfb Add more runtime intrinsic symbols to the export checker script (flutter/engine#22641)
chaselatta pushed a commit to chaselatta/engine that referenced this pull request Nov 30, 2020
* Remove null safety opt outs for dart:ui
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants