-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
toolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
In Dart 1.22 the URL to the service protocol and Observatory will change.
The message printed by the VM now look like http://127.0.0.1:<port>/<token>/.
For example:
Observatory listening on http://127.0.0.1:54804/PTwjm8Ii8qg=/
It is strongly recommended that tools scrape the whole base URL so as to be protected against future changes to the base URL.
Flutter tools needs to be updated to scrape the whole URL instead of just the port.
For example:
const kObservatoryListening = 'Observatory listening on ';
if (line.startsWith(kObservatoryListening)) {
uri = Uri.parse(line.substring(kObservatoryListening.length));
}
To see this new Observatory behavior...
$ dart -DDART_SERVICE_USE_AUTH=true --observe ~/hello_world.dart
Observatory listening on http://127.0.0.1:54804/PTwjm8Ii8qg=/
Metadata
Metadata
Assignees
Labels
toolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.