-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Update flutter_tools to look for new VM service message #97683
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
Conversation
|
|
||
| void _logMessage(String line, { bool error = false }) { | ||
| if (!verbose) { | ||
| /* if (!verbose) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comment?
| .listen((String line) { | ||
| if (!uri.isCompleted) { | ||
| final Uri? serviceUri = parseServiceUri(line, prefix: 'Observatory listening on '); | ||
| final Uri? serviceUri = parseServiceUri(line, prefix: RegExp('(Observatory|Dart VM Service) listening on ')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can this use kServicePrefixRegExp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we okay with src-level imports? If so, we can import ../../../../packages/flutter_tools/lib/src/globals.dart
christopherfujino
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one nit, but LGTM
The Dart SDK will soon move away from the current Observatory message: "Observatory listening on ..." To a new message that no longer references Observatory: "Dart VM Service listening on ..." This change updates all tests with mocks to check for the new message and also adds support for the new message in ProtocolDiscovery. See dart-lang/sdk#46756
dba05de to
ff45ed2
Compare
00dc387 to
36673c1
Compare
* Update flutter_tools to look for new VM service message The Dart SDK will soon move away from the current Observatory message: "Observatory listening on ..." To a new message that no longer references Observatory: "Dart VM Service listening on ..." This change updates all tests with mocks to check for the new message and also adds support for the new message in ProtocolDiscovery. See dart-lang/sdk#46756 * Fix some parsing locations * Fix analysis failures * Update message * Remove extra comment * Update message * Add globals prefix
|
FWIW, I just discovered this introduced a regression in the devicelab tests: #145964 |
The Dart SDK will soon move away from the current Observatory message:
"Observatory listening on ..."
To a new message that no longer references Observatory:
"Dart VM Service listening on ..."
This change updates all tests with mocks to check for the new message and also adds support for the new message in
ProtocolDiscovery.See dart-lang/sdk#46756