https://kotlinlang.org logo
#ksp
Title
g

glureau

07/27/2023, 1:58 PM
Getting back to KSP after a while, I get "ERROR TYPE" when calling resolve() on a type coming from another module. Am I missing an obvious settings here to define the dependency for KSP? (the project is here, when analyzing the field
MultiModule.dataClassFromLib
link from
sample
, knowing that the resolved type is there)
I've even added
Copy code
dependencies {
    ksp(project(":sample-lib"))
}
in the
samples
module but looks like it has no effect 🤔
f

Foso

07/27/2023, 2:49 PM
I'm also having problems with that error. It occours since 1.9.0-1.0.11. before that everything was working fine
t

Ting-Yuan Huang

07/27/2023, 5:13 PM
This is a bug that we are working on. Will try to do a new release for it. https://github.com/google/ksp/issues/1478
👍 2
g

glureau

07/27/2023, 6:30 PM
Thanks for the link. Also I'm using the 1.8.22-1.0.11 so not sure if it's the same problem or not 🤔
In my project, I've also tested those versions: 1.8.20-1.0.10 1.8.10-1.0.9, 1.8.0-1.0.9 1.7.20-1.0.8, 1.7.20-1.0.6 It's the same result all the time, so I presume I've a bad configuration somewhere else that explain my problem. Any hint appreciated.
j

Jiaxiang

07/28/2023, 6:33 PM
Hi @Foso can you give me a reproduce case for your issue so that I can verify if https://github.com/google/ksp/pull/1480 fixes?
f

Foso

08/02/2023, 6:14 PM
Hi @Jiaxiang, sorry i couldnt provide a project, but i just tried 1.0.13 and with that version everything is working fine again 🙂
🎉 1
g

glureau

08/07/2023, 8:01 AM
Do you plan to get this fix in Kotlin 1.8 by any chances? (or is it only relevant for 1.9?)
I've made a shorter version that showcase the original issue (ERROR TYPE on KMP multi-module). https://github.com/glureau/k2pb/tree/multi-module-debugging No problem on 1.9.0-1.0.11 but I can't upgrade to 1.9.0 for the time being. Would be really glad to have it fixed on 1.8 or to have a workaround.
t

Ting-Yuan Huang

08/14/2023, 11:12 PM
Sorry I missed this message. I'm surprised to see that it happens with 1.8. Will investigate later. Thanks for the test case!
🙏 1
2 Views