lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

One file not showing in lazygit Files pane

Open kofm opened this issue 2 years ago • 3 comments

Suddenly in one of my repos one file is always not showing in the Files pane (either tracked or not tracked). git status shows the correct file list. I tried reinstalling and clearing my config with no success. It doesn't happen in other repos

Example:

image Lazygit: image If I discard changes in .gitignore with git checkout -- .gitignore image Even if I stage the hidden file, it doesn't show up. Working on Arch Linux 5.17.4-arch1-1, lazygit commit=v0.34, build date=2022-04-27T13:28:28Z, build source=binaryRelease, version=0.34, os=linux, arch=amd64

kofm avatar May 08 '22 08:05 kofm

Could you try building master to see if it helps? If it's even reproducible now

mark2185 avatar Jun 13 '22 21:06 mark2185

I had the same issue (one file missing in the TUI) and tracked it down to a warning: refname 'HEAD' is ambiguous. in one of the submodules. Once I git branch -D HEAD from the submodule, the file list returned to normal. The file was not from the submodule.

$ lazygit -v
commit=v0.34, build date=2022-04-27T13:28:28Z, build source=binaryRelease, version=0.34, os=linux, arch=amd64

michael-sayapin avatar Jun 21 '22 07:06 michael-sayapin

I think it's the same issue as #1788, the errors/warnings aren't ignored and that mucks up the file view, at least that's my suspicion, haven't confirmed it yet.

mark2185 avatar Jun 21 '22 08:06 mark2185