ZacSweers / redacted-compiler-plugin

A Kotlin compiler plugin that generates redacted toString() implementations.
Apache License 2.0
391 stars 26 forks source link

`@Redacted` annotation does not resolve in IDE but still compiles #172

Closed kirillzh closed 6 months ago

kirillzh commented 1 year ago

The @Redacted annotation does not resolve in any module that applies the plugin:

Screenshot 2023-09-15 at 1 33 53 PM

The code still compiles just fine but the reference doesn't get resolved in IDE.

Environment:

ZacSweers commented 1 year ago

I'm not sure what to do about that, do you have a repro case?

kirillzh commented 11 months ago

We addressed this issue by adding dev.zacsweers.redacted:redacted-compiler-plugin-annotations as a default dependency in the module, in addition to the plugin.

kirillzh commented 6 months ago

The fix for us was to add implementation("dev.zacsweers.redacted:redacted-compiler-plugin-annotations:version")