-
Notifications
You must be signed in to change notification settings - Fork 229
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
Implement --preview-dart-2
option for pub run
#1807
Comments
From @kevmoo on February 20, 2018 17:33 Related to dart-lang/sdk#32188 |
I'd love to add this, but we need support from the isolate library first. I've filed dart-lang/sdk#32253 to track that. |
Could we have an API to ask pub for the entrypoint rather than have it run it itself? That way we could do something like |
We could, but that invocation wouldn't just work. The entrypoint is likely to be somewhere that automated package resolution won't work, so you'd have to run something more like |
I'd be super happy to have that option, even outside of the |
@natebosch Maybe we should discuss this on another issue? I'd be interested in hearing your use-cases. |
Discussed with @a-siva, and it sounds like if pub were made to be Dart 2 compliant, then dart-lang/sdk#32253 wouldn't be needed, because pub could start in Dart 2, in which case all of its spawned isolates would start in Dart 2 as well. If this is correct, I'm surprised that pub isn't already Dart 2 compliant, with all the work that we've been asking of our ecosystem to migrate to Dart 2 compatibility. /cc @leafpetersen |
Dart 2 compliance for pub is blocked on Dart 2 compliance for dart2js and for the analyzer. |
After #1857 – it'd just be analyzer, right? |
In fairness, most folks have been too busy helping the ecosystem migrate, but yes, it's more than a little embarrassing that we haven't migrated all of our own code yet. :} |
Just a related question: I have Dart v1 installed on my system and |
@stevenroose I have the same question, I seem to remember pub using whatever the edit: this is only for the reflectable package. See the comment below. |
The |
To be clear, though, just running with a Dart VM from a 2.0.0-dev SDK doesn't give you full Dart 2 semantics. By default, you'll still be running in Dart 1 mode unless you pass the |
I does work (a bit) w/ SDK @ HEAD. Enough to run pub get, pub run test, etc
…On Sat, May 19, 2018 at 6:25 AM Natalie Weizenbaum ***@***.***> wrote:
To be clear, though, just running with a Dart VM from a 2.0.0-dev SDK
doesn't give you full Dart 2 semantics. By default, you'll still be running
in Dart 1 mode unless you pass the --preview-dart-2 option to the VM,
which currently doesn't work for pub.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1807 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AABCivujnP8j8FKmWxs0vZg0wtGRTtEKks5t0B1dgaJpZM4SM26l>
.
|
Has this landed (in an externally released SDK)? > pub run -h
Run an executable from a package.
Usage: pub run <executable> [args...]
-h, --help Print this usage information.
-c, --[no-]checked Enable runtime type checks and assertions.
Run "pub help" to see global options. That reminds me, |
Done: #1922 |
Given that Dart 2 stable is out, this can be closed, right? /cc @kwalrath |
Yup!
…On Thu, Aug 16, 2018 at 9:30 AM Nate Bosch ***@***.***> wrote:
Closed #1807 <#1807>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1807 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AABCirZuSEiu92Rzp0__pUAWcV1SSMlFks5uRZ4QgaJpZM4SM26l>
.
|
From @aam on February 17, 2018 1:41
Are there plans to implement
--preview-dart-2
option forpub run
?See flutter/flutter#14728 (comment) for context.
Copied from original issue: dart-lang/sdk#32214
The text was updated successfully, but these errors were encountered: