Skip to content

File suggestion not working #2642

@JoyceBabu

Description

@JoyceBabu

Describe the bug

When I try to filter by path by pressing ctrl+s, I am not able to see a files list. But if I switch to a different (smaller) repository, it works. I tried running lazygit with the --debug flag and I can see the following error logged, when I press ctrl-s.

|ERRO| ignoring create popup panel because a popup panel is already open

To Reproduce
Steps to reproduce the behavior:

  1. Open lazygit
  2. Press ctrl-s

Expected behavior

Fuzzy file suggestion to work in all repositories.

Screenshots
If applicable, add screenshots to help explain your problem.

Version info:

commit=, build date=, build source=homebrew, version=0.38.2, os=darwin, arch=amd64, git version=2.40.1
git version 2.40.1

Additional context

The file loading fails for a large repository, but works on small repositories.

On Large Repository

May 18 20:16:35 |DEBU| using cache for key status.showUntrackedFiles
May 18 20:16:35 |DEBU| RunCommand command="git status --untracked-files=all --porcelain -z"
May 18 20:16:35 |INFO| refreshing all scopes in async mode
May 18 20:16:35 |ERRO| ignoring create popup panel because a popup panel is already open
May 18 20:16:35 |DEBU| RunCommand command="git merge-base \"HEAD\" \"HEAD\"@{u}"
May 18 20:16:35 |DEBU| RunCommand command="git tag --list -n --sort=-creatordate"
May 18 20:16:35 |DEBU| RunCommand command="git branch -r"
May 18 20:16:35 |DEBU| RunCommand command="git stash list -z --pretty='%gs'"
May 18 20:16:35 |DEBU| using cache for key status.showUntrackedFiles
May 18 20:16:35 |DEBU| RunCommand command="git status --untracked-files=all --porcelain -z"
May 18 20:16:35 |DEBU| RunCommand command="git for-each-ref --sort=-committerdate --format=\"%(HEAD)%00%(refname:short)%00%(upstream:short)%00%(upstream:track)\" refs/heads"
May 18 20:16:35 |DEBU| RunCommand command="git symbolic-ref --short HEAD"
May 18 20:16:35 |DEBU| RunCommand command="git merge-base \"HEAD\" \"master\""
May 18 20:16:36 |DEBU| using cache for key status.showUntrackedFiles
May 18 20:16:36 |DEBU| RunCommand command="git status --untracked-files=all --porcelain -z"

On small repository

May 18 20:15:35 |DEBU| using cache for key status.showUntrackedFiles
May 18 20:15:35 |DEBU| RunCommand command="git status --untracked-files=all --porcelain -z"
May 18 20:15:36 |DEBU| using cache for key status.showUntrackedFiles
May 18 20:15:36 |DEBU| RunCommand command="git status --untracked-files=all --porcelain -z"

Note: please try updating to the latest version or manually building the latest master to see if the issue still occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions