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

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.



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:

Information:Kotlin: Kotlin JPS plugin version 1.0.0-beta-1038-IJ141-17
Information:Kotlin: Using kotlin-home = C:\Users\cbeust\.IntelliJIdea14\config\plugins\Kotlin\kotlinc
Information:Kotlin: Kotlin Compiler version 1.0.0-beta-1038
Information:10/24/2015 5:11 PM - Compilation completed successfully with 3 warnings in 3s 343ms
Warning:(17, 25) Kotlin: Parameter 'level' is never used
Warning:(43, 25) Kotlin: Parameter 'level' is never used
Warning:(13, 13) Kotlin: Variable 'project' is never used

$ ls -ltr
total 1421
drwxr-xr-x    1 cbeust   Administ        0 Oct 15 20:47 annotations/
drwxr-xr-x    1 cbeust   Administ        0 Oct 21 19:06 src/
drwxr-xr-x    1 cbeust   Administ     4096 Oct 23 17:37 lib/
-rw-r--r--    1 cbeust   Administ      155 Oct 23 17:37
drwxr-xr-x    1 cbeust   Administ        0 Oct 23 17:37 META-INF/
-rw-r--r--    1 cbeust   Administ      615 Oct 23 21:41 kobalt-intellij-plugin.iml
-rw-r--r--    1 cbeust   Administ  2902360 Oct 24 16:11

$ find . -name \*class


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.


Please sign in to leave a comment.