codymikol / git-down

A rewrite of the popular project GitUp that works in Linux, Mac, and Windows.
MIT License
29 stars 3 forks source link

error during add #104

Open meetyingying opened 1 month ago

meetyingying commented 1 month ago

Exception in thread "AWT-EventQueue-0" org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of add command at org.eclipse.jgit.api.AddCommand.call(AddCommand.java:244) at com.codymikol.extensions.GitExtensionsKt$stageAll$2.invoke(GitExtensions.kt:42) at com.codymikol.extensions.GitExtensionsKt$stageAll$2.invoke(GitExtensions.kt:35) at com.codymikol.extensions.GitExtensionsKt$command$2.invokeSuspend(GitExtensions.kt:24) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [androidx.compose.ui.awt.ComposeBridge$coroutineExceptionHandler$1@19a0f946, androidx.compose.runtime.BroadcastFrameClock@584df260, StandaloneCoroutine{Cancelling}@477ed4d8, FlushCoroutineDispatcher@36e2ec60] Caused by: org.eclipse.jgit.errors.LockFailedException: Cannot lock /home/yingying/Documents/portfolio-YingYing/.git/index. Ensure that no other process has an open file handle on the lock file /home/yingying/Documents/portfolio-YingYing/.git/index.lock, then you may delete the lock file and retry. at org.eclipse.jgit.dircache.DirCache.lock(DirCache.java:222) at org.eclipse.jgit.dircache.DirCache.lock(DirCache.java:293) at org.eclipse.jgit.dircache.DirCache.lock(DirCache.java:259) at org.eclipse.jgit.lib.Repository.lockDirCache(Repository.java:1294) at org.eclipse.jgit.api.AddCommand.call(AddCommand.java:129) ... 11 more