camel-tooling / camel-idea-plugin

Apache Camel Intellij IDEA plugin
Apache License 2.0
201 stars 52 forks source link

Camel Idea Plugin 1.2.8 not working with IntelliJ IDEA 2024.1.4 #1031

Closed mjga-trifork closed 2 months ago

mjga-trifork commented 3 months ago

I can for the life of me not get the 1.2.8 plugin to work with IntelliJ IDEA 2024.1.4 (Ultimate Edition). Is this version of the plugin not compatible with this version of IntelliJ?

I get a lot of these errors in the IntelliJ log, but it's the only Camel Idea Plugin related logs i can find:

WARN - #c.i.i.s.i.StartupManagerImpl - Migrate com.github.cameltooling.idea.CamelPluginStartup to ProjectActivity [Plugin: org.apache.camel]
com.intellij.diagnostic.PluginException: Migrate com.github.cameltooling.idea.CamelPluginStartup to ProjectActivity [Plugin: org.apache.camel]
    at com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivities(StartupManagerImpl.kt:276)
    at com.intellij.ide.startup.impl.StartupManagerImpl.access$runPostStartupActivities(StartupManagerImpl.kt:68)
    at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3$2.invokeSuspend(StartupManagerImpl.kt:191)
    at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3$2.invoke(StartupManagerImpl.kt)
    at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3$2.invoke(StartupManagerImpl.kt)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
    at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
    at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
    at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3.invokeSuspend(StartupManagerImpl.kt:190)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:270)
    at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

Let me know if you need more information.

davsclaus commented 3 months ago

I use the community version of 2014.1.2 and I dont get any kind of WARNs.

davsclaus commented 3 months ago

Upgraded to 2014.1.4 community and I cannot see these WARNs

davsclaus commented 3 months ago

I guess its a WARN about that the plugin should be migrated some code to newer APIs.

davsclaus commented 3 months ago

Can you try 1.2.9 release

mjga-trifork commented 3 months ago

1.2.9 made no apparent difference. image At least I don't see the Camel icon to the left of my route, and I get no code suggestions (except for the GitHub Copilot one): image

I don't know if it's important, but it might be of use to know, that this is a Kotlin based Spring Boot 3 project and we're using Gradle.

davsclaus commented 3 months ago

1) is the WARN gone

2) okay can you try loading a plain java based maven project

mjga-trifork commented 3 months ago
  1. is the WARN gone

Nope. I still get the exact same warning.

  1. okay can you try loading a plain java based maven project

I cloned the camel-examples repo, and it works fine for those: image

Hmm. So it's obviously something in my project...

essobedo commented 2 months ago

Hi, could you please provide a small project to reproduce?

mjga-trifork commented 2 months ago

Actually just creating a project with the Spring Boot Initializr reproduces it on my machine: https://start.spring.io/#!type=gradle-project-kotlin&language=kotlin&platformVersion=3.2.8&packaging=jar&jvmVersion=17&groupId=com.example&artifactId=camel-plugin-issue&name=camel-plugin-issue&description=camel-plugin%20issue%201031%20project&packageName=com.example.camel-plugin-issue&dependencies=camel

I am also attaching a small demo project. camel-plugin-issue.zip

IntelliJ IDEA 2024.1.4 (Ultimate Edition) Camel plugin v. 1.2.9

essobedo commented 2 months ago

I don't get this warning with both IntelliJ IDEA 2024.1.4 Ultimate and Community Edition. Anyway, this plugin doesn't support Kotlin so I'm closing this ticket, feel free to create another ticket to add the support of Kotlin