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

lsp: fix an issue when recursing through non-expanded nodes in the micro layout calculation. #188

Merged
merged 2 commits into from
Apr 5, 2024

Conversation

NiklasRentzCAU
Copy link
Member

When generating the SGraph for a KGraph, the SGraph will only be created for any expanded elements and does not recurse further into non-expanded elements. Previously, during the micro layout calculation in the LSP, this still recursed through non-expanded elements, generating IDs for them (resulting in null-IDs) and potentially causing issues and exceptions further down. This fixes the issue by not recursing through the elements either during micro layout, if they are not expanded.

@NiklasRentzCAU NiklasRentzCAU added bug Something isn't working LSP Affect the klighd language server. labels Apr 5, 2024
@NiklasRentzCAU NiklasRentzCAU self-assigned this Apr 5, 2024
non-expanded nodes. Added a check to avoid further NPEs at this place.
@NiklasRentzCAU NiklasRentzCAU merged commit b9037d4 into master Apr 5, 2024
3 checks passed
@NiklasRentzCAU NiklasRentzCAU deleted the nre/fix-non-expanded-nodes-generation branch August 7, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working LSP Affect the klighd language server.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant