-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed as not planned
Closed as not planned
Copy link
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Componentsfeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssemblyThis issue is related to and / or impacts Blazor WebAssemblyfeature-hot-reloadThis issue is related to the Hot Reload feaatureThis issue is related to the Hot Reload feaatureinvestigate
Milestone
Description
Describe the bug
dotnet watch hot-reload functionality breaks for blazorwasm projects when changes are made before the dotnet reload socket is connected
Only a restart of dotnet watch will restore functionality
This is much easier to reproduce using firefox which takes a long time to establish the socket for some reason
To Reproduce
- dotnet new blazorwasm
- Add "hotReloadProfile" : "blazorwasm" to launchSettings.json
- dotnet watch
- Change index.razor or any other file in a hot reload supported way before the dotnet reload socket has been connected (see browser log)
- See nothing change on the page but dotnet watch report "Hot Reload of changes succeeded"
- Wait for the socket to finish connecting
- See no changes appear
- Further changes to source files break in the webapp with an exception
Exceptions in JS Console
console.trace() * Assertion at /__w/1/s/src/mono/mono/metadata/metadata.c:1151, condition `<disabled>' not met
* Assertion at /__w/1/s/src/mono/mono/metadata/metadata.c:1151, condition `<disabled>' not met
Uncaught
Object { name: "ExitStatus", message: "Program terminated with exit(0)", status: 0 }
message: "Program terminated with exit(0)"
name: "ExitStatus"
status: 0
Further technical details
- Include the output of
dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.100-preview.3.21202.5
Commit: aee38a6dd4
Runtime Environment:
OS Name: arch
OS Version:
OS Platform: Linux
RID: arch-x64
Base Path: /usr/share/dotnet/sdk/6.0.100-preview.3.21202.5/
Host (useful for support):
Version: 6.0.0-preview.3.21201.4
Commit: 236cb21e3c
.NET SDKs installed:
5.0.102 [/usr/share/dotnet/sdk]
5.0.202 [/usr/share/dotnet/sdk]
6.0.100-preview.3.21202.5 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.18 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.18 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.11 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.0-rc.2.20475.17 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.2 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.5 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.0-preview.3.21201.13 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.0.9 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.18 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.11 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.0-rc.2.20475.5 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.2 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.5 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.0-preview.3.21201.4 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Browser: Firefox
Metadata
Metadata
Assignees
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Componentsfeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssemblyThis issue is related to and / or impacts Blazor WebAssemblyfeature-hot-reloadThis issue is related to the Hot Reload feaatureThis issue is related to the Hot Reload feaatureinvestigate