Lazygit: After installing in Mac OS: panic error

Created on 10 Aug 2018  ·  6Comments  ·  Source: jesseduffield/lazygit

% brew tap jesseduffield/lazygit
Updating Homebrew...
^[==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core, homebrew/cask).
==> Tapping jesseduffield/lazygit
Cloning into '/usr/local/Homebrew/Library/Taps/jesseduffield/homebrew-lazygit'...
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 5 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (5/5), done.
Tapped 1 formula (27 files, 7.5KB).
% brew install lazygit
==> Installing lazygit from jesseduffield/lazygit
==> Downloading https://github.com/jesseduffield/lazygit/releases/download/v0.1.48/lazygit_0.1.48_Darwin_x86_64.tar.gz
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/134017286/21898e04-9c2d-11e8-8774-6a1da55fc7b1?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180810%2Fus-east-1%2Fs3%2
######################################################################## 100.0%
🍺  /usr/local/Cellar/lazygit/0.1.48: 5 files, 7.4MB, built in 5 seconds
% echo "alias lg='lazygit'" >> ~/.aliases.local
% source ~/.aliases.local
% lg
panic: 15:8: unquoted '\' must be followed by new line

goroutine 1 [running]:
main.setupWorktree()
    /Users/jesseduffieldduffield/go/src/github.com/jesseduffield/lazygit/main.go:93 +0x145
main.main()
    /Users/jesseduffieldduffield/go/src/github.com/jesseduffield/lazygit/main.go:114 +0xd2

Most helpful comment

@5minpause this is probably a similar issue to what I had, my .git/config file had a \ in it due to Tower adding some entries.

All 6 comments

@5minpause this is probably a similar issue to what I had, my .git/config file had a \ in it due to Tower adding some entries.

Thanks for your answer. I didn’t debug it yet. Will look into it on Monday.
Thank you.


Holger Frohloff
Web Development Consultant

https://www.holgerfrohloff.de

Am 10.08.2018 um 18:10 schrieb JD Guzman notifications@github.com:

@5minpause this is probably a similar issue to what I had, my .git/config file had a \ in it due to Tower adding some entries.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

thankyou @jdguzman for triage.

same error to me when i execute lazygit on my branch

# ~/Documents/Dev/dev_refact [b_8.9.5_VOR3.2.3 ● (f1bf15756b)] [11:31:05]
➜ lazygit
panic: 13:8: unquoted '\' must be followed by new line

goroutine 1 [running]:
main.setupWorktree()
    /Users/jesseduffieldduffield/go/src/github.com/jesseduffield/lazygit/main.go:105 +0x16b
main.main()
    /Users/jesseduffieldduffield/go/src/github.com/jesseduffield/lazygit/main.go:126 +0xd2

I installed with Homebrew, It used to be OK that i installed by the old method: go get github.com/jesseduffield/lazygit

@faimin looks like you may also have the issue that @jdguzman had i.e. a backslash in your gitconfig. Perhaps have a look at that and see if removing it fixes the issue

@jesseduffield I delete the below settings in .git/config like @jdguzman say,

[mergetool "tower"]
    cmd = \"/Applications/Tower.app/Contents/Resources/beyondcompare.sh\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"
    trustExitCode = true
[difftool "tower"]
    cmd = \"/Applications/Tower.app/Contents/Resources/kaleidoscope.sh\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"

now, it's ok. Thanks @jdguzman @jesseduffield

is there a another solution?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JoeKlemmer picture JoeKlemmer  ·  3Comments

fluffynuts picture fluffynuts  ·  4Comments

matthiasroos picture matthiasroos  ·  3Comments

tupaschoal picture tupaschoal  ·  6Comments

voigtan picture voigtan  ·  4Comments