Skip to content

Fix KSP crash for missing parent declaration in incremental compilation#3037

Draft
jaschdoc wants to merge 2 commits into
mainfrom
fix-3030
Draft

Fix KSP crash for missing parent declaration in incremental compilation#3037
jaschdoc wants to merge 2 commits into
mainfrom
fix-3030

Conversation

@jaschdoc

Copy link
Copy Markdown
Collaborator

This PR removes the internal KSP exception that can happen when recording class reference dependencies in incremental compilation, and moves the responsibility of obtain the parent declaration to call sites. That way, a dependency is safely recorded if there is a parent declaration available (the crash could happen for KSTypeImpl which does not have a parent declaration for its annotations, since KSType is not a KSNode or a KSDeclaration).

Depends on #3034
Fixes #3030

@jaschdoc
jaschdoc requested a review from hfmehmed July 15, 2026 10:34
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.

Unexpected missing parent declaration for KSNode '@NotNull' with KSP 2.3.10

1 participant