-
Notifications
You must be signed in to change notification settings - Fork 16
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
C# Hot Reload inconsistent and unreliable behavior #1389
Comments
Doing more troubleshooting I'm finding it's now working again, but I've been through a few bumps. Why is this so inconsistent and fragile?
Not sure what that's all about.
Extension version: 1.10.10 System Info
A/B Experiments
|
I tried that MetadataUpdateHandler on Windows and it works. I used:
I'm trying the same config on Mac now |
The MetadataUpdateHandler works well on my Mac too, using the same setup:
Not sure what can be done here without a consistent repro. |
Is there logging that could be added to trap when things occur like this? |
Maybe a diagnostic-level log can be added when UpdateApplication is called, and it could list out the changed Types. You can also add debug output when your methods are called. Here's what's currently in the output window when "diagnostic" logs are enabled: That's the VS option, but VSCode has the same option. Would it help if there was new diagnostic output that said:
|
Now on v1.11.6 of DevKit. I turned on diagnostic. Things were going well, until I noticed IntelliSense disappeared and then on the next debug the hot reload icon no longer appears when debugging. The last 2 hot reloads didn't get caught and handled by my metadataupdatehandler, but the output said "Code changes were successfully applied." Maybe this is all related. #1450 #1448 This is what I have in the output:
|
Based on that last comment, I'll close this as a duplicate of: dotnet/vscode-csharp#7514 |
Type: Bug
I use a MetadataUpdateHandler to direct .NET hot reloads of C# to rebuild UI in my project. In order to do this I need to look at the
Type[] types
being updated in the UpdateApplication method, however they are empty in .NET 9 Preview 7. This was working fine previously.I tested iOS, Mac Catalyst, and Android.
Extension version: 1.10.6
VS Code version: Code - Insiders 1.93.0-insider (e2b54301a5745870f6b95d81c91fb3e9557d4f08, 2024-08-20T08:04:15.567Z)
OS version: Darwin arm64 23.6.0
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: