intellij-platform-plugin-template icon indicating copy to clipboard operation
intellij-platform-plugin-template copied to clipboard

then I use git4idea bundledPlugin, project lost com.intellij.dvcs.*(com.intellij.dvcs.repo.Repository) dependency

Open LY1806620741 opened this issue 1 year ago • 4 comments

What happened?

then I use git4idea bundledPlugin, project lost com.intellij.dvcs.*(com.intellij.dvcs.repo.Repository) dependency

Relevant log output or stack trace

Cannot access 'com.intellij.dvcs.repo.Repository' which is a supertype of 'git4idea.repo.GitRepository'. Check your module classpath for missing or conflicting dependencies

Steps to reproduce

  1. add platformBundledPlugins = Git4Idea in gradle.properties, then use
GitUtil.getRepositoryManager(project!!).getRepositoryForFileQuick(FileDocumentManager.getInstance().getFile(FileEditorManager.getInstance(project).getSelectedTextEditor()?.getDocument()!!))
  1. then run Plugin in Gradle project

Gradle IntelliJ Plugin version

3.1.0

Gradle version

8.10.2

Operating System

Windows

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

No response

LY1806620741 avatar Oct 12 '24 08:10 LY1806620741

I try update libs.versions.toml intelliJPlatform = "2.1.0" to intelliJPlatform = "2.0.1"

It fix

LY1806620741 avatar Oct 12 '24 09:10 LY1806620741

This is expected behaviour and Gradle IntelliJ Plugin would have logged a warning for that.

https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#usage

YannCebron avatar Oct 14 '24 06:10 YannCebron

@YannCebron

but intelliJPlatform plugin different effect in "2.1.0" and "2.0.1", they all "2.X".

LY1806620741 avatar Oct 21 '24 08:10 LY1806620741

looks related https://youtrack.jetbrains.com/issue/MP-7019#

YannCebron avatar Oct 21 '24 13:10 YannCebron