Plugin not using License of IntelliJ ultimate and prompts for Activation
已回答
I have an intelliJ ultimate version and trying to develop a plugin. I have set the type to IU and localPath to point to the IntelliJ ultimate location.
On running runIde task, it starts an intelliJ ultimate instance but does not use/recognise the license and prompts for Activation. I even tried to set IdeDir of runIde task to intellij ultimate location but still it doesnt work
How to i debug the plugin by starting the IntelliJ ultimate with licence.
Any help on this please ?
请先登录再写评论。
Please try removing IDE sandbox folder https://plugins.jetbrains.com/docs/intellij/ide-development-instance.html#the-development-instance-sandbox-directory
I tried removing the IDE sandbox folder under build, but it does not have any effect and got created when i executed runIde task.
It starts the intelliJ ultimate instance but does not recognize the license and prompts for Activation everytime. how do I make the runIde task to use intelliJ ultimate with proper license loaded ?
Pls note, when i start the intelliJ ultimate seperately (not from plugin), it starts with license correctly.
Issue is when trying to use/test plugin via runIde task.
Please help on this as I am currently blocked for past few weeks
Thanks
I could not reproduce this, after activation of license in sandbox IDE instance it would recognize it again on next start as expected.
Could you please link your Gradle build file?
Thanks for the quick response Yann.
Please find my gradle build file added below
Location of my intellij ultimate -
C:\\softwares\\idea2023.1\\2023.1.5It is licensed and i could see the .key file in the above folder.
1.
id("org.jetbrains.intellij") version "1.13.3"is outdated version, please always update to the latest one https://github.com/JetBrains/gradle-intellij-plugin/releases2. in
intellijblock, you can't set “type” and “localPath” simultaneously, please refer to the docs https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#intellij-extension-typeTry setting
typeonly with additionalversion.set("2023.1.5")instead and remove the explicitideDirconfiguration inrunIdetask, then activate sandbox instance.