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

Can't use Git command line when Visual Studio Code is open #987

Closed
mateid opened this issue Dec 3, 2015 · 3 comments
Closed

Can't use Git command line when Visual Studio Code is open #987

mateid opened this issue Dec 3, 2015 · 3 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@mateid
Copy link

mateid commented Dec 3, 2015

It looks like Visual Studio Code locks some files and I can't use the command line Git client when it is open. Closing Visual Studio Code resolves this issue. The index.lock file did not exist when I checked for it so it must be preventing the command line client from working in some other way. Here's the output from the command line client:

Updating ca3f107..3e957b8
fatal: Unable to create 'C:/dev/GIS/.git/index.lock': File exists.

If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.

@nbering
Copy link

nbering commented Dec 3, 2015

I've had this occasionally myself. I'm pretty sure it happens when VSCode is checking with git to see if there are any remote changes, and changed files, etc. Usually it doesn't last long for me, but for very large repositories I could see it taking a while. Normally I see this when I try to pull from a remote and a simple retry works fine. I don't know what could be done about this except to make vscode's interactions with git configurable. Git uses file-based locking and if the repository is being updated it needs to be locked to keep integrity.

@HuanhuanSunMSFT
Copy link

I've had this consistently, especially when doing a git rebase with VS code open.

@joaomoreno
Copy link
Member

Duplicate of #901

@joaomoreno joaomoreno added the *duplicate Issue identified as a duplicate of another issue(s) label Apr 29, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

4 participants