Skip to content

Instantly share code, notes, and snippets.

@levlaz
Created October 3, 2023 12:32
Show Gist options
  • Save levlaz/aaa34008f709f0fc8fa26333ebdad02c to your computer and use it in GitHub Desktop.
Save levlaz/aaa34008f709f0fc8fa26333ebdad02c to your computer and use it in GitHub Desktop.
Panic
```
Caught panic:
runtime error: slice bounds out of range [7:5]
Restoring terminal...
goroutine 1 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:24 +0x65
runtime/debug.PrintStack()
/usr/local/go/src/runtime/debug/stack.go:16 +0x19
github.com/charmbracelet/bubbletea.(*Program).Run.func1()
/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.24.2/tea.go:440 +0x95
panic({0x11fb0a0, 0xc0004d84e0})
/usr/local/go/src/runtime/panic.go:890 +0x263
github.com/charmbracelet/bubbles/viewport.Model.visibleLines(...)
/go/pkg/mod/github.com/charmbracelet/bubbles@v0.16.1/viewport/viewport.go:123
github.com/charmbracelet/bubbles/viewport.(*Model).GotoBottom(0xc0000be048?)
/go/pkg/mod/github.com/charmbracelet/bubbles@v0.16.1/viewport/viewport.go:237 +0x19b
github.com/vito/progrock.(*Model).render(0xc0000be000)
/go/pkg/mod/github.com/vito/progrock@v0.10.2-0.20230913234310-64b4a1cfb007/model.go:446 +0x275
github.com/vito/progrock.(*Model).Update(0xc0000be000, {0x11986e0?, 0xc000124b28?})
/go/pkg/mod/github.com/vito/progrock@v0.10.2-0.20230913234310-64b4a1cfb007/model.go:357 +0xae
github.com/charmbracelet/bubbletea.(*Program).eventLoop(0xc0000000c0, {0x144dab0?, 0xc0000be000?}, 0x0?)
/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.24.2/tea.go:373 +0x646
github.com/charmbracelet/bubbletea.(*Program).Run(0xc0000000c0)
/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.24.2/tea.go:503 +0x87d
github.com/vito/progrock.(*UI).Run(0x1447508?, {0x144f2d8, 0xc000112000}, 0xc0003dfa28?, 0xc0003dfa60?)
/go/pkg/mod/github.com/vito/progrock@v0.10.2-0.20230913234310-64b4a1cfb007/model.go:215 +0x556
main.inlineTUI({0x144f2d8, 0xc000112000}, {{0x0, 0x0}, {0x0, 0x0, 0x0}, {0x0, 0x0}, {0xc0001b6a50, ...}, ...}, ...)
/app/cmd/dagger/engine.go:172 +0x190
main.withEngineAndTUI({0x144f2d8, 0xc000112000}, {{0x0, 0x0}, {0x0, 0x0, 0x0}, {0x0, 0x0}, {0xc0001b6a50, ...}, ...}, ...)
/app/cmd/dagger/engine.go:73 +0x1c5
main.loadModCmdWrapper.func1(0x1cf9320, {0x1d42110, 0x0, 0x0})
/app/cmd/dagger/module.go:361 +0x1ab
main.glob..func7(0x1cf9320?, {0x1d42110, 0x0, 0x0})
/app/cmd/dagger/query.go:46 +0x6d
github.com/spf13/cobra.(*Command).execute(0x1cf9320, {0x1d42110, 0x0, 0x0})
/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:940 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0x1cf7c20)
/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992
main.main()
/app/cmd/dagger/main.go:95 +0x32
┣─╮
│ ▽ init
│ █ [0.00s] connect
│ ┣ [0.00s] starting engine
┻ ┻
⧗ 0.00s ⣾ 1 • connect: starting engine
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment