Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Intermittent index.lock File exists errors #693

Closed
pdaniell opened this issue Jul 7, 2017 · 3 comments · Fixed by atom/github#1238
Closed

Intermittent index.lock File exists errors #693

pdaniell opened this issue Jul 7, 2017 · 3 comments · Fixed by atom/github#1238

Comments

@pdaniell
Copy link

pdaniell commented Jul 7, 2017

Intermittently, I receive a index.lock file exists error when I try to add-all-and-commit

Steps to reproduce:

  1. Cmd+Shift+P to Engage the command palette
  2. Choose Git Plus: Add All Commit and Push
  3. See error message from git that index.lock file exists

Aftermath

When I go to the file system there is no index.lock file there. The system is left in the state where the file has been added but nothing else has been executed. This suggests that there is a race condition whereby the commit command is being issued before the add finishes and so it sees an index.lock file while I don't (because by the time i see the file system, add would have completed). Is there some way to sequentialize the commands? Maybe they are being fired off as three async processes that can execute simultaneously?

@UziTech
Copy link

UziTech commented Jul 21, 2017

This is a race condition with the github package

check out the issue here: atom/github#961

The only way I know to prevent this at the moment is to disable the github package

@pdaniell
Copy link
Author

Yes disabling the github package works for me.

@BinaryMuse
Copy link

This should be fixed in Atom 1.23-beta (the next upcoming beta).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants