-
Notifications
You must be signed in to change notification settings - Fork 272
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
[KSP2] Calling getDeclarationsInSourceOrder throws KotlinIllegalStateExceptionWithAttachments #1930
Comments
This issue appears to have been fixed, can you help me confirm? |
maybe not, but I can't seem to reproduce the issue with your repro. |
Oops, sorry I moved the files to a lib module to test compiled origins and forgot to move them back. I just tried the latest main and can still reproduce. |
created upstream issue for this: https://youtrack.jetbrains.com/issue/KT-69070 |
Simply removing this line seems to help: https://github.com/JetBrains/kotlin/blob/cff91084f650490747a650869cbf9e3e316f1e93/compiler/fir/providers/src/org/jetbrains/kotlin/fir/scopes/impl/FirFakeOverrideGenerator.kt#L668 on the other hand, in the debugger, at the exception site, the status of the fir symbol is in resolve phase of |
It seems that the Kotlin parent has to be generic. Here's another repro with |
The upstream issue was fixed last week and we are waiting for the next compiler update. build-2.1.0-dev-4693 |
Verified with Kotlin 2.1.0-dev-5441. |
This is another test case in XProcessing. Calling
getDeclarationsInSourceOrder
on a Java class implementing a Kotlin interface throws KotlinIllegalStateExceptionWithAttachments. If the sources are compiled then it works.Repro: kuanyingchou@d4962e8
The text was updated successfully, but these errors were encountered: