Comments (21)
FYI: I made a post about it on the VS developer community
from reactiveui.
@christosk92 @glennawatson this bug appears fixed, I've just updated to vs 17.9 preview 5 and no longer experiencing this bug
from reactiveui.
We are working on a new release soon so see if that resolves your issues
from reactiveui.
There is also similar problems with ASP.net, Console projects and VS2022 17.8, but no inclusion of ReactiveUI. I will try to debug the root cause and see if there's anything in ReactiveUI that is specifically causing the issue. From my projects the common factor is System.Reactive, either way hopefully I'll locate the issue.
from reactiveui.
We are working on a new release soon so see if that resolves your issues
Thanks for your reply.
In the meantime I will see if falling back to a previous version of VS resolves this issue.
from reactiveui.
@glennawatson I was able to clone the Main branch of this repository and reference it in my app.
I can confirm this does indeed seem to fix the problem. Looking forward to an official release. Thanks !
from reactiveui.
Thanks. Be sometime this week. I got one optimisation I want to do before release.
from reactiveui.
@glennawatson Eh... I think I spoke to soon. It seems that there were some incremental build shenanigans. After a full clean/rebuild the issue is back again. I have the source code running now so I might have a look at it to see what's wrong. I wasn't able to downgrade my Visual Studio (I have no idea how). Do you have any ideas perhaps why this issue might occur?
from reactiveui.
My apologies, i had some internet issues while reopening the question.
from reactiveui.
Can you produce a minimum sample that causes the issue for you.
from reactiveui.
Well it happens with any new WinAppSdk project.
The basic steps are; using the latest visual studio:
- Create a C# WinUI with WindowsAppSdk app (not .NET Maui but actually native Windows)
- Run the app, observe hot reload working properly.
- Add the ReactiveUI.WinUI package to the project.
- clean and rebuild project.
- Observe hot reload not working anymore.
A video:
https://streamable.com/u93oq9
StreamableWatch "2023-11-19 22-30-08" on Streamable.
from reactiveui.
I just want to add I have similar issues, but with xaml. As soon as I add ReactiveUI as a nuget package then edit some xaml I get the following errors.
The types of errors are:
The specified value cannot be assigned to the collection. The following type was expected "UIElement"
The attached property "Column" can only be applied to types that derive from "UIElement"
The member "Spacing" is not recognized or is not accessible
The errors are generated when the xaml is edited at run time and appears to prevent xaml hot reload from working.
from reactiveui.
Exactly the same issue for me too.
from reactiveui.
Looks like this happened when I upgraded to 17.8
from reactiveui.
I actually managed to downgrade to Visual Studio 17.6 using https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-history#release-dates-and-build-numbers
I can confirm that hot reload does indeed work with ReactiveUI. So it does seem like it's a regression from Visual Studio. Should we just close this issue here and report it to the vs community?
A list of released versions, build numbers, and release links for Visual Studio 2022.
from reactiveui.
Lets leave it open until VS2022 17.8.xxx is fixed, just for visibility for others.
This should avoid others raising the same issue.
Thank you.
from reactiveui.
FYI - this same issue appears to happen when using CommunityToolkit as well. I'm not using ReactiveUI, but I get the same lack of hot reload and the "errors" that @SoggyBottomBoy screenshotted.
You have to laugh to keep from crying. Windows App development is so miserably terrible that all these frameworks exist to make it less miserable. But you use the frameworks and VS breaks. Can't win.
from reactiveui.
Yeah little bit hard for us this one if it's a legitimate failure by visual studio. We can probably reach out to the teams if we get a decent repo. No guarantees tho
from reactiveui.
Microsoft is getting very close to anti trust territory like the early 2000's.
from reactiveui.
@christosk92 @glennawatson this bug appears fixed, I've just updated to vs 17.9 preview 5 and no longer experiencing this bug
Thank you for your feedback, glad the VS team finally got round to fixing it.
from reactiveui.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from reactiveui.
Related Issues (20)
- [Bug]: Accessibility properties SizeOfSet and PositionOfSet are not being set when using <ReactiveWindow> HOT 6
- [Bug]: ReactiveUI incompatible with .NET Assembly Load Contexts HOT 2
- [Bug]: On Maui initial NavigateAndReset pushes the same screen twice HOT 8
- Make generic IViewFor<TViewModel> implementation optional in favor of non-generic IViewFor HOT 15
- Add overloads for the command binders that accept IViewFor HOT 1
- [Bug]: got imcompatible message when using with .net 7 HOT 2
- [Bug]: Putting RoutedViewHost inside a TabControl on Avalonia causes an app crash after navigating the second time HOT 7
- [Bug]: `ObservableAsPropertyHelper` emits property changed for lazy initial value after first-time reading and doesn't respect `DistinctUntilChanged` HOT 1
- [Bug]: WPF ReactiveCommand stays disabled after first execution HOT 9
- [Bug]: Mark ReactiveObject IObservable properties with DisplayAttribute for Winforms HOT 9
- ReactiveUI.WPF does not include .net 8.0 as a target: HOT 3
- [Bug]: Unable to use activation of views on Windows with MAUI HOT 2
- ViewModelViewHost: Better to Allow Developers Bypass the Default Fallback Behavior That Resovles View With No Contract HOT 2
- [Bug]: WireUpControls throws exception in net8.0-android HOT 8
- [Bug]: ViewModelViewHost does not set DataContext in WPF HOT 2
- [Bug]: WPF targeting issue for net6.0-windows HOT 4
- Dependency Dashboard
- [Bug]: iOS threading exception on command execution. HOT 4
- Bounce transition duration support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reactiveui.