Skip to content

Conversation

@jonahwilliams
Copy link
Contributor

Description

Ensures all of the libraries that the application side code import are migrated to null safety. full null safety migration is blocked by json rpc 2 and a breaking change to vm service client.

@flutter-dashboard flutter-dashboard bot added a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels. c: contributor-productivity Team-specific productivity, code health, technical debt. labels Oct 2, 2020
@jonahwilliams jonahwilliams added the a: null-safety Support for Dart's null safety feature label Oct 2, 2020
/// The JSON encoded [DiagnosticsNode] tree requested by the
/// [GetDiagnosticsTree] command.
final Map<String, Object> json;
final Map<String, dynamic> json;
Copy link
Contributor

Choose a reason for hiding this comment

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

Not Object??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The return type of the method on result is defined as:

 /// Serializes this message to a JSON map.
  Map<String, dynamic> toJson();

Copy link
Contributor

Choose a reason for hiding this comment

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

FWIW, I would lean towards moving from dynamic to Object? everywhere rather than the other way around, but that's something we can worry about in another PR.

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

Code looks good, just a question about the 2.11 tags.

// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// @dart = 2.11
Copy link
Member

Choose a reason for hiding this comment

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

Why this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

weird, I had some problems getting vs code to show analysis warnings locally - maybe this isn't necessary?

Copy link
Member

Choose a reason for hiding this comment

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

AFAIK, it shouldn't be necessary since you raised the SDK constraints in the pubspec?

// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// @dart = 2.11
Copy link
Member

Choose a reason for hiding this comment

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

Why this?

await Scrollable.ensureVisible(
target.evaluate().single,
duration: const Duration(milliseconds: 100),
alignment: scrollIntoViewCommand.alignment);
Copy link
Member

Choose a reason for hiding this comment

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

nit: trailing comma and ) on next line.

// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// @dart = 2.11
Copy link
Member

Choose a reason for hiding this comment

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

?

@jonahwilliams
Copy link
Contributor Author

I'm not getting these analyzer warnings locally :(

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM

type_init_formals: false # https://github.com/dart-lang/linter/issues/2192
unrelated_type_equality_checks: false # https://github.com/dart-lang/linter/issues/2196
void_checks: false # https://github.com/dart-lang/linter/issues/2185
unnecessary_null_comparison: false # https://github.com/dart-lang/language/issues/1018 , turned off until https://github.com/flutter/flutter/issues/61042
Copy link
Contributor

Choose a reason for hiding this comment

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

At least that last issue is closed., so these probably need rechecking.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

@jonahwilliams
Copy link
Contributor Author

Looks like the package allowlist is wrong? or missing? I shouldn't need to enable experiment to run these tests

FYI @leafpetersen @pcsosinski

@leafpetersen
Copy link
Contributor

Looks like the package allowlist is wrong? or missing? I shouldn't need to enable experiment to run these tests

@natebosch @jakemac53

@jakemac53
Copy link
Contributor

https://dart-review.googlesource.com/c/sdk/+/165871 landed to add flutter_driver to the allow list earlier today, which needs to roll into flutter/engine and then flutter/flutter from there

@jonahwilliams
Copy link
Contributor Author

This is blocked on a "migration order" lint from g3 due to it depending on material. Is there a way to skip this lint?

@goderbauer
Copy link
Member

This is blocked on a "migration order" lint from g3 due to it depending on material. Is there a way to skip this lint?

We just finished the migration of material. As soon as the last PR rolls into google, you shouldn't need to disable the lint anymore.

@jonahwilliams jonahwilliams merged commit e826442 into flutter:master Oct 6, 2020
@jonahwilliams jonahwilliams deleted the migrate_flutter_driver branch October 6, 2020 17:30
jonahwilliams pushed a commit that referenced this pull request Oct 6, 2020
jonahwilliams pushed a commit that referenced this pull request Oct 6, 2020
@jonahwilliams jonahwilliams restored the migrate_flutter_driver branch October 6, 2020 19:01
jonahwilliams pushed a commit that referenced this pull request Oct 6, 2020
…67441)

Reland: #67155

Fixes analysis error caused by landing of material migration, and g3 error caused by moving of fuchsia lib.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) a: null-safety Support for Dart's null safety feature a: tests "flutter test", flutter_test, or one of our tests c: contributor-productivity Team-specific productivity, code health, technical debt. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants