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

AdvancedCollectionView ArgumentOutOfRangeException fixed, or at least improved #4814

Open
wants to merge 1 commit into
base: winui
Choose a base branch
from

Conversation

myblindy
Copy link

@myblindy myblindy commented Dec 7, 2022

Fixes

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

AdvancedCollectionView crashes with ArgumentOutOfRangeException with live shaping (filtering).

What is the new behavior?

One less crash.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Created a feature/dev branch in your fork (vs. submitting directly from a commit on main)
  • Based off latest main branch of toolkit (specifically, the winui branch)
  • Tested code with current supported SDKs
  • New component
    • Pull Request has been submitted to the documentation repository instructions. Link:
    • Added description of major feature to project description for NuGet package (4000 total character limit, so don't push entire description over that)
    • If control, added to Visual Studio Design project
  • Sample in sample app has been added / updated (for bug fixes / features)
  • New major technical changes in the toolkit have or will be added to the Wiki e.g. build changes, source generators, testing infrastructure, sample creation changes, etc...
  • Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Header has been added to all new source files (run build/UpdateHeaders.bat)
  • Contains NO breaking changes

Other information

Closes #4813

@ghost
Copy link

ghost commented Dec 7, 2022

Thanks myblindy for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌

@ghost ghost requested review from michael-hawker and azchohfi December 7, 2022 16:36
@ghost ghost added the bug 🐛 An unexpected issue that highlights incorrect behavior label Dec 7, 2022
@michael-hawker michael-hawker changed the title fixed, or at least improved AdvancedCollectionView ArgumentOutOfRangeException fixed, or at least improved Dec 7, 2022
@michael-hawker
Copy link
Member

Hi @myblindy, thanks for opening up a PR. Can you add a few test cases which exercise this scenario and show the fix resolves the issue without impacting current behavior?

We're also working off of our main branch currently, so it'd be best to have this fix in there before we start migrating code for our next major release. Thanks.

@myblindy
Copy link
Author

myblindy commented Dec 7, 2022

No can do, sorry, the main branch doesn't compile at all. Entire projects don't even load and request updates to VS (I'm using 2022 17.5), including the test projects, and if I click on "download update" it just opens a blank bing.com page.

image

For now I just copied the collection view .cs files into my project and fixed them there and that works fine, so that brings me up to functional levels. Far from elegant, but my own code does compile and the fix works so I'm good for now I suppose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An unexpected issue that highlights incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants