Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

EventArgs for BindingFailed must match Log.Warning #12667

Merged
merged 2 commits into from
Nov 2, 2020
Merged

EventArgs for BindingFailed must match Log.Warning #12667

merged 2 commits into from
Nov 2, 2020

Conversation

spadapet
Copy link
Contributor

@spadapet spadapet commented Oct 29, 2020

Description of Change

This is the follow-up for the initial XAML BindingDiagnostics PR by @StephaneDelcroix:
#10523

See the bug I logged:
#12645

The change I'm making allows binding failures to show up properly in VS's binding failures pane:

  • The Message string didn't always exactly match the debug output for the binding failure
  • In order to de-dupe the BindingFailed event against debug output, I need the failure messages to exactly match. This change ensures that the messages must match

Issues Resolved

API Changes

Changed:

  • BindingBaseErrorEventArgs.ErrorCode gets a value of "Binding" or "MultiBinding" depending on what gets written to debug output (instead of not ever having a value). VS will need to know that in order to reconstruct the failure message and de-dupe against debug output.

Platforms Affected

  • Core/XAML (all platforms)

Behavioral/Visual Changes

None

Before/After Screenshots

Not applicable

Testing Procedure

Made all necessary changes in VS to handle the BindingFailed event from Xamarin. Manually made sure that Android and UWP debugging shows binding failures in the new XAML Binding Failures pane. Tested that double click will "go to code".

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

@rmarinho
Copy link
Member

@spadapet
Copy link
Contributor Author

@StephaneDelcroix StephaneDelcroix merged commit 947e178 into xamarin:5.0.0 Nov 2, 2020
@spadapet spadapet deleted the dev/peterspa/SendBindingFailureFixes branch November 2, 2020 17:35
@samhouts samhouts added this to the 5.0.0 milestone Nov 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] BindingDiagnostics.BindingFailed message doesn't always match debug output
4 participants