unable to create plugin Run Configuration in existing project

Answered

I had been developing a plugin across a few days in 2024.1.4 using devkit-241.18034.69, able to successfully build and run it using the Gradle Run Plugin run configuration. This is openjdk  21.

My machine (running MacOS Sonoma 14.5) and thus IDEA crashed.

On restarting the IDE, the run configuration to execute my plugin had disappeared. Any attempts to add a new run configuration are ignored--when I click on:
   File → Edit Configurations → + → Plugin
… nothing whatsoever happens.

I tried invalidating the caches, restarting, reinstalling IDEA, reopening the project, blowing away the .IDEA directory.

If I create a new plugin, it does create a run configuration and  I'm able to execute it successfully. However, clicking on the + button to add a second plugin run configuration similarly one doesn't work. Maybe it never did. (Maybe it only lets you create one, and IDEA still thinks there's one in my project?)

What's the easiest way to re-add a plugin run configuration to my project?

thanks in advance!

 

1
4 comments

Hi Jeff,

It sounds like a bug. Please report it on https://youtrack.jetbrains.com/issues/IDEA. Please also attach logs from the crash, if possible.

0

Thanks Karol. Any ideas on how to add a plugin run configuration to the project I have currently?

0

I seem to have the same issue, did you get any assistance in adding it back in, perhaps a result of an Intellij upgrade (I am on 2024.2.1 (Ultimate Edition), Plugin DevKit 242.21829.142 ?

0

Sort of--see  https://youtrack.jetbrains.com/issue/IJPL-158128 .  I had to shelve this for a while; I was stuck on using gradle to declare the plugin, and haven't seen a response on my challenge there.

0

Please sign in to leave a comment.