Status Update
Comments
sg...@google.com <sg...@google.com>
cl...@google.com <cl...@google.com> #2
cl...@google.com <cl...@google.com> #3
Our team is also running into this because we use kotlin reflection to set up mock data for previews.
Can you suggest any workaround that we can apply locally to make layout lib include kotlin reflect until it is officially fixed? We are obviously including it as a build dependency but the layout lib preview doesn't pick it up for some reason.
cl...@google.com <cl...@google.com> #4
I do not see this issue in Electric Eel Beta 4, but I do see it in Flamingo Canary 6.
cl...@google.com <cl...@google.com> #5
I do not see this issue in Electric Eel Beta 4, but I do see it in Flamingo Canary 6.
Is it with the very same project? I'm trying to rule out whether this is related to specific library/compiler versions.
Thanks!
ap...@google.com <ap...@google.com> #6
Yes, that was with the same project. I can double check with the latest versions of each IDE and get back to you though.
cl...@google.com <cl...@google.com> #7
Correction: I was either mistaken before, or behavior has changed, but I am now getting the KotlinReflectionNotSupportedError
issue for IDE compose previews in both EE Beta 5 and Flamingo Canary 8.
Kotlin 1.6.21 AGP 7.3
an...@google.com <an...@google.com> #8
to...@gmail.com <to...@gmail.com> #9
sg...@google.com <sg...@google.com> #10
Diego, this looks to be the same problem as
Description
Note that this issue is not reproduced on master, but still present up to the latest stable version, 2.0.73. That's why this issue is about figuring out when and how things are fixed, and if possible, backporting them to necessary stable branches, e.g., 2.0 (for AS 4.0).
The issue is found while working on a new front-end (a.k.a.
fir
) ofkotlinc
. Please find attached class file generated by (still work-in-progress)fir
. Please note that the class file has a resolution error, so the expected behavior is:if the
main
is simply callingInRangeWithNonmatchingArgumentsKt#box
.Interestingly, depending on versions, errors are different, but I guess it's just due to the different place of "first"
isConsistentSSA
check.And, this is the version used by
kotlin
project (I'll update that once the original issue is fixed; I don't want to update D8/R8 to hide the other issue):