-
Notifications
You must be signed in to change notification settings - Fork 1.9k
SourceGen with invalid x:DataType or invalid bindings does not emit errors #33417
Copy link
Copy link
Labels
area-xamlXAML, CSS, Triggers, BehaviorsXAML, CSS, Triggers, Behaviorsi/regressionThis issue described a confirmed regression on a currently supported versionThis issue described a confirmed regression on a currently supported versionpartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/androidregressed-in-10-rc1s/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Metadata
Metadata
Assignees
Labels
area-xamlXAML, CSS, Triggers, BehaviorsXAML, CSS, Triggers, Behaviorsi/regressionThis issue described a confirmed regression on a currently supported versionThis issue described a confirmed regression on a currently supported versionpartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/androidregressed-in-10-rc1s/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
Looks like applying
<MauiXamlInflator>SourceGen</MauiXamlInflator>while having invalid x:DataType or bindings no longer raises build errors.I have tested a couple of scenario's with and without SourceGen in Debug and Release builds. Am I using it wrong?
Compile invalid x:DataType
Expectation: local:Foo does not exist, build should fail
Only XamlC seems to work correct. I would expect SourceGen to fail in both Debug and Release builds.
Compile invalid Binding
Expectation: {Binding Foo} does not exist, build should fail
Again only XamlC seems to work correct. I would expect SourceGen to fail in both Debug and Release builds.
Also
MauiStrictXamlCompilationdoes not seem to have any effect in all scenario'sSteps to Reproduce
Link to public reproduction project repository
https://github.com/zwikk/maui-playground/tree/main/Source/SourceGenTest
Version with bug
10.0.20
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
No response
Did you find any workaround?
Do not use SourceGen.
Relevant log output