I am new to Kotlin and intellij. I am following co...
# intellij
d
I am new to Kotlin and intellij. I am following code suggestion at kotlin-native-and-intellij-idea-without-extra-build-tools-like-gradle-maven but get the error
Copy code
kotlinx.serialization compiler plugin is not applied to the module, so this annotation would not be processed. Make sure that you've setup your buildscript correctly and re-import project.
What is the way to use compiler plugins without Gradle, so using only(?) .iml files in intellij? (the link explains why, as I'm also running a 1-day workshop on (FP in) Kotlin)
r
Hi! You can try specifying the
-XPlugin
compiler argument in the Kotlin Facet of your module in the Project Settings:
d
thx! great advice and insightful and should-work (unfortunately i get a can't-find-path error to the plugin jar file that really is there, absolute or relative ; and i see this is a recurring problem on certain older versions of intellij) furthermore, i don't even know if i downloaded the correct serialization compiler plugin
r
If possible, please share your IDEA version and the error message that you see
d
🤦 i had to remove quotation marks on the filepath thus.
-XPlugin=/Users/user/repo/kotlinx-serialization-compiler-plugin-for-ide-1.9.22.jar
thx!
👍 1