Skip to content

Blazor Debugging in VS Browser KeepAlive #45041

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

Open
TanayParikh opened this issue Nov 11, 2022 · 12 comments
Open

Blazor Debugging in VS Browser KeepAlive #45041

TanayParikh opened this issue Nov 11, 2022 · 12 comments
Labels
area-blazor Includes: Blazor, Razor Components feature-blazor-debugging This issue is related to debugging of Blazor WebAssembly apps feature-hot-reload This issue is related to the Hot Reload feaature Pillar: Technical Debt Priority:3 Work that is nice to have
Milestone

Comments

@TanayParikh
Copy link
Contributor

TanayParikh commented Nov 11, 2022

This issue is broken off into two parts:

  1. aspnetcore-browser-refresh.js:55 Unknown payload: { "type" : "Ping" }
    • We're currently failing to handle the Ping message here
    • We need to handle this message somehow. We can do a simple no-op, however this may be a good opportunity to tackle Replace batch files with KVM #2
  2. Running a Blazor web app doesn't always launch the browser
@TanayParikh TanayParikh added area-blazor Includes: Blazor, Razor Components triaged feature-blazor-debugging This issue is related to debugging of Blazor WebAssembly apps labels Nov 11, 2022
@TanayParikh TanayParikh added this to the .NET 8 Planning milestone Nov 11, 2022
@ghost
Copy link

ghost commented Nov 11, 2022

Thanks for contacting us.

We're moving this issue to the .NET 8 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.

@softworkz
Copy link
Contributor

aspnetcore-browser-refresh.js:55 Unknown payload: { "type" : "Ping" }

What's the status of this? (I cannot access the link)

I'm seeing this frequently when saving CSS files - in the most simple case: No Blazor, ASP.NetCore project serving static files only. VS 17.5.2, Microsoft.AspNetCore.App 6.0.15.

@ghost
Copy link

ghost commented Oct 6, 2023

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.

@mkArtakMSFT mkArtakMSFT added the feature-hot-reload This issue is related to the Hot Reload feaature label Dec 13, 2023
@ghost
Copy link

ghost commented Dec 13, 2023

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.

@kzu
Copy link

kzu commented Dec 21, 2023

I can repro this even without debugging, for a new blazor web app template, while changing the app.css.

@mkArtakMSFT mkArtakMSFT added the Priority:1 Work that is critical for the release, but we could probably ship without label Jan 9, 2024
@BachiMjavanadze
Copy link

BachiMjavanadze commented Feb 19, 2024

the same issue for me:

image

when I change the CSS this error occurs. even if I just don't add a new class, but just add an empty line at the end of the CSS script, this error occurs

@portal7
Copy link

portal7 commented Feb 28, 2024

Same here

@Duke4848
Copy link

Duke4848 commented Oct 8, 2024

I made a mistake and updated VS and getting the same issue now.

@danroth27 danroth27 added Priority:3 Work that is nice to have and removed Priority:1 Work that is critical for the release, but we could probably ship without labels Jan 13, 2025
@cytoph
Copy link

cytoph commented Jan 22, 2025

I don't know if it makes sense to decrease the priority of this issue. The error message itself is only inconvenient, yes, but the failed call seems to mean that Visual Studio is unable to "push" the new version of the CSS file one has just saved - and that is contrary to how isolated CSS files (= per .razor file) work, as those get correctly "pushed" to the running site on save.

@danroth27 danroth27 modified the milestones: .NET 10 Planning, Backlog Feb 5, 2025
@RobTF
Copy link

RobTF commented Feb 20, 2025

It's just wrong - saving a CSS file shouldn't send a Ping, judging by the code in the JS file it should send an UpdateStaticFile.

I get this every time I save app.css in a Blazor standalone WASM app when debugging using VS. If I forego the debugger and run "dotnet watch" things work fine.

This is not just an inconvenience in the sense the error can be ignored - this is blocking hot reload, at least for CSS. It should be a priority to be fixed.

Image

@lnaie
Copy link

lnaie commented Feb 28, 2025

In a pure wasm project (boot up from index.html, in just one project, not Project + Project.Client), I'm seeing this after I changed a style in the page's local css (e.g. Page.razor.css) and saved the file. Do we have a regression?

Can we also make the wasm hot-reload work with Aspire as well?

@softworkz
Copy link
Contributor

I also do not understand the depriorization.

This is a BUG - Please fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components feature-blazor-debugging This issue is related to debugging of Blazor WebAssembly apps feature-hot-reload This issue is related to the Hot Reload feaature Pillar: Technical Debt Priority:3 Work that is nice to have
Projects
None yet
Development

No branches or pull requests