-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
At least one user was mislead by the "--apply-changes" flag #40881
Comments
It may be enough to print the preview page url in an ansi bold style? |
Playing with the verbiage sounds good also ( |
We can also check if the output is a terminal, and if so directly pop up a web browser tab pointing to the right URI. While this would have to be implemented at least 3 different ways depending on platform, it would help direct people into the UI and it would cut down on the annoyance factor of cutting and pasting URIs. |
There's an existing pub package for this (https://pub.dev/packages/browser_launcher), maintained by the Dart team (for use by DevTools, among other tools). |
Some work for this is here: https://dart-review.googlesource.com/c/sdk/+/138480 (modulo launching in a browser). |
Bug: #40881 Change-Id: Ie5b63410a926462352858f8d4341e79a8c332be5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138480 Reviewed-by: Mike Fairhurst <mfairhurst@google.com> Reviewed-by: Janice Collins <jcollins@google.com> Commit-Queue: Devon Carew <devoncarew@google.com>
This has been improved--the new behavior is that by default, the migration tool starts up the preview server. But if |
Mike also points out that when |
This issue should be defined more concretely. It looks like the AIs are:
|
I've forked off the "launch a browser" idea into its own issue: #41809. |
cc @devoncarew
Talking to one of our early users, they ran
dartdev migrate
on a test package. After running the tool, they did not realize that there was a preview or that the preview was important. Instead they saw the advice "rerun with --apply-changes" and did that instead, and missed out on the main benefits of the tool.We should rewrite the output to point users to the web preview more heavily, like even maybe something as extreme as:
The text was updated successfully, but these errors were encountered: