No classes generated for my plug-in
For some reason, generating the .zip file for my plug-in generates a .zip file with no classes in the jar file:
$ jar tf /d/tmp/kobalt-intellij-plugin.jar
META-INF/MANIFEST.MF
META-INF/plugin.xml
Looking at the directory of my plug-in, I can find no bin directory, so no .class files anywhere. Changing the output directory doesn't change anything.
My plug-in works fine if I launch it as a debug configuration, though, IDEA just refuses to generate .class files for it.
Any idea what I'm doing wrong?
It's written in Kotlin, in case it matters.
Thanks.
Please sign in to leave a comment.
rebuild project first?
maybe Prepare Plugin builds the project, maybe it does not. I usually rebuild, then prepare.
Yup, first thing I did. It's definitely building but it's not generating any class files:
why not try to build with gradle as in this example:
https://github.com/JetBrains/kotlin-examples/tree/master/gradle/mixed-java-kotlin-hello-world
This is just a simple Kotlin example, it doesn't appear to be an IDEA plug-in written in Kotlin. As far as I know, the only way to build such plug-ins is from IDEA itself.
I found the problem: the output directory simply said "out", which apparently confused IDEA. Instead, you need to specify an absolute path, e.g. "/Users/...{project}/out".
It would be nice if IDEA produced an error when it can't create the files, though.