-
Notifications
You must be signed in to change notification settings - Fork 818
feat: Log HR diagnostics to the console when devserver HR is enabled #21667
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?
Conversation
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.
Pull Request Overview
This PR adds diagnostic logging to the console when Hot Reload (HR) operations fail during development server usage. When compilation errors or rude edits occur during hot reload, the diagnostics are now captured from the server, formatted, transmitted to the client, and logged to the console for developer visibility.
Key changes:
- Extended
HotReloadServerOperationDatato include diagnostic information - Added diagnostic filtering and formatting on the server side to capture warnings and errors
- Implemented client-side diagnostic reporting that logs errors to the console when server metadata updates are enabled
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
HotReloadStatusMessage.cs |
Added Diagnostics field to HotReloadServerOperationData record to transport diagnostic messages |
ClientHotReloadProcessor.Common.Status.cs |
Added ReportDiagnostics method to log diagnostic errors to console and integrated it into status notification flow |
ServerHotReloadProcessor.cs |
Updated to filter, format, and store diagnostics from hot reload operations; propagated diagnostics through completion methods |
ServerHotReloadProcessor.MetadataUpdate.cs |
Updated failure completion calls to pass diagnostic information when hot reload fails or encounters rude edits |
src/Uno.UI.RemoteControl.Server.Processors/HotReload/ServerHotReloadProcessor.cs
Outdated
Show resolved
Hide resolved
|
π€ Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-21667/docs/index.html |
|
π€ Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-21667/wasm-skia-net9/index.html |
src/Uno.UI.RemoteControl/HotReload/ClientHotReloadProcessor.Common.Status.cs
Outdated
Show resolved
Hide resolved
src/Uno.UI.RemoteControl/HotReload/ClientHotReloadProcessor.Common.Status.cs
Show resolved
Hide resolved
src/Uno.UI.RemoteControl/HotReload/ClientHotReloadProcessor.Common.Status.cs
Outdated
Show resolved
Hide resolved
92f99e9 to
719e7ff
Compare
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.
Pull Request Overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.
719e7ff to
488d476
Compare
|
π€ Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-21667/wasm-skia-net9/index.html |
|
π€ Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-21667/docs/index.html |
|
The build 179544 found UI Test snapshots differences: Details
|
488d476 to
fbc7031
Compare
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.
Pull Request Overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
src/Uno.UI.RemoteControl/HotReload/ClientHotReloadProcessor.Common.Status.cs
Outdated
Show resolved
Hide resolved
src/Uno.UI.RemoteControl/HotReload/ClientHotReloadProcessor.Common.Status.cs
Outdated
Show resolved
Hide resolved
fbc7031 to
b62d13f
Compare
|
π€ Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-21667/wasm-skia-net9/index.html |
|
π€ Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-21667/docs/index.html |
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.
Pull Request Overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.
|
π€ Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-21667/docs/index.html |
|
π€ Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-21667/wasm-skia-net9/index.html |
|
π€ Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-21667/docs/index.html |
|
|
PR Type:
What is the new behavior? π
When running an app with HR devserver enabled, show diagnostics in the console.
PR Checklist β
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.Other information βΉοΈ