2017-11-04 2 views
0

색인을 생성 할 파일을 선택하면 Eclipse에 아래 오류가 표시됩니다. 이 문제를 해결할 방법이 있습니까?eGit 플러그인 (Eclipse Neon3)을 사용하여 색인에 파일을 추가 할 수 없습니다.

org.eclipse.core.runtime.CoreException: Failed to add resource to index 
    at org.eclipse.egit.core.op.AddToIndexOperation.execute(AddToIndexOperation.java:80) 
    at org.eclipse.egit.ui.internal.actions.AddToIndexActionHandler$1.run(AddToIndexActionHandler.java:57) 
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) 
Caused by: org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of add command 
    at org.eclipse.jgit.api.AddCommand.call(AddCommand.java:252) 
    at org.eclipse.egit.core.op.AddToIndexOperation.execute(AddToIndexOperation.java:77) 
    ... 2 more 
Caused by: org.eclipse.jgit.errors.LockFailedException: Cannot lock C:\Users\kkuma203\git\voice-war-nwp-pluto\.git\index 
    at org.eclipse.jgit.dircache.DirCache.lock(DirCache.java:250) 
    at org.eclipse.jgit.dircache.DirCache.lock(DirCache.java:327) 
    at org.eclipse.jgit.dircache.DirCache.lock(DirCache.java:293) 
    at org.eclipse.jgit.lib.Repository.lockDirCache(Repository.java:1192) 
    at org.eclipse.jgit.api.AddCommand.call(AddCommand.java:148) 
    ... 3 more 

답변

1

수동index.lock 파일을 삭제하여이 오류를 해결 : 아래

Eclipse error message

Failed to add resource to index 
    Failed to add resource to index 
    Exception caught during execution of add command 

예외의 스택 추적입니다. 이제 인덱스에 파일을 추가 할 수있게되었습니다.

파일은 /home/user/location/.git/index.lock에 있습니다.

관련 문제