Fresh project downloaded from the wizard doesn't "...
# compose-desktop
r
Fresh project downloaded from the wizard doesn't "run" from the sidebar in IntelliJ. It shows as runnable, but the menu says "Nothing here" If I manually run the
:composeApp:desktopRun
task, it fails with
No main class specified and classpath is not an executable jar.
Manually running
:composeApp:run
does appear to work, but it's the hardest to find in the gradle panel. Any ideas what's going on? I worry that these kinds of issues will turn off people trying out compose desktop for the first time.
j
run
is the Gradle task to run a JVM executable, which is what Compose Desktop is.
a
“play” from the gutter should work too
Which project template did you download?
r
@Alexander Maryanovsky I generated a template from https://kmp.jetbrains.com/ with Android and Desktop checked.
I generated a second template project with identical setttings and opened it later and it... worked. Both the gutter "run" and composeAppdesktopRun
a
Strange. Maybe you didn’t wait for the gradle sync to finish the first time?
r
Here's the one that still won't run
Gradle is definitely fully synced. This initial project I generated still won't run from the gutter. It's strange.