You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow dots inside indexers in compiled binding paths - #40724
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Target Branch
This PR is for
Initial base
New features, API changes, or .NET 12 work (including .NET 12 fixes)
main
.NET 11 servicing fixes
net11, for review
Older servicing, release integration, infrastructure, or documentation
Let the MAUI agent address review feedback and fix remaining issues on this PR. Maintainers still decide whether it is merged. For PRs from forks, the agent opens a follow-up PR that keeps your commits.
Follow-up to #28333 for x:DataType bindings (XamlC and the XAML source generator).
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
String-indexer paths containing a literal [ in the key can lose trailing properties in both compiled-binding implementations, producing incorrect bindings.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
XamlC still misparses indexer keys containing both a literal closing bracket and a dot, causing incorrect property lookup and requiring a parser fix with regression coverage.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The indexer parser mistakes a literal [ within a key for another indexer, splitting valid paths incorrectly and causing XamlC property-lookup failures.
The nextOpen cutoff treats a literal [ inside the current key as another indexer: Items[a]b[c.d].Length becomes Items[a]b[c, d], and Length. XamlC then extracts key a and fails property lookup for d] instead of using the complete key a]b[c.d. Distinguish a subsequent indexer segment from literal key text, and add this combined-bracket case to the XamlC fixture while retaining the chained-indexer regression test.
ℹ️ The AI found no changes relevant to UI tests, so no maui-pr-uitests run was queued.
GPT-6.2 Sol: Skip UI tests because unit tests directly cover the compiled-binding indexer fix. MAI Code 2: Compiled binding path parsing change for XamlC and source generation; no UI or device suites are needed because coverage is in unit tests.
🧪 Running — nothing
No UI tests run for this PR.
🧪 Device tests — nothing to run
ℹ️ The AI found no changes relevant to device tests, so no maui-pr-devicetests run was queued.
GPT-6.2 Sol: Skip device tests because the modified compiled-binding paths are covered without a device. MAI Code 2: Compiled binding path parsing and unit-test-only changes require no device tests.
🧪 Running — nothing
No device tests run for this PR.
⏭️ Skipped — what neither suite runs
UI tests — 77 categories, 4 platforms
Platforms not run: Android, iOS, MacCatalyst, Windows
Each skipped platform and category is listed as a maui-pr-uitests (skipped) … status on this commit. Use /azp run maui-pr-uitests for the full suite.
Device tests — 105 categories, 4 platforms
Platforms not run: Android, iOS, MacCatalyst, Windows
Each skipped platform and project is listed as a maui-pr-devicetests (skipped) … status on this commit. Use /azp run maui-pr-devicetests for the full suite.
🤖 Why these tests — AI rationale (GPT-6.2 Sol + MAI Code 2)
UI tests
Each model chose independently; every test that runs was selected by at least one of them.
Platform
GPT-6.2 Sol
MAI Code 2
Android
—
—
iOS
—
—
MacCatalyst
—
—
Windows
—
—
GPT-6.2 Sol — Skip UI tests because unit tests directly cover the compiled-binding indexer fix.
XamlC and the source generators change indexer parsing and literal escaping; unit tests cover both.
No UI fixtures, native controls, or default UI build settings changed.
MAI Code 2 — Compiled binding path parsing change for XamlC and source generation; no UI or device suites are needed because coverage is in unit tests.
Changes are confined to XAML/compiled binding parsing and generated-string escaping.
Added XAML and BindingSourceGen unit tests cover dotted and bracketed indexer keys for both inflators.
No control handlers, platform behavior, runtime layout, or device-specific code is changed; UI and device suites would not add relevant coverage.
Device tests
Each model chose independently; every test that runs was selected by at least one of them.
Platform
GPT-6.2 Sol
MAI Code 2
Android
—
—
iOS
—
—
MacCatalyst
—
—
Windows
—
—
GPT-6.2 Sol — Skip device tests because the modified compiled-binding paths are covered without a device.
Controls.Xaml device tests exercise runtime binding parsing and compiled XAML resources, not compiled indexer paths.
No handlers, platform code, or device test infrastructure changed.
MAI Code 2 — Compiled binding path parsing and unit-test-only changes require no device tests.
The affected code is XamlC and source-generator infrastructure, not runtime device control behavior.
Changed tests are unit tests, not device tests, and no device handlers or platform code changed.
Compiled binding cases are covered by the added SourceGen and XAML unit tests.
Generated by /review run-tests. A targeted run is a fast signal, not full-suite certification.
… unit tests (#40732)
<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!
### Target Branch
| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |
- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).
Repository infrastructure. Agentic workflows run from the default
branch, so it targets `main`.
### Description of Change
MAUI Autopilot fix rounds couldn't run any unit tests on `main`: the
runner's SDK is older than the one `global.json` pins
(`12.0.100-alpha…`). On #40724 every thread reply said the tests "could
not run without the .NET 12 SDK".
- `maui-expert-autopilot` and `maui-expert-autopilot-opus` now install
the SDK pinned in the **base branch's** `global.json` (not the PR's)
before the agent starts. It goes into the runner tool cache, which the
agent container puts on `PATH`.
- `pkgs.dev.azure.com` is allowed so the repo's NuGet feeds restore.
- The prompt points at the Controls, XAML and SourceGen unit-test
projects.
#### Validation
- Fork probe
([run](https://github.com/kubaflo/maui/actions/runs/46027528623)) with
`main`'s `global.json`: inside the agent sandbox `dotnet --version`
printed `12.0.100-alpha.1.26523.103`, both in the workspace and in a
separate worktree (as the fix candidates use).
- `gh aw compile maui-expert-autopilot maui-expert-autopilot-opus`:
passed.
### Issues Fixed
None.
### Let AI finish this PR
- [ ] **Let the MAUI agent address review feedback and fix remaining
issues on this PR.** Maintainers still decide whether it is merged. For
PRs from forks, the agent opens a follow-up PR that keeps your commits.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Target Branch
mainnet11, for reviewDescription of Change
Compiled bindings (
x:DataType) split the binding path on every., including inside an indexer, so a dictionary key with a dot broke the path:XamlC (
SetPropertiesVisitor) and the XAML source generator (CompiledBindingMarkup) now split the path only on dots outside[...].Issues Fixed
Fixes #28333
Let AI finish this PR