utopia-rise / godot-kotlin-jvm

Godot Kotlin JVM Module
MIT License
562 stars 38 forks source link

Change `kotlin` folder to `java` folder in IDEA project wizard #578

Open aless2003 opened 5 months ago

aless2003 commented 5 months ago

When you use gdj files which have been generated from Java Source Files, the game crashes on start with a NoClassDefFoundError, which is only shown when running the editor itself from the terminal. The same gdj file, but generated from a Kotlin class works fine.

The project is basically just the standard project generated by the IntelliJ plugin with renamed packages.

Here's both the log and the project I've been using: log.txt SuikaGame.zip

aless2003 commented 5 months ago

Ok so turns out it's because of the source set. When using src/main/kotlin Java source files aren't built, if you use src/main/java however instead, both Kotlin and java are being compiled and the game works as expected

chippmann commented 3 months ago

Yeah that's normal java/kotlin behaviour and not related to this project. Still i guess we could change the starting project folders in the wizard to use a java folder.