panic with git bug termui

Timeline

Jonathan Dahan (jedahan) opened

latest dev with go get on linux

▲ ~/src/tldr git bug user create                                   ⇡ cargo-doc  44m ⬢
Name [Jonathan Dahan]: jedahan
Email [hi@jonathan.is]:
Avatar URL: http://example.com

9b02b7ce6b5c46c3cb135e50b890ee52bae72d8d
▲ ~/src/tldr git bug termui                                       8s  ⇡ cargo-doc   ⬢
panic: interface conversion: error is *errors.errorString, not *errors.Error

goroutine 1 [running]:
github.com/MichaelMure/git-bug/termui.Run(0xc00018ad80, 0xc000131f30, 0xc00018ad80)
	/home/micro/.cache/go/src/github.com/MichaelMure/git-bug/termui/termui.go:70 +0x3e0
github.com/MichaelMure/git-bug/commands.runTermUI(0x11a2ee0, 0x11ca798, 0x0, 0x0, 0x0, 0x0)
	/home/micro/.cache/go/src/github.com/MichaelMure/git-bug/commands/termui.go:18 +0xdc
github.com/MichaelMure/git-bug/vendor/github.com/spf13/cobra.(*Command).execute(0x11a2ee0, 0x11ca798, 0x0, 0x0, 0x11a2ee0, 0x11ca798)
	/home/micro/.cache/go/src/github.com/MichaelMure/git-bug/vendor/github.com/spf13/cobra/command.go:826 +0x460
github.com/MichaelMure/git-bug/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x11a1d60, 0x0, 0x0, 0x0)
	/home/micro/.cache/go/src/github.com/MichaelMure/git-bug/vendor/github.com/spf13/cobra/command.go:914 +0x2fb
github.com/MichaelMure/git-bug/vendor/github.com/spf13/cobra.(*Command).Execute(...)
	/home/micro/.cache/go/src/github.com/MichaelMure/git-bug/vendor/github.com/spf13/cobra/command.go:864
github.com/MichaelMure/git-bug/commands.Execute()
	/home/micro/.cache/go/src/github.com/MichaelMure/git-bug/commands/root.go:54 +0x2d
main.main()
	/home/micro/.cache/go/src/github.com/MichaelMure/git-bug/git-bug.go:17 +0x20

Michael Muré (MichaelMure) commented

Were you doing something specific in the termui or just launching it ?

On Fri, Dec 27, 2019, 5:08 PM Jonathan Dahan notifications@github.com wrote:

latest dev with go get on linux

▲ ~/src/tldr git bug user create ⇡ cargo-doc 44m ⬢

Name [Jonathan Dahan]: jedahan

Email [hi@jonathan.is]:

Avatar URL: http://example.com

9b02b7ce6b5c46c3cb135e50b890ee52bae72d8d

▲ ~/src/tldr git bug termui 8s ⇡ cargo-doc ⬢

panic: interface conversion: error is *errors.errorString, not *errors.Error

goroutine 1 [running]: github.com/MichaelMure/git-bug/termui.Run(0xc00018ad80, 0xc000131f30, 0xc00018ad80)

/home/micro/.cache/go/src/github.com/MichaelMure/git-bug/termui/termui.go:70 +0x3e0 github.com/MichaelMure/git-bug/commands.runTermUI(0x11a2ee0, 0x11ca798, 0x0, 0x0, 0x0, 0x0)

/home/micro/.cache/go/src/github.com/MichaelMure/git-bug/commands/termui.go:18 +0xdc github.com/MichaelMure/git-bug/vendor/github.com/spf13/cobra.(*Command).execute(0x11a2ee0, 0x11ca798, 0x0, 0x0, 0x11a2ee0, 0x11ca798)

/home/micro/.cache/go/src/github.com/MichaelMure/git-bug/vendor/github.com/spf13/cobra/command.go:826 +0x460 github.com/MichaelMure/git-bug/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x11a1d60, 0x0, 0x0, 0x0)

/home/micro/.cache/go/src/github.com/MichaelMure/git-bug/vendor/github.com/spf13/cobra/command.go:914 +0x2fb github.com/MichaelMure/git-bug/vendor/github.com/spf13/cobra.(*Command).Execute(...)

/home/micro/.cache/go/src/github.com/MichaelMure/git-bug/vendor/github.com/spf13/cobra/command.go:864 github.com/MichaelMure/git-bug/commands.Execute()

/home/micro/.cache/go/src/github.com/MichaelMure/git-bug/commands/root.go:54 +0x2d

main.main()

/home/micro/.cache/go/src/github.com/MichaelMure/git-bug/git-bug.go:17 +0x20

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MichaelMure/git-bug/issues/282?email_source=notifications&email_token=AACH6DJK3MSUSWH2TGYNWZ3Q2YSAPA5CNFSM4J76LUH2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IC4JXBA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACH6DKYOOLV2IRLR6PZRITQ2YSAPANCNFSM4J76LUHQ .

Jonathan Dahan (jedahan) commented

just launching

Jonathan Dahan (jedahan) commented

Error: termbox: error while reading terminfo data: bytes.Reader.Seek: negative position

I am on alacritty, TERM=alacritty in env

Jonathan Dahan (jedahan) commented

I used sudo tic -xe alacritty,alacritty-direct extra/alacritty.info and now it works :)

Michael Muré (MichaelMure) commented

any idea what the difference would be ?

Jonathan Dahan (jedahan) commented

my terminfo was set to alacritty, but i didnt have that info installed (or in tic, whatever that is).

I think sometimes, software will fallback to something like xterm-256color or just xterm

Jonathan Dahan (jedahan) closed the bug