Skip to content

dds package should migrate to null safety #45756

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
jmagman opened this issue Apr 19, 2021 · 9 comments
Closed

dds package should migrate to null safety #45756

jmagman opened this issue Apr 19, 2021 · 9 comments
Assignees
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. pkg-dds For issues related to the Dart Development Service

Comments

@jmagman
Copy link

jmagman commented Apr 19, 2021

dds 1.7.6 is not null safe:

// @dart=2.10

This is preventing the flutter_tool from migrating its size analyzer library to null safety.
https://github.com/flutter/flutter/blob/6b3093b6afd6a47e57c07f7e3f701d5e97073fc8/packages/flutter_tools/lib/src/base/dds.dart#L9

\cc @bkonyi

@bkonyi
Copy link
Contributor

bkonyi commented Apr 20, 2021

Thanks for formally filing an issue for this. How urgently does this need to be migrated? It's on my radar, but I have a fairly involved DDS change in-flight right now which may take some time to land so I won't be able to get started on migration until that's done.

@bkonyi bkonyi added the pkg-dds For issues related to the Dart Development Service label Apr 20, 2021
@jmagman
Copy link
Author

jmagman commented Apr 21, 2021

Thanks for formally filing an issue for this. How urgently does this need to be migrated?

Not too urgent, though it is I believe the last unsafe package the tool depends on.

It's on my radar, but I have a fairly involved DDS change in-flight right now which may take some time to land so I won't be able to get started on migration until that's done.

Any idea of a general ETA for when that would be done? Are we talking weeks, months..?

@bkonyi
Copy link
Contributor

bkonyi commented Apr 21, 2021

This is the change in question that needs to land. It's quite large and is going through initial review, so hopefully it'll land in the next week or so. I'd say mid-May would be a conservative estimate.

@mkustermann mkustermann added the area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. label Apr 28, 2021
@bkonyi
Copy link
Contributor

bkonyi commented May 5, 2021

@jmagman I've got a local version of DDS migrated but there's currently two packages that DDS depends on that haven't been migrated yet (package:devtools_shared and package:sse). Are you aiming to enable strong null safety at this point?

@jmagman
Copy link
Author

jmagman commented May 5, 2021

package:devtools_shared and package:sse

(Note to self: flutter/devtools#2978 and dart-lang/tools#1645)

@bkonyi Would like to in the tool within the next few months. dds isn't currently the bottleneck, but I believe it is the last imported dependency that isn't null safe (though the tests also use a null unsafe version of mockito).

@bkonyi
Copy link
Contributor

bkonyi commented May 6, 2021

Okay, that's totally doable. I think I can have something published by end of next week, assuming the tree closures get resolved this week.

@bkonyi bkonyi reopened this May 14, 2021
@bkonyi
Copy link
Contributor

bkonyi commented May 14, 2021

Reopening for now until 2.0.0 is published.

@bkonyi bkonyi reopened this May 17, 2021
@bkonyi
Copy link
Contributor

bkonyi commented May 25, 2021

This seems to have rolled through into google3, so I've gone ahead and published as 2.0.0.

@jmagman
Copy link
Author

jmagman commented May 25, 2021

This seems to have rolled through into google3, so I've gone ahead and published as 2.0.0.

Thanks!

On to the next... dart-lang/webdev#1327. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. pkg-dds For issues related to the Dart Development Service
Projects
None yet
Development

No branches or pull requests

3 participants