https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
d

Derek Ellis

05/04/2020, 11:51 PM
Has anyone ever had an issue with native code autocomplete in a multi-module project?
👍 1
d

Dominaezzz

05/04/2020, 11:58 PM
Yeah, it happens. You just have to shake the IDE in the right place.
i.e. Clean, Invalidate Caches, etc.
d

Derek Ellis

05/05/2020, 2:14 AM
Unfortunately my attempts to shake the IDE into getting the autocomplete to work in the native sourcesets has failed. As far as I can tell the module structure is identical to a single-module MPP, but the IDE features are still broken
d

Dominaezzz

05/05/2020, 2:20 AM
How many native targets do you have?
d

Derek Ellis

05/05/2020, 2:23 AM
I have three multiplatform modules, each one currently only has a single mingw target
d

Dominaezzz

05/05/2020, 2:40 AM
Hmm, what versions. 1.3.72?
The IDE and gradle plugin version have to be the same.
d

Derek Ellis

05/05/2020, 2:42 AM
Hmm I think I actually have 1.4-M1 installed in the IDE and 1.3.72 in the project, I'll try changing that
Yep! had 1.4 installed on top of 1.3.72 and uninstalling it fixed it. Thank you!!
👍 1
c

clark

03/04/2021, 7:02 AM
How do I check the versions I have? My autocomplete is currently failing as well.
d

Derek Ellis

03/05/2021, 2:02 PM
You can look for the Kotlin plugin in the AS/IntelliJ settings
5 Views