Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LY1806620741 opened this issue Oct 12, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@LY1806620741
Copy link

LY1806620741 commented Oct 12, 2024

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 LY1806620741 added the bug Something isn't working label Oct 12, 2024
@LY1806620741
Copy link
Author

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

It fix

@YannCebron
Copy link
Member

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 YannCebron closed this as not planned Won't fix, can't repro, duplicate, stale Oct 14, 2024
@LY1806620741
Copy link
Author

LY1806620741 commented Oct 21, 2024

@YannCebron

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

@YannCebron
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants