While testing K2 IDE support in IJ 2024.1 and an F...
# k2-adopters
z
While testing K2 IDE support in IJ 2024.1 and an FIR plugin that reports errors, I’m not seeing the IDE reflect those errors. Is this expected in preview? Or should I file an issue?
d
By default 3rd-party compiler plugins are not applied during import (KTIJ-29248) To enable this behavior using
kotlin.k2.only.bundled.compiler.plugins.enabled
registry flag
👍 2
z
hmm, still not seeing anything after disabling that registry flag. Is there anything I could do to debug this? Or would this be an issue I should file?
this is also in Android Studio Koala canaries, which may be downstream from the K2 support in IJ 2024.1's release. It's built on 2024.1 though
d
cc @Roman Golyshev
z
I've got a public repro as well (both the plugin and the consuming project)
r
Hi! It would be really great if you could provide that public repro - I can take a look
z
the plugin (built from this branch's latest release): https://github.com/ZacSweers/redacted-compiler-plugin/pull/179 the repro consuming project: https://github.com/ZacSweers/CatchUp/pull/1089 in the consuming project, I left a toehold for the above repro in
AuthInterceptor.kt
. Just uncomment the class-level
@Redacted
annotation, which is something the FIR plugin above will error on. Note the branch doesn't fully build yet due to moving pieces on the compose side of things, but the specific repro subproject should build. If it doesn't let me know and I can try to fix it up
Copy code
./gradlew :libraries:util:compileReleaseKotlin
thank you color 1