getting this error on an incremental build, I assu...
# ksp
e
getting this error on an incremental build, I assume this is a bug? What info would be helpful here?
re-running gradle resolves it
y
Looks so. Which version of room/ksp are you using?
e
this should be the latest, alpha07
not room lol, this is my own processor
y
Sorry, confused the channels 🤷‍♂️
e
sometimes I get this stacktrace instead
I can push up a branch that reproduces it
y
yea if you are able to reproduce it a branch and a bug report would be awesome. even the stack trace might be enough for the first one since it is an NPE in KSP code, second one is more scary
e
ran into this trying to reproduce another issue I'm seeing where sometimes an implicit return type (ex:
fun foo() = "test"
is missing. Haven't narrowed that one down yet.
t
Yes, the first one is a known issue. Fixed in https://github.com/google/ksp/pull/386. I'll try to see if I can repro the second stack trace with your branch.
e
I'm seeing where sometimes an implicit return type is missing
ok I don't think this is actually a bug, turns out the method was returning a platform type, which isn't equal to the non-nullable kotlin equivalent
a
I had the same issue some time ago... If it helps there's another example here: https://kotlinlang.slack.com/archives/C013BA8EQSE/p1616943749062100?thread_ts=1616943749.062100&cid=C013BA8EQSE
t
The 
ArrayIndexOutOfBoundsException
 (and
IOException
) seems to be a result of unclosed files (on exceptions) in previous builds in 
KotlinCompileDaemon
. With the above fix it should go away / be hidden. I'm closing them on exceptions in this PR https://github.com/google/ksp/pull/389. Fixes will be available in the release next week.
🎉 2