Skip to content

Crash when number of env equals paged limit #28

@braheezy

Description

@braheezy
Caught panic:

runtime error: index out of range [5] with length 5

Restoring terminal...

goroutine 1 [running]:
runtime/debug.Stack()
	/usr/lib/go/src/runtime/debug/stack.go:24 +0x65
runtime/debug.PrintStack()
	/usr/lib/go/src/runtime/debug/stack.go:16 +0x19
github.com/charmbracelet/bubbletea.(*Program).Run.func1()
	/home/vagrant/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.25.0/tea.go:478 +0x95
panic({0x53aea0, 0xc0004ac948})
	/usr/lib/go/src/runtime/panic.go:890 +0x262
github.com/braheezy/violet/internal/app.(*Ecosystem).View(0xc000366338)
	/vagrant/internal/app/ecosystem.go:217 +0x1470
github.com/braheezy/violet/internal/app.Violet.View({{{0xc000086480, 0x5, 0x8}, 0xc000074d00, {{0xc00020a000, 0x5, 0x8}}, {{0xc0000be240, 0x4, 0x4}}, ...}, ...})
	/vagrant/internal/app/view.go:25 +0x3a8
github.com/charmbracelet/bubbletea.(*Program).eventLoop(0xc0000b0b60, {0x581fc0?, 0xc0000b2000?}, 0x521e40?)
	/home/vagrant/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.25.0/tea.go:413 +0x79f
github.com/charmbracelet/bubbletea.(*Program).Run(0xc0000b0b60)
	/home/vagrant/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.25.0/tea.go:543 +0x8a9
github.com/braheezy/violet/internal/app.Run()
	/vagrant/internal/app/app.go:43 +0x28a
main.main()
	/vagrant/cmd/violet/main.go:8 +0x17

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