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

Fixed endless CompletionStage chaining. #3621

Merged
merged 1 commit into from
Feb 18, 2022

Conversation

sdedic
Copy link
Member

@sdedic sdedic commented Feb 17, 2022

The PR fixes TreeNodeProvider.getNodeId() call, which was supposed to find (or create) node LSP ID. The original code chained CompletableStages endlessly, eventually runnin OOM. The code was also not updated sufficiently as the rest of code evolved. Since holdChildren is now supposed to contain entries for all nodes known to the client, the fix will create these records for all nodes up to the root.

@sdedic sdedic self-assigned this Feb 17, 2022
@sdedic sdedic added kind:bug Bug report or fix LSP [ci] enable Language Server Protocol tests labels Feb 17, 2022
Copy link

@JaroslavTulach JaroslavTulach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seeing test: assuming it fails before and succeeds now. You have my go!

@sdedic
Copy link
Member Author

sdedic commented Feb 17, 2022

Conflicted with another merged PR -- rebased on latest master.

@sdedic sdedic merged commit 2df6992 into apache:master Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Bug report or fix LSP [ci] enable Language Server Protocol tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants