-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
[dotnet-watch] Hot reload capabilities are sometimes not reported for blazor-wasm #36723
Comments
Thanks for contacting us. We have tests validating that this works. So if you have some specific setup / repro setps that you'd like to share that would help us investigate this further. |
2021-09-20-20-48-12.mp4 |
I also tested daily build |
Thanks @sergiojrdotnet . Did you by any chance try this from VS and/or know whether that will work? |
@mkArtakMSFT It didn't work either 2021-09-21-20-28-40.mp4 |
I'm seeing the same issue. Neither VS 2022 Preview 4.0 nor VS InfoMicrosoft Visual Studio Enterprise 2022 Preview Version 17.0.0 Preview 4.0 VisualStudio.17.Preview/17.0.0-pre.4.0+31710.8 Microsoft .NET Framework Version 4.8.03752Installed Version: Enterprise Visual C++ 2022 00476-70000-00000-AA425 .NET Core Debugging with WSL 1.0 ASP.NET and Web Tools 2019 17.0.616.20688 ASP.NET Web Frameworks and Tools 2019 17.0.616.20688 Azure App Service Tools v3.0.0 17.0.616.20688 Azure Functions and Web Jobs Tools 17.0.616.20688 C# Tools 4.0.0-4.21458.2+2bfff7b9348e779628a06b86af04b5239d3a926d Common Azure Tools 1.10 Extensibility Message Bus 1.2.6 (master@34d6af2) Microsoft Azure Tools for Visual Studio 2.9 Microsoft JVM Debugger 1.0 Microsoft Library Manager 2.1.134+45632ee938.RR Microsoft MI-Based Debugger 1.0 Microsoft Visual C++ Wizards 1.0 Microsoft Visual Studio Tools for Containers 1.2 Microsoft Visual Studio VC Package 1.0 Mono Debugging for Visual Studio 17.0.11 (54f19d2) NuGet Package Manager 6.0.0 ProjectServicesPackage Extension 1.0 Razor (ASP.NET Core) 17.0.0.2143108+3355b17aa26a41735ddf03b9fd3f71df166c0411 Snapshot Debugging Extension 1.0 SQL Server Data Tools 17.0.62108.30110 SQLite & SQL Server Compact Toolbox 4.8 Test Adapter for Boost.Test 1.0 Test Adapter for Google Test 1.0 TypeScript Tools 17.0.0901.2001 Visual Basic Tools 4.0.0-4.21458.2+2bfff7b9348e779628a06b86af04b5239d3a926d Visual F# Tools 17.0.0-beta.21431.1+a7e1ca9200c21fd832dd9829fe1c655b69424ae8 Visual Studio Code Debug Adapter Host Package 1.0 Visual Studio Container Tools Extensions 1.0 Visual Studio IntelliCode 2.2 Visual Studio Tools for CMake 1.0 Visual Studio Tools for Containers 1.0 VisualStudio.DeviceLog 1.0 VisualStudio.Foo 1.0 VisualStudio.Mac 1.0 Xamarin 17.0.0.266 (d17-0@56a1e79) Xamarin Designer 17.0.0.101 (remotes/origin/main@533d7d10b) Xamarin Templates 17.0.11 (a04c9af) Xamarin.Android SDK 12.0.99.13 (main/fe2e7e6) Xamarin.iOS and Xamarin.Mac SDK 14.99.0.598 (11838db7d) |
@sergiojrdotnet for your VS issue, unfortunately we haven't made hot reload for Blazor WebAssembly work with the debugger as yet. We're looking at addressing it, but it's unlikely to be solved prior to VS 2022 GA. However, if you run the app without the debugger attached ( @MisinformedDNA could I bother you to file a separate issue (assuming it's not addressed by my previous comment)? |
@pranavkm Yeah! It works on VS without debugger attached. Excelent! |
For watch, we made a fix for a timing issue in the RC2 SDK that I think might address the issue you are seeing. You could try a nightly build of the installer to see if it helps with the odd behavior you were seeing. |
@pranavkm It looks weird. With version |
If you run |
I really can't find what is happening. After every run, sometimes it works, sometimes not. 2021-09-23-20-03-51.mp4 |
It's a result of not being to infer the hot reload capabilities. The 2nd time around it print an empty string instead of "Hot reload capabilities: Baseline". I thought I'd fixed it, but perhaps didn't fix it hard enough |
Having the same issue. working perfectly fine with vs 2022. but not with dotnet cli. no hot reload changes are applied. Everytime I made a change I have to restart. I'm using the dotnet SDK 6.0.1 GA |
any progress on this issue? |
In a Blazor app, the apply-update capabilities are available after the app is up and running in the browser. Occasionally it takes long for the app to start up and our baseline task times out. Currently we return an empty list of capabilities which causes the compiler to produce no deltas. This PR bumps up the timeout ever so slightly and returns baseline capabilities instead. Fixes dotnet/aspnetcore#36723
In a Blazor app, the apply-update capabilities are available after the app is up and running in the browser. Occasionally it takes long for the app to start up and our baseline task times out. Currently we return an empty list of capabilities which causes the compiler to produce no deltas. This PR bumps up the timeout ever so slightly and returns baseline capabilities instead. Fixes dotnet/aspnetcore#36723
In a Blazor app, the apply-update capabilities are available after the app is up and running in the browser. Occasionally it takes long for the app to start up and our baseline task times out. Currently we return an empty list of capabilities which causes the compiler to produce no deltas. This PR bumps up the timeout ever so slightly and returns baseline capabilities instead. Fixes dotnet/aspnetcore#36723
* Assume basline capabilities (#23185) In a Blazor app, the apply-update capabilities are available after the app is up and running in the browser. Occasionally it takes long for the app to start up and our baseline task times out. Currently we return an empty list of capabilities which causes the compiler to produce no deltas. This PR bumps up the timeout ever so slightly and returns baseline capabilities instead. Fixes dotnet/aspnetcore#36723 * Use project path instead of working directory to resolve launchSettings.json (#23184) * Use project path instead of working directory to resolve launchSettings.json Fixes dotnet/aspnetcore#35393 * Update DotNetWatcherTests.cs
Describe the bug
dotnet watch
is not recognizing Razor changes on Blazor WebAssembly project.To Reproduce
dotnet new blazorwasm
dotnet watch
Exceptions
Further technical details
The text was updated successfully, but these errors were encountered: