How can I import "com.intellij.openapi.vcs.ui.CommitMessage" and "com.intellij.vcs.commit.AbstractCommitWorkflowHandler" in IDEA 2024.2+
Answered
I can't import CommitMessage and AbstractCommitWorkflowHandler in version 2024.2 (it was working fine in older versions), I didn't find any information about the change in the official documentation
Please sign in to leave a comment.
Please share your project setup: Gradle Build scripts and plugin.xml files.
Thank you for your reply.My file configuration is as follows:
When I comment out vcs.ui.CommitMessage and vcs.commit.AbstractCommitWorkflowHandler, I can get 2024.2 to work with this configuration.
I can't provide information about my .xml for confidentiality reasons, but I'm sure it's worked fine before 2024.2, so if necessary, you can just cut to the chase and tell me what changes need to be made in this file to run the 2024.2+ release
Hi,
Targeting 2024.2 requires using IntelliJ Platform Gradle Plugin 2.x.
Also, even if you stick to 1.x, please always use the latest version (1.17.4). If you used it, you would get the information about 2024.2 requirement. It is highly recommended to use 2.x, though.
It still doesn't work, as I said before, my current configuration works fine in IDEA 2024.2 after commenting out the two imports, I used version 1.17.4 as you said (I needed to make sure that my plugin would still work in the older version, so I had to do that), but the CommitMessage and the AbstractCommitWorkflowHandle are still not included in the corresponding libraries, and what bothers me the most is that I can't find the documentation for the changes related to these two libraries, please tell me what to do!
You target
platformVersion = 2024.2
, which doesn't work properly with 1.x. 2.x is required to target 2024.2+. I don't know whether lack of these classes is directly caused by using 1.x with 2024.2, but I can't help you as long as I see the wrong project setup, which may have unknown side effects.