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

Snippet to reproduce exception when calling getExpandedTreePaths() #2504

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

Conversation

ptziegler
Copy link
Contributor

This snippet shows how to cause an AssertionFailedException when calling getExpandedTreePaths() on a virtual tree.

When clicking the "refresh" button for the first time, everything works fine.

On the second time, the following error is logged:

!MESSAGE Invalid index value 2 >= 2

On the third time, an AssertionFailedException is thrown.

See:
#2491

This snippet shows how to cause an AssertionFailedException when calling
getExpandedTreePaths() on a virtual tree.

When clicking the "refresh" button for the first time, everything works
fine.

On the second time, the following error is logged:

> !MESSAGE Invalid index value 2 >= 2

On the third time, an AssertionFailedException is thrown.

See:
eclipse-platform#2491
@ptziegler
Copy link
Contributor Author

What seems to be important is that the parts of the tree must be outside the visible area. Meaning the exception isn't thrown when the shell is made larger.

I think what's happening is that the refresh() call only refreshes the visible tree items, leaving the viewer in an inconsistent state.

Copy link
Contributor

github-actions bot commented Nov 8, 2024

Test Results

 1 821 files  ±0   1 821 suites  ±0   1h 53m 11s ⏱️ - 1m 48s
 7 725 tests ±0   7 496 ✅  - 1  228 💤 ±0  1 ❌ +1 
24 336 runs  ±0  23 588 ✅  - 1  747 💤 ±0  1 ❌ +1 

For more details on these failures, see this check.

Results for commit 2cec594. ± Comparison against base commit edc926d.

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.

1 participant