JetBrains / intellij-platform-plugin-template

Template repository for creating plugins for IntelliJ Platform
Apache License 2.0
3.05k stars 618 forks source link

Gradle is garbage #336

Closed nabato closed 1 year ago

nabato commented 1 year ago

Changing jvmToolchain version sometimes randomly leads to:

Error: Could not find or load main class Main

Adding JDK of needed version through plugin settings or Intellij project settings or manually adding to classpath doesn't help. Invalidating caches of Intellij doesn't help. Gradle's clean task doesn't help.

Only ./gradle/cachedeletion helps.

OS: MacOS.

P.S. Generally it looks like plugin team of Intellij is dedicated to do make-work and overcomplicate stuff for the sake of it. Dozens of cryptic details in the worst build system I've encountered.

lukeribchester commented 1 year ago

Which version of Gradle were you using?

I encountered the same error after upgrading to either 7.5 or 7.5.1. Upgrading to 7.6 appears to have resolved this for me (on macOS 13.1).

See #335

nabato commented 1 year ago

@lukeribchester, it were 7.5.* and 7.6. I remember it because I updated dependencies in build.gradle.kts and gradle.properties to the previous versions and to the next available versions in order to track this bug.