Skip to content

fix Hot restart/reload and service extension response deserialization error - #2771

Merged
auto-submit[bot] merged 3 commits into
dart-lang:mainfrom
jyameo:fix-hot-restart
Feb 9, 2026
Merged

auto-submit[bot] merged 3 commits into
dart-lang:mainfrom
jyameo:fix-hot-restart

Conversation

@jyameo

@jyameo jyameo commented Feb 9, 2026

Copy link
Copy Markdown
Contributor
  • Fix deserialization of HotReloadResponse, HotRestartResponse, and ServiceExtensionResponse in the DevHandler.

Noticed issue in #2765
Fixes #2770

@jyameo
jyameo requested review from bkonyi and nshahan February 9, 2026 18:46
@auto-submit

auto-submit Bot commented Feb 9, 2026

Copy link
Copy Markdown

autosubmit label was removed for dart-lang/webdev/2771, because This PR has not met approval requirements for merging. The PR author is not a member of dart-team and needs 1 more review(s) in order to merge this PR.

  • Merge guidelines: A PR needs at least one approved review if the author is already part of flutter-hackers or two member reviews if the author is not a flutter-hacker before re-applying the autosubmit label. Reviewers: If you left a comment approving, please use the "approve" review action instead.

'HotRestartRequest' => HotRestartRequest.fromJson(jsonData),
'ServiceExtensionRequest' => ServiceExtensionRequest.fromJson(jsonData),
'BuildResult' => BuildResult.fromJson(jsonData),
'HotReloadResponse' => HotReloadResponse.fromJson(jsonData),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have any tests that should have / could have caught this?

@jyameo jyameo Feb 10, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we have some E2E tests in Flutter_tools that would have caught it. Don't think we can implement these tests in DWDS since we need the client to be injected to establish the connection with DWDS

@auto-submit
auto-submit Bot merged commit 2d2e5cf into dart-lang:main Feb 9, 2026
63 checks passed
@jyameo
jyameo deleted the fix-hot-restart branch February 25, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hot restart/reload response deserialization error

2 participants