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

fix: add optional Git4Idea dependency to plugin.xml #526

Merged
merged 1 commit into from
May 7, 2024

Conversation

PhilKes
Copy link
Contributor

@PhilKes PhilKes commented May 3, 2024

This PR fixes #522 and fixes #523

Tested with:
Ubuntu 22.04
Pycharm Community 2023.3.5

Without the fix:

val repositories = GitUtil.getRepositoryManager(project).repositories

Throws when trying to generate a commit message:

Caused by: java.lang.ClassNotFoundException: git4idea.GitUtil PluginClassLoader(plugin=PluginDescriptor(name=CodeGPT, id=ee.carlrobert.chatgpt, descriptorPath=plugin.xml, path=~/IdeaProjects/git/CodeGPT/build/idea-sandbox/plugins/CodeGPT, version=2.6.3-233, package=null, isBundled=false), packagePrefix=null, state=active)

@carlrobertoh carlrobertoh merged commit e0f54a6 into carlrobertoh:master May 7, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NoClassDefFoundError: git4idea/GitUtil during generating a commit message Exception in plugin
2 participants