0

I develop Intellij idea plugin. Currently I'm migrating to Intellij platform gradle plugin 2.*. The problem is I cannot use local IDE instance to launch plugin. Once I do so (by switching from "intellijIdeaCommunity" to "local"), my project stops compiling. This example project illustrates my problem: https://github.com/evg64/HelloWorldPlugin

The project compiles as is, however if to modify build.gradle.kts by replacing:

intellijIdeaCommunity("2024.3.1")

with:

local("/path/to/my/local/ide/instance")

then I get the following error:

e: file:///.../src/main/kotlin/com/helloworld/actions/HelloWorldAction.kt:3:42 Unresolved reference 'AnAction'

"/path/to/my/local/ide/instance" leads to the following IDE: enter image description here

What am I doing wrong?

1
  • I have figured out that for some reason it does not work with kotlin gradle plugin v2.0.0 (org.jetbrains.kotlin.jvm). Once I change kotlin gradle plugin version to 1.9.25, it works fine. Commented Jan 4 at 14:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.