Skip to content

[ Breaking Change Request ] Drop reference to Observatory in VM service message #46756

Closed
@bkonyi

Description

@bkonyi

Intended Behavior Change

Update the VM service message to no longer reference Observatory as it will no longer be shipped with the SDK in a future release (2.17). Observatory users will instead be directed to use DevTools for debugging via an existing message and the Observatory string will be replaced by the a message similar to the following:

A Dart VM service is listening on http://127.0.0.1:8181/abc123=/

Current Behavior

Currently, invoking the VM with either --observe or --enable-vm-service outputs a message to stdout similar to Observatory listening on http://127.0.0.1:8181/bKrWeCYueRo=/. Various pieces of tooling and testing infrastructure scrape stdout for this message in order to determine the VM service URI (e.g., flutter_tools).

Expected Impact

Tooling which relies on the Observatory message being printed to stdout will fail to connect to running Dart applications. This will mostly only impact tooling and tests which are not already relying on the --write-service-info= flag to write the VM service connection information to disk.

Mitigation

Impacted tooling should be updated to support the new VM service message and also support the legacy Observatory message if the tool supports arbitrary Dart versions.

Related issues

cc for review: @franklinyow @mit-mit @vsmenon @kevmoo @Hixie

FYI: @a-siva @jonahwilliams @devoncarew @jacob314

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.breaking-change-requestThis tracks requests for feedback on breaking changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions