jesseduffield / lazygit

simple terminal UI for git commands
MIT License
50.94k stars 1.79k forks source link

*fs.PathError chdir /f/dev/projects/zynaddsubfx/zasfx-renew: The system cannot find the path specified. #3447

Open rty65tt opened 5 months ago

rty65tt commented 5 months ago

Describe the bug A clear and concise description of what the bug is.

F:\dev\projects\zynaddsubfx\zasfx-renew>lazygit
2024/03/28 02:14:56 An error occurred! Please create an issue at: https://github.com/jesseduffield/lazygit/issues

*fs.PathError chdir /f/dev/projects/zynaddsubfx/zasfx-renew: The system cannot find the path specified.
/home/runner/work/lazygit/lazygit/pkg/utils/errors.go:13 (0xeff585)
/home/runner/work/lazygit/lazygit/pkg/commands/git.go:70 (0xeff586)
/home/runner/work/lazygit/lazygit/pkg/gui/gui.go:300 (0x1087ae5)
/home/runner/work/lazygit/lazygit/pkg/gui/gui.go:692 (0x108a81b)
/home/runner/work/lazygit/lazygit/pkg/gui/gui.go:711 (0x108af05)
/home/runner/work/lazygit/lazygit/pkg/utils/utils.go:117 (0xd7ea7c)
/home/runner/work/lazygit/lazygit/pkg/gui/gui.go:710 (0x108ae4e)
/home/runner/work/lazygit/lazygit/pkg/app/app.go:266 (0x10bbdf1)
/home/runner/work/lazygit/lazygit/pkg/app/app.go:49 (0x10bbd86)
/home/runner/work/lazygit/lazygit/pkg/app/entry_point.go:150 (0x10bdfd3)
/home/runner/work/lazygit/lazygit/main.go:23 (0x10bf7f8)
/opt/hostedtoolcache/go/1.21.8/x64/src/runtime/internal/atomic/types.go:194 (0x9add12)
/opt/hostedtoolcache/go/1.21.8/x64/src/runtime/asm_amd64.s:1650 (0x9db621)

To Reproduce Steps to reproduce the behavior: just run lazygit

Expected behavior lazygit version 0.40.2 all work, after update 0.41.0 broken

Version info:


commit=3675570a391b1a49ddd198b4c7e71e17701d4404, build date=2024-03-23T09:09:11Z, build 
source=binaryRelease, version=0.41.0, os=windows, arch=amd64, git version=2.44.0

Additional context Windows 10 x64.

zouhair commented 5 months ago

I have the same problem on the same system

rty65tt commented 5 months ago

I found that there is a problem with the msys64 version of Git. If you delete it and install the Windows version of Git from the site https://git-scm.com all right.

colonelsalt commented 4 months ago

I have installed the official git for Windows as @rty65tt suggests, but am still having the same issue.

colonelsalt commented 4 months ago

Solved it: turns out there was indeed a conflicting UNIX-y version of Git from an MSYS installation (in my case in C:\devkitPro\msys2\usr\bin) that was higher up in my path than Windows Git. I reordered them and lazygit launches correctly now.

thesanjithkumar commented 1 month ago

I'm getting the same error, I don't have MSYS installed in my device, and I'm using official git.