-
Notifications
You must be signed in to change notification settings - Fork 388
fix(logging): combine newline-split stdout messages into one log entry #9757
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
base: master
Are you sure you want to change the base?
Changes from all commits
4452283
9643952
4a5b354
1387d08
0383010
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -100,13 +100,19 @@ final class _NetworkScreenHelper { | |
| final WidgetTester _tester; | ||
|
|
||
| Future<void> clear() async { | ||
| final controller = screenControllers.lookup<NetworkController>(); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same question as above - why was this test changed? |
||
|
|
||
| // Pause polling to avoid immediately repopulating rows after clear. | ||
| await controller.togglePolling(false); | ||
|
|
||
| // Press the 'Clear' button between tests. | ||
| await _tester.tap(find.text('Clear')); | ||
| await _tester.pumpAndSettle(safePumpDuration); | ||
|
|
||
| await controller.togglePolling(true); | ||
| await _tester.pump(safePumpDuration); | ||
| expect( | ||
| screenControllers.lookup<NetworkController>().requests.value, | ||
| isEmpty, | ||
| ); | ||
|
|
||
| expect(controller.requests.value, isEmpty); | ||
| } | ||
|
|
||
| Future<void> triggerExit() async { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -609,13 +609,23 @@ class EvalOnDartLibrary extends DisposableController | |
| int? count, | ||
| }) { | ||
| return addRequest<T>(isAlive, () async { | ||
| final T value = await service.getObject( | ||
| _isolateRef!.id!, | ||
| instance.id!, | ||
| offset: offset, | ||
| count: count, | ||
| ) as T; | ||
| return value; | ||
| try { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like this (and the DWDS specific code) is solving a different issue than #9557 Could you pull this code into a separate PR and file/link the issue it's fixing? Thanks! |
||
| final T value = await service.getObject( | ||
| _isolateRef!.id!, | ||
| instance.id!, | ||
| offset: offset, | ||
| count: count, | ||
| ) as T; | ||
| return value; | ||
| } on RPCError catch (e, st) { | ||
| // During teardown (especially on web/wasm), object references can be | ||
| // invalidated before queued getObject requests complete. | ||
| if (e.code == RPCErrorKind.kInvalidParams.code) { | ||
| _log.info('Ignoring stale getObject for ${instance.id}: $e', e, st); | ||
| return null; | ||
| } | ||
| rethrow; | ||
| } | ||
| }); | ||
| } | ||
| } | ||
|
|
||
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.
Why were these changes added?