Skip to content
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

import 'dart:cli' breaks on Dart 3.4+ #50

Closed
gmpassos opened this issue Jun 16, 2024 · 3 comments
Closed

import 'dart:cli' breaks on Dart 3.4+ #50

gmpassos opened this issue Jun 16, 2024 · 3 comments
Assignees

Comments

@gmpassos
Copy link

gmpassos commented Jun 16, 2024

... totally unnecessary to use dart:cli for that:

final packageUri = cli.waitFor(packageUriFuture,

@sethloco
Copy link
Collaborator

Thanks for reporting. I will review this week how to replace waitFor()

@sethloco sethloco self-assigned this Jun 16, 2024
@gmpassos
Copy link
Author

The biggest problem here is that it's used in constructors, and a substitute will return a Future and require an await, which can't be used in a constructor. You will need to change the calling point to outside the constructors.

@sethloco
Copy link
Collaborator

This has been fixed in v2.0.12 which is up in pub.dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants