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

Unable to find commits for given revisions #786

Open
jomp16 opened this issue Dec 2, 2024 · 0 comments
Open

Unable to find commits for given revisions #786

jomp16 opened this issue Dec 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jomp16
Copy link

jomp16 commented Dec 2, 2024

What happened?

An error happens when asking to explain a git commit in a project with many modules and Git root, it does not happen when I use in a single project/module.

Captura de imagem_20241202_110928
Captura de imagem_20241202_110954

Relevant log output or stack trace

Unhandled exception in Dispatchers.Default

java.lang.IllegalStateException: Unable to find commits for given revisions: fa5646ddcb6960205d422164e759879b629c3dd8
	at ee.carlrobert.codegpt.actions.ExplainGitCommitAction.getCommitsForRevisions(ExplainGitCommitAction.kt:68)
	at ee.carlrobert.codegpt.actions.ExplainGitCommitAction.access$getCommitsForRevisions(ExplainGitCommitAction.kt:21)
	at ee.carlrobert.codegpt.actions.ExplainGitCommitAction$actionPerformed$1.invokeSuspend(ExplainGitCommitAction.kt:38)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelled}@702edf, Dispatchers.Default]

Steps to reproduce

Have a single project with multiple Gradle modules, and then right-click a commit and ask it to explain commit with codeGPT.

CodeGPT version

2.13.1-241.1

Operating System

Linux

@jomp16 jomp16 added the bug Something isn't working label Dec 2, 2024
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

1 participant