Page 1 of 1

Strange problem with Hot Reload in Unity

Posted: 08 Sep 2023, 01:46
by dmacd10
Most of my XAMLs now hot reload properly, but one of them, a UserControl embedded in a tab item, refuses to reload. I can see in the console that Noesis is reloading the Xaml itself when the file changes, but the visual tree isnt updated. To diagnose this, I duplicated the control in a file with a different name but otherwise identical xaml and code-behind content and added it to the same tabcontrol parent as the non-reloading control. This duplicated control *does* reload properly when edited. Smelling a cache issue, I tried renaming the file and class of the original control. But still it wont reload! Deleting the view .xaml, .cs, reimporting, and re-adding them and reimporting again did not affect the result. My top two hypothesis at this point are:

1) Aliens
2) ...

So, I have a workaround, but any clues what might be going on here? :)

Re: Strange problem with Hot Reload in Unity

Posted: 08 Sep 2023, 17:48
by jsantos
Any chance you could reproduce this in a small sample so we can debug it?

Re: Strange problem with Hot Reload in Unity

Posted: 13 Sep 2023, 04:37
by dmacd10
Sorry, I cant even reproduce it outside of the one (seemingly cursed) file in my main project, not even sure where to start with a repro project.

Re: Strange problem with Hot Reload in Unity

Posted: 13 Sep 2023, 19:58
by jsantos
If you could share your project (in a private ticket) I could have a look at it to bring light to this mystery.

But I am going to need very clear repro steps.

Thanks!