OYIon / LiveSharp

Public repository for the LiveSharp project
96 stars 4 forks source link

Hidden exception stops LiveSharp processing #45

Closed lhughey closed 4 years ago

lhughey commented 4 years ago

LiveSharp is not processing c# or Xaml changes after passing a page which seems have thrown a caught exception. The LiveSharp inspector is showing that there was an error on a page 2 pages back from where I'm now trying to view Xaml or C# changes.

The info I'm getting from the Inspector's Viewmodel screen is below. The Inspector's debugger is not displaying any data.

Inspector's Viewmodel Output SubViewModels System.Collections.Generic.List1[Mobile.Core.ViewModel.ITabViewModel] Title " TitleOFPage" PatientTitle
IsBusy False PageType Normal Changing System.Reactive.Linq.ObservableImpl.Cast2[System.Object,ReactiveUI.IReactivePropertyChangedEventArgs1[ReactiveUI.IReactiveObject]] Changed System.Reactive.Linq.ObservableImpl.Cast2[System.Object,ReactiveUI.IReactivePropertyChangedEventArgs1[ReactiveUI.IReactiveObject]] ThrownExceptions ReactiveUI.ScheduledSubject1[System.Exception]

What I'm expecting I am expecting LiveSharp to fail to process on a page that has a thrown exception, but attempt to process on the next page. If the next page exhibits an exception, it details should be added to the a log.

Note 'll see what I can do to reproduce this. I'm dealing with a complicated codebase but have used LiveXaml on it for 6 months and LiveSharp a few here and there (mostly for Xaml changes).

ionoy commented 4 years ago

Thanks for the report @lhughey!

Is there anything posted in the Log panel when you these update attempts fail? Also, what is the log output for the initial exception?

lhughey commented 4 years ago

There is nothing in the debug log of the app in Visual studio because the error doesn't bubble up. It seems be captured in the Reactive code but is observed by LiveSharp.

Also, XAML changes are not processed, I lightly mentioned it before, but wasn't very clear.

You can see the Inspector output at http://imgur.com/a/OGscMX4

Here is the LiveSharp log

lhughey commented 4 years ago

Note: This project works fine with LiveXaml (changes to xaml are displayed).

ionoy commented 4 years ago

Do you see any messages appearing in the application log (Status tab)? I'm trying to understand if the issue is with the communication or the update itself.

Thanks!

lhughey commented 4 years ago

Sorry for the late reply. I've pasted the log of the status tab (of LiveSharp server) above in the previous post.

If you'd like, we can do a screen share on skype or something. I hate not being able to reproduce this but want you to be able to see what is going on (or at least see a lack of details so more verbosity can be displayed for additional debugging). My timezone is UTC -6. Let me know if that would help.

lhughey commented 4 years ago

This was resolved with the latest nuget release (1.1.22). Thanks!

ionoy commented 4 years ago

Awesome!