JetBrains / intellij-platform-gradle-plugin

Gradle plugin for building plugins for IntelliJ-based IDEs
https://plugins.jetbrains.com/docs/intellij/gradle-prerequisites.html
Apache License 2.0
1.4k stars 270 forks source link

Cannot add dependency to Python Community Edition #1671

Closed ohle closed 5 days ago

ohle commented 5 days ago

What happened?

I'm trying to add a dependency on the Python Community Edition plugin to an IDEA plugin:

intellij {
  version = '2023.1.1'
  plugins = ['java', 'PythonCore']
}

but this fails to resolve. Consequently, <depends>com.intellij.modules.python</depends> is marked red in plugin.xml and cannot be autocompleted, and I don't have access to the plugin's classes.

Relevant log output or stack trace

Could not determine the dependencies of task ':prepareSandbox'.
> Failed to query the value of task ':prepareSandbox' property 'pluginDependencies'.
   > Cannot find builtin plugin 'PythonCore' for IDE: /home/claussen/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2023.1.1/770a0552545fe6ab0de3e2f8ac9adb7ea3046417/ideaIC-2023.1.1

Steps to reproduce

Add the above dependency to a gradle project with org.jetbrains.intellij:1.17.4

Gradle IntelliJ Plugin version

1.17.4

Gradle version

8.5

Operating System

Linux

Link to build, i.e. failing GitHub Action job

No response

ohle commented 5 days ago

My bad, had to do some bespoke version matching and specify precise version numbers for both IDEA and PythonCore.