jesseduffield / jesseduffield/lazygit

lazygit appears to lock the currently-viewed file (at least on Windows)

Open
#1,703 13 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Describe the bug**
I've noticed that if I leave lazygit running and the file I'm working on happens to be selected in the changes pane, then I can't save to the file (Rider complains that it can't update the file). Changing the selected file or closing down lazygit resolves the issue. I think this has only started happening recently (read: over the last month or two - sorry, I was off for most of December!)

**To Reproduce**
Steps to reproduce the behavior:
1. change a file, so it shows up in lazygit
2. open lazygit, select the changed file
3. alter & attempt to save the file from within IDE
4. IDE shows error

**Expected behavior**
I expect that lazygit will not lock up files

**Screenshots**
If applicable, add screenshots to help explain your problem.
![image](https://user-images.githubusercontent.com/4669340/150305386-08e4c12f-9030-4bc3-a002-c866ede15eca.png)

**Desktop (please complete the following information):**
- OS: Windows
- Lazygit Version 0.31.4

(this becomes a "close lazygit to continue" problem if there's only one file with diffs)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.