-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
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
Simple string member is always null in 20200716
#23
Comments
I pulled your |
I am able to reproduce with |
Strange... I was running from IntelliJ, but that should be similar. I wonder if maybe there's some sort of stale state issue with local projects or incremental reruns? |
Actually now I am no longer able to reproduce the issue again even with
|
Away from my computer now, but what if you try an incremental build? That would be consistent with trying compileKotlin first followed by build, and similar to my workflow when I encountered it |
I was able to reproduce after configured IDE to run Gradle build, AND disable incremental compilation in gradle properties. Even if I added one line in This is actually not a complete regression. There is a major issue (see android/kotlin-for-ksp#46), so in 20200626 build you should be getting There are some major efforts to address this issue, unfortunately in latest release we didn't include a fix that will address the use case of inspecting default annotation argument from Java library android/kotlin#67 . I tried the locally built KSP and it is producing the following result.
Let me know if you need help on how to build KSP locally, it should also work if you just treat |
* Add pluginClasspaths to the configuration
This appears to be a regression from
20200626
to20200716
Repro case in this PR: ZacSweers/MoshiX#25. Run
./gradlew :sample:compileKotlin
In
KspUtil.kt
, there is a helpergetMember()
function that gets an annotation member's value by name. That PR uses this fromMoshiSealedSymbolProcessor
to look up the value of agenerator
member. It does find the member, but now its string value is always null.The text was updated successfully, but these errors were encountered: