Closed mattbruv closed 1 year ago
I have the same problem. Found this issue by Googling the error message.
Deleting all bin/ and obj/ folders inside the solution seems to have fixed it for now...
Also having this same problem, also found this issue by Googling the error message. What's the deal?
Thank you for filing this issue. In order for us to investigate this issue, please provide a minimal repro project that illustrates the problem without unnecessary code. Please share with us in a public GitHub repo because we cannot open ZIP attachments, and don't include any confidential content.
Thanks for contacting us.
We're moving this issue to the .NET 9 Planning
milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s).
If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues.
To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.
See our Issue Management Policies for more information.
Anybody found a solution?
I get this on the output when running dotnet watch:
Failed to read Hot Reload capabilities: A task was cancelled
@mattbruv @amirvenus Please try the latest .NET 9 preview and file a new issue if you still see problems. We have made significant investments in reliability of dotnet-watch in this release. If you file a new issue, please include the output of dotnet watch --verbose
.
Is there an existing issue for this?
Describe the bug
dotnet watch
hot reloading seems to randomly decide if it wants to work or not depending on which way the wind is blowing. Yesterday it was fine, today it is not working at all.I'm running
dotnet watch --project . -v
in my project's client directory. On the surface it looks fine:When I edit a
.razor
file, my browser does not update and I get this output in the terminal only once:Then the terminal does nothing until I kill it. Edits after this are not recognized or printed. Only when I press
^C
to end the process does it print something:When I open my localhost web app and look at the
Network
tab in Chrome developer tools and filter for WebSocket connections, there are none. The client is not even attempting to connect to the hot reload server, nor are there any errors in my console to go off of. It just seems like it doesn't even try, and I have no idea how I'm supposed to remedy this.Expected Behavior
The client should make an attempt to connect to the WebSocket Refresh server when
dotnet watch
is run. The client should communicate with the refresh server and correctly hot reload code on file changes.Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
7.0.201
Anything else?