Skip to content

panic: runtime error: index out of range [0] with length 0 #5148

@zhenrenbumeng

Description

@zhenrenbumeng
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/jesseduffield/gocui.(*View).findHyperlinkAt(0xc0002ccd88?, 0x900000000000010?, 0xea1660?)
        /home/runner/work/lazygit/lazygit/vendor/github.com/jesseduffield/gocui/view.go:1889 +0x23c
github.com/jesseduffield/gocui.(*View).onMouseMove(0xc0002ccd88, 0x1490d80?, 0xc000b45301?)
        /home/runner/work/lazygit/lazygit/vendor/github.com/jesseduffield/gocui/view.go:1879 +0xb8
github.com/jesseduffield/gocui.(*Gui).onKey(0xc0002a8000, 0xc000b454a8?)
        /home/runner/work/lazygit/lazygit/vendor/github.com/jesseduffield/gocui/gui.go:1429 +0x136
github.com/jesseduffield/gocui.(*Gui).handleEvent(0xc000b45518?, 0xc000b45438?)
        /home/runner/work/lazygit/lazygit/vendor/github.com/jesseduffield/gocui/gui.go:863 +0x2f
github.com/jesseduffield/gocui.(*Gui).processRemainingEvents(0xc0002a8000)
        /home/runner/work/lazygit/lazygit/vendor/github.com/jesseduffield/gocui/gui.go:843 +0x185
github.com/jesseduffield/gocui.(*Gui).processEvent(0xc0002a8000)
        /home/runner/work/lazygit/lazygit/vendor/github.com/jesseduffield/gocui/gui.go:828 +0x25f
github.com/jesseduffield/gocui.(*Gui).MainLoop(0xc0002a8000)
        /home/runner/work/lazygit/lazygit/vendor/github.com/jesseduffield/gocui/gui.go:796 +0xea
github.com/jesseduffield/lazygit/pkg/gui.(*Gui).Run(0xc0002a0008, {{0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}})
        /home/runner/work/lazygit/lazygit/pkg/gui/gui.go:858 +0x511
github.com/jesseduffield/lazygit/pkg/gui.(*Gui).RunAndHandleError.func1()
        /home/runner/work/lazygit/lazygit/pkg/gui/gui.go:864 +0x48
github.com/jesseduffield/lazygit/pkg/utils.SafeWithError(0xc0001b9960?)
        /home/runner/work/lazygit/lazygit/pkg/utils/utils.go:80 +0x56
github.com/jesseduffield/lazygit/pkg/gui.(*Gui).RunAndHandleError(0xc0002a0008, {{0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}})
        /home/runner/work/lazygit/lazygit/pkg/gui/gui.go:863 +0xff
github.com/jesseduffield/lazygit/pkg/app.(*App).Run(...)
        /home/runner/work/lazygit/lazygit/pkg/app/app.go:277
github.com/jesseduffield/lazygit/pkg/app.Run({0x180e9f8?, 0xc00016c210?}, 0xc00012c700, {{0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, {0x0, ...}})
        /home/runner/work/lazygit/lazygit/pkg/app/app.go:48 +0xda
github.com/jesseduffield/lazygit/pkg/app.Start(0xc0001b9f00, {0x0, 0x0})
        /home/runner/work/lazygit/lazygit/pkg/app/entry_point.go:172 +0xd46
main.main()
        /home/runner/work/lazygit/lazygit/main.go:23 +0x98

[process exited with code 2 (0x00000002)]
You can now close this terminal with Ctrl+D, or press Enter to restart.



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