Comments (11)
fixed in #528
from ksp.
android/kotlin#60 contains a partial fix. With that commit you will be able to see the name of the missing argument, but not able to find out the default value of that argument. Still working to find a solution to find the default value.
from ksp.
i think this bug might already be fixed?
https://android-review.googlesource.com/c/platform/frameworks/support/+/1513790 is passing.
from ksp.
actually nevermind, looks like it is still broken for defaults values w/ other annotations.
from ksp.
Yes, it is broken for annotations declared in kotlin and then compiled.
from ksp.
Unfortunateely this still looks broken in beta07.
To reproduce, you can enable this line in the test in AndroidX
from ksp.
fixed in #591
from ksp.
I think I ran into an edge case in 1.0 where, even with this fix, I get a null default value in the case where a class is defined within the annotation class.
Happens with both kotlin and java - here is a kotlin example.
annotation class Example(
val classParam: KClass<*> = DEFAULT::class
) {
object DEFAULT
}
Moving the object outside the annotation class fixes the problem
from ksp.
is the above class from a compiled library?
from ksp.
Yes, the annotation class is defined in a compiled library.
from ksp.
thanks, I'll create a separate issue to track.
from ksp.
Related Issues (20)
- How to get stable fully qualified name of a KSType?
- [KSP2] The JVM names of internal members are not mangled
- [KSP2] "internal" members are out of order in `Resolver.getDeclarationsInSourceOrder()`
- Lost feature: Can't get final fields values
- Docstring is not available for types resolved from annotation arguments
- [KSP2] The package name of FunctionN is different between KSP1 and KSP2 HOT 1
- Annotations are missing on typealias type args HOT 1
- [KSP2] Annotation value is missing in nested annotations
- Configuration kspKotlin<ios target>ProcessorClasspath was resolved during configuration time after updating to Kotlin 2.2 RC1
- [KSP2] Type annotation value is missing in nested annotations
- [KSP2] Annotation arguments with default values are missing
- [KSP2] Couldn't find enum values in annotation args
- KSP2 cannot load Android lint checks jar due to `FileTooBigException` HOT 1
- [KSP2] Couldn't find type values in annotation args HOT 1
- [KSP2] Hilt incompatibility: `Did you forget to apply the Gradle Plugin?`
- [KSP2] KSAnnotations with KClass properties with a default value always resolve to error types HOT 1
- [KSP2] KSAnnotations with annotation properties with a default value always resolve to null HOT 1
- ksp configurations do not resolve versions from gradle platform
- [KSP2] Kotlin `Function*` types reports inconsistent package and qualified names
- [KSP2] Intersection types are not modeled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ksp.