We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We have some code that processes properties and potentially logs an error. The property is defined like this:
abstract class SomeClass { @get:SomeAnnotation abstract val stuff: List<String> }
We log an error like this:
fun KSPropertyGetter.logError() { environment.logger.error("Example error, this) }
In KSP1 this would correctly print:
Test.kt:3: Example error
but in KSP2 this prints
Example error
If I use this.parent (which uses the property declaration) it works as expected. I assume this is because there no explicit getter.
this.parent
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We have some code that processes properties and potentially logs an error. The property is defined like this:
We log an error like this:
In KSP1 this would correctly print:
but in KSP2 this prints
If I use
this.parent
(which uses the property declaration) it works as expected. I assume this is because there no explicit getter.The text was updated successfully, but these errors were encountered: