Open ZacSweers opened 2 weeks ago
Tried a few different attempted workarounds but no luck so far
interface KRunnable : Runnable
)potentially could be a same issue as #1930
tldr: when getting declarations of a class KSP queries analysis API for declared member scope, inside which AA will perform a serial of checks including checking for override e.t.c.. which has put an assertion for the symbols to be checked in resolved status, I am not certain about the cause of the status not being resolved though, since manually resolving does not seem to help, the check was added recently, I might need to talk to JB regarding this.
Possibly yeah. Looks like this also happens with functions
Also happens if the base class is an abstract or open class
Actually this seems to intermittently also happen with non-java classes too :/
I am able to get this working by just not using constructor parameter properties
abstract class BaseRepro(
prefs: Runnable,
) : IRepro {
override val prefs: Runnable = prefs
}
Actually this seems to intermittently also happen with non-java classes too :/
can I get a case for non-java classes?
Just another kotlin class in another module
My concern is this is more widespread than #1930 , I've created https://youtrack.jetbrains.com/issue/KT-69070 issue for this, feel free to add more context there if you feel the issue is related in your case.
We encountered a crash in KSP2 (version
2.0.0-1.0.22
) in a very specific scenario. The crash comes from FIR/AA, but not sure if this is something wrong with KSP2's impl as the code itself compiles fine in K2 without KSP running.SharedPreferences
from android, but found it also repros with just Java'sRunnable
Repro:
When KSP2 runs on lib2, the below trace happens