jesseduffield / jesseduffield/lazygit

lazygit crashes with fs.PathError: stat .: no such file or directory

Open
#5,643 2 comments 0 reactions 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
`lazygit` exits with an internal error when launched:

### To Reproduce
Steps to reproduce the behavior:

1. Open a terminal in the affected directory/session.
2. Run `lazygit`.
3. See the error below.

### Expected behavior
`lazygit` should open normally, or show a user-friendly error if the current directory is unavailable.

### Screenshots
N/A

### Version info:

`commit=, build date=, build source=Homebrew, version=0.58.1, os=darwin, arch=arm64, git version=2.39.5 (Apple Git-154)`

### Terminal info:
macOS, zsh. Terminal emulator/version: Ghostty

### Additional context
Error output:
```text
2026/05/26 19:29:04 An error occurred! Please create an issue at: https://github.com/jesseduffield/lazygit/issues
*fs.PathError stat .: no such file or directory
github.com/jesseduffield/lazygit/pkg/app/app.go:55
github.com/jesseduffield/lazygit/pkg/app/entry_point.go:177
github.com/jesseduffield/lazygit/main.go:23
internal/runtime/atomic/types.go:194
runtime/asm_arm64.s:1268

> [!NOTE]
> Please try updating to the latest version or [manually building](https://github.com/jesseduffield/lazygit/#manual) the latest `master` to see if the issue still occurs.

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.