Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Rank > 1 Display Strings for Natvis #1406

Merged
merged 3 commits into from
Jul 7, 2023

Conversation

WardenGnaw
Copy link
Member

This PR fixes the display string for ArrayItems with Rank > 1 when the "[More...]" is expanded.
Before "[More...]" will expand starting at [0,0] instead of [0,50] for the first expansion since the offsets are at 50.

This change updated the call to GetDisplayNameFromArrayIndex from just index which would always start at 0, to startIndex + index to include the offet.
Added a test to cover this case and refactored the Matrix Natvis syntax to use rol/col instead of random behavior.

Fixes: #1403

This PR fixes the display string for ArrayItems with Rank > 1 when the
"[More...]" is expanded.

Before "[More...]" will expand starting at [0,0] instead of [0,50] for
the first expansion since the offsets are at 50.
@WardenGnaw
Copy link
Member Author

Flaky test failing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong numeration after first 50 items with multidimensional arrays in natvis (Linux)
3 participants