Trying to rebuild for 2024.3 and hitting an odd error

Answered

I'm trying to rebuild my plugin for 2024.3 and so I bumped my until build and my dependency on com.dmarcotte.handlebars:243.21565.122

And then when I try to build, this is the error

 

10:10:30 AM: Executing 'build'…

> Task :initializeIntelliJPlugin

> Task :patchPluginXml
[gradle-intellij-plugin :patchPluginXml] Patching plugin.xml: attribute 'since-build=[231]' of 'idea-version' tag will be set to '231'
[gradle-intellij-plugin :patchPluginXml] Patching plugin.xml: attribute 'until-build=[243.*]' of 'idea-version' tag will be set to '243.*'

> Task :verifyPluginConfiguration
[gradle-intellij-plugin :verifyPluginConfiguration] The following plugin configuration issues were found:
- The 'since-build' property is lower than the target IntelliJ Platform major version: 231 < 243.
- The Kotlin plugin in version 1.8.22 used with the Gradle IntelliJ Plugin leads to the 'java.lang.OutOfMemoryError: Java heap space' exception, see: https://jb.gg/intellij-platform-kotlin-oom
See: https://jb.gg/intellij-platform-versions

> Task :compileKotlin NO-SOURCE
> Task :generateEffectiveLombokConfig UP-TO-DATE
> Task :compileJava UP-TO-DATE
> Task :processResources
> Task :classes
> Task :setupInstrumentCode
> Task :instrumentCode UP-TO-DATE
> Task :compileTestKotlin NO-SOURCE
> Task :generateTestEffectiveLombokConfig UP-TO-DATE
> Task :compileTestJava NO-SOURCE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE
> Task :instrumentTestCode UP-TO-DATE
> Task :instrumentedJar UP-TO-DATE
> Task :jar UP-TO-DATE
> Task :prepareTestingSandbox UP-TO-DATE
> Task :test NO-SOURCE
> Task :classpathIndexCleanup
> Task :prepareSandbox UP-TO-DATE

> Task :buildSearchableOptions FAILED
[0.015s][warning][cds] Archived non-system classes are disabled because the java.system.class.loader property is specified (value = "com.intellij.util.lang.PathClassLoader"). To use archived non-system classes, this property must not be set
16 actionable tasks: 7 executed, 9 up-to-date
2024-11-14 10:10:31,524 [     61] SEVERE - #c.i.i.p.PluginManager - Problems found loading plugins:
  The Code With Me (id=com.jetbrains.codeWithMe, path=~/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIU/2024.3/579197c8937d3a20f4c753e217ec286d942811f0/ideaIU-2024.3/plugins/cwm-plugin) plugin Plugin 'Code With Me' requires plugin 'intellij.platform.kernel.backend' to be installed
java.lang.Throwable: Problems found loading plugins:
  The Code With Me (id=com.jetbrains.codeWithMe, path=~/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIU/2024.3/579197c8937d3a20f4c753e217ec286d942811f0/ideaIU-2024.3/plugins/cwm-plugin) plugin Plugin 'Code With Me' requires plugin 'intellij.platform.kernel.backend' to be installed
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:376)
	at com.intellij.ide.plugins.PluginManagerCore.preparePluginErrors(PluginManagerCore.kt:328)
	at com.intellij.ide.plugins.PluginManagerCore.initializePlugins(PluginManagerCore.kt:651)
	at com.intellij.ide.plugins.PluginManagerCore$initializeAndSetPlugins$2.invokeSuspend(PluginManagerCore.kt:859)
	at com.intellij.ide.plugins.PluginManagerCore$initializeAndSetPlugins$2.invoke(PluginManagerCore.kt)
	at com.intellij.ide.plugins.PluginManagerCore$initializeAndSetPlugins$2.invoke(PluginManagerCore.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:163)
	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
	at com.intellij.platform.diagnostic.telemetry.impl.TracerKt.span(tracer.kt:56)
	at com.intellij.idea.Main$startApp$2$1$1.span(Main.kt:100)
	at com.intellij.diagnostic.CoroutineTracerShim.span$default(CoroutineTracerShim.kt:31)
	at com.intellij.ide.plugins.PluginManagerCore.initializeAndSetPlugins$intellij_platform_core_impl(PluginManagerCore.kt:857)
	at com.intellij.ide.plugins.PluginDescriptorLoader$scheduleLoading$pluginSetDeferred$1.invokeSuspend(PluginDescriptorLoader.kt:403)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
2024-11-14 10:10:31,527 [     64] SEVERE - #c.i.i.p.PluginManager - IntelliJ IDEA 2024.3  Build #IU-243.21565.193
2024-11-14 10:10:31,527 [     64] SEVERE - #c.i.i.p.PluginManager - JDK: 21.0.5; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2024-11-14 10:10:31,527 [     64] SEVERE - #c.i.i.p.PluginManager - OS: Mac OS X

**Start Failed**

Internal error

com.intellij.platform.instanceContainer.InstanceNotRegisteredException: com.intellij.platform.kernel.KernelService
	at com.intellij.platform.instanceContainer.internal.InstanceContainerImpl.instance(InstanceContainerImpl.kt:65)
	at com.intellij.serviceContainer.ComponentManagerImpl.getServiceAsync(ComponentManagerImpl.kt:699)
	at com.intellij.platform.kernel.impl.KernelApplicationInitializedListener.execute(KernelApplicationInitializedListener.kt:21)
	at com.intellij.platform.ide.bootstrap.ApplicationLoader$callAppInitialized$1.invokeSuspend(ApplicationLoader.kt:570)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)

-----
JRE: 21.0.5+8-b631.16 aarch64 (JetBrains s.r.o.)
/Users/majones/.gradle/caches/modules-2/files-2.1/com.jetbrains/jbre/jbr_jcef-21.0.5-osx-aarch64-b631.16/extracted/jbr_jcef-21.0.5-osx-aarch64-b631.16/Contents/Home

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':buildSearchableOptions'.
> Process 'command '/Users/majones/.gradle/caches/modules-2/files-2.1/com.jetbrains/jbre/jbr_jcef-21.0.5-osx-aarch64-b631.16/extracted/jbr_jcef-21.0.5-osx-aarch64-b631.16/Contents/Home/bin/java'' finished with non-zero exit value 3

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s
10:10:32 AM: Execution finished 'build'.

My current plugins are set to:


plugins {
    // Java support
    id("java")
    // Kotlin support
    id("org.jetbrains.kotlin.jvm") version "1.8.22"
    // gradle-intellij-plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin
    id("org.jetbrains.intellij") version "1.14.1"
    // gradle-changelog-plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin
    id("org.jetbrains.changelog") version "2.1.2"
    // detekt linter - read more: https://detekt.github.io/detekt/gradle.html
    id("io.gitlab.arturbosch.detekt") version "1.17.1"
    // ktlint linter - read more: https://github.com/JLLeitschuh/ktlint-gradle
    id("org.jlleitschuh.gradle.ktlint") version "10.0.0"
    // https://plugins.gradle.org/plugin/io.freefair.lombok
    id("io.freefair.lombok") version "8.4"
}

And I'd like to keep them that way if possible as the last time I upgraded the gradle-intellij-plugin it was painful.

Any ideas on this error about Code With Me?

0
1 comment

Actually, moving to 2.0 was required for 2024.3, and was painful somewhat, but done.  :)

0

Please sign in to leave a comment.