Hello ! I've a KMP project with 2 modules, one def...
# ksp
g
Hello ! I've a KMP project with 2 modules, one define a class, the other defines an interface that returns the class from the other module. When processing the interface, I'm only able to retrieve the name from
func.returnType.toString()
but
resolve()
only returns empty/null/"<Error>". Is it something already known or covered by pull/609?
I don't need to go on the other module or anything, just grabbing the package name that is visible in imports in the interface file.
j
can you provide some sort of reproduce case for this issue? Might sound like a bug to me.
It could be related to JS only issues with the new IR compiler. I'll try to get the latest SNAPSHOT of KSP if it's easy and apply to this project.
(thinking about the recent changes on KMP support, maybe related?)
Reproduced on a local 2.0.255 (kotlin 1.6.0-M1) (commit= b22dec0 from master right now)
Hello @Jiaxiang, sorry to get back on that topic. I've updated the sample with 1.0.1-RC and still have the issue (not sure if it's a bad usage or not). In this case I only requires the package name of the class (from another module). I can patch by reading the file import myself, but is it really the right way to do it? Feels very limitating in a mutli-module project because I don't know how to use
validate()
properly and just have to guess class qualifiers everywhere.
j
I will take a look later this week.
🙏 1