-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
CLI Hot reload Blazor wasm just doesn't work. #40587
Comments
@ziaulhasanhamim thanks for contacting us. Could you provide a minimal repro project as a public github repository with detailed steps on how to trigger the issue so that we can make progress investigating? |
Hi @ziaulhasanhamim. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
|
Thanks for contacting us. We're moving this issue to the |
@ziaulhasanhamim How often does this happen for you? I tried these steps several times, but I always ended up with |
Not sure this is the right place, but figured it would be better than opening a new issue.
|
Whenever the build takes longer it happens. Maybe it's a timeout problem. I have seen @pranavkm mention that. |
@davidivkovic I think you should open a separate issue with detailed repro steps for the problem you're seeing. Hot reload is supported in WSL2 and so far we haven't been able to reproduce the issue you're seeing. |
Hi @ziaulhasanhamim. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Open question? What is the question? And why author feedback was added? What feedback do I need to provide? |
Thanks for contacting us. |
I am experiencing this too. "No hot reload changes to apply." is very wrong. It is so close, it just needs to apply the changes to my .razor file, push the new client code etc. |
Me too, sometimes I get "Hot reload capabilities: Baseline." (hot reload works) and other times I get "Hot reload capabilities: ." (hot reload does not work). Occasionally it helps to delete all build artifacts and rebuild everything. However, if it is really a build time issue as @ziaulhasanhamim suggested, deleting the build artifacts should make it worse ... its confusing and quite annoying :-( Edit: I am working under Kubuntu 22.04 using vscode. |
@Apollo3zehn i find that this problem is directly related to build time. When you less build time the hot reload works. But when you have got a larger build time it will surely fail |
Thanks, I switched from my Windows Notebook to a Kubuntu VM running on that Notebook and of course the build time increased. I guess it fails silently either here: There is a 10 second timeout specified. Maybe it is related to that. |
Yeah, timeout is maybe the problem #38561 (comment). Why there is a need for a timeout. I don't think there is a timeout for Blazor Server or asp.net core. And if the timeout is really needed then give the user the ability to change the duration via environment variables. |
@davidivkovic Did you open the issue? or resolved it? ... i'm having the exact same issue! |
Never resolved the issue. |
I switched from my Kubuntu 22.04 VM to a native Kubuntu 22.04 system on an Intel NUC 11 Performance. Build is much faster now ... and suddenly hot reload works flawlessly 🥳! So I can confirm this issue is related to build times (or to the web app's start-up time). |
Hmm, my web app starts pretty fast... how do I troubleshoot this?
…On Fri, Jul 29, 2022 at 10:01 AM Apollo3zehn ***@***.***> wrote:
I switched from my Kubuntu 22.04 VM to a native Kubuntu 22.04 system on an
Intel NUC 11 Performance. Build times are much faster now ... and suddenly
hot reload works flawlessly 🥳! So I can confirm this issue is related to
build times (or to the web app's start-up time).
—
Reply to this email directly, view it on GitHub
<#40587 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUY5MJ3RFJ7TYHIAUIJWN3VWPW2XANCNFSM5QFFYP7A>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I would first make sure there are no script load errors / connection errors in the browser web tools. IIRC, I had some issues there because the developer certifcate was not trusted in Firefox. One of the scripts is responsible for the hot reload functionality. Then use If also not working with cleared bin/obj folders, and verbose output ( |
@tmat I hit this issue the first time I ran a new Blazor WebAssembly project with .NET SDK 6.0.400:
The browser UI showed the hot reload check mark, but the app UI didn't actually update. The 2nd time I ran |
@danroth27 there might be problems about build times and timeout in blazor wasm hot reload. At first build it took little long so hot reload didn't work. At second build it was comparatively faster so hot reload was working |
I confirm that there is a timeout issue regarding build times. I'm using intel mac, and I have to close everything, and run the backing api's in a remote box, because otherwise my machine will get slow, therefore hot-reload not working. Also I have to run dotnet watch twice. The second one is the one that works. When it works the output is: When it doesn't Another thing that might affect hot reload working or not, is the boot time of the application. So I set my startup url to a /blank page. Combining these two things (remote backing api, /blank page) I manage to get hot-reload working. |
Is there an existing issue for this?
Describe the bug
There were many issues about dotnet watch not working with blazor wasm. #38561, #36723, #40091 etc. It was mentioned there that the issue is fixed in .net 6.0.2. But it's not. The issue is there still. Furthermore, there are no responses now on those issues when it was informed that in .net6.0.2 it's not working. Very disappointing behavior.
dotnet watch --verbose logs
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
6.0.200
Anything else?
No response
The text was updated successfully, but these errors were encountered: