#@vito got a panic in TUI 🧵

1 messages · Page 1 of 1 (latest)

meager shale
#

panic: strings: negative Repeat count

goroutine 1 [running]:
strings.Repeat({0x101b6477f?, 0x0?}, 0x0?)
    /usr/lib/go/src/strings/strings.go:624 +0x588
github.com/dagger/dagger/dagql/idtui.(*renderer).indent(0x1024837a0?, {0x10248aa78, 0x14000ebac60}, 0x0?)
    /app/dagql/idtui/frontend.go:154 +0x3c
github.com/dagger/dagger/dagql/idtui.(*frontendPretty).renderRow(0x1400090e000, {0x10248aa78, 0x14000ebac60}, 0x14000823728, 0x14000392680, {0x0, 0x0}, 0x1)
    /app/dagql/idtui/frontend_pretty.go:1337 +0x2ec
github.com/dagger/dagger/dagql/idtui.(*frontendPretty).renderProgress(0x1400090e000, {0x10248aa78, 0x14000ebac60}, 0x14000823728, 0x0?, 0x0?, {0x0?, 0x140001142c8?})
    /app/dagql/idtui/frontend_pretty.go:692 +0x178
github.com/dagger/dagger/dagql/idtui.(*frontendPretty).FinalRender(0x1400090e000, {0x102481078, 0x1400008e040})
    /app/dagql/idtui/frontend_pretty.go:378 +0x248
github.com/dagger/dagger/dagql/idtui.(*frontendPretty).Run(0x1400090e000, {0x102497018?, 0x14000174fc0?}, {0x0, 0x0, 0x1, 0x5f5e100, 0x3b9aca00, 0x0, 0x0, ...}, ...)
    /app/dagql/idtui/frontend_pretty.go:229 +0x1c0
main.withEngine(...)
    /app/cmd/dagger/engine.go:61
main.init.func12(0x1039107e0, {0x10397d1a0, 0x0, 0x0})
    /app/cmd/dagger/shell.go:59 +0x1f8
github.com/spf13/cobra.(*Command).execute(0x1039107e0, {0x10397d1a0, 0x0, 0x0})
    /go/pkg/mod/github.com/spf13/cobra@v1.9.0/command.go:1014 +0x828
github.com/spf13/cobra.(*Command).ExecuteC(0x10390e420)
    /go/pkg/mod/github.com/spf13/cobra@v1.9.0/command.go:1150 +0x2f0
github.com/spf13/cobra.(*Command).Execute(...)
    /go/pkg/mod/github.com/spf13/cobra@v1.9.0/command.go:1070
main.init.func2(0x10390e420, {0x1400042a500, 0x0, 0x101b644f7?})
    /app/cmd/dagger/main.go:189 +0xf4
github.com/spf13/cobra.(*Command).execute(0x10390e420, {0x1400003a0d0, 0x1, 0x1})
    /go/pkg/mod/github.com/spf13/cobra@v1.9.0/command.go:1014 +0x828
github.com/spf13/cobra.(*Command).ExecuteC(0x10390e420)
    /go/pkg/mod/github.com/spf13/cobra@v1.9.0/command.go:1150 +0x2f0
github.com/spf13/cobra.(*Command).Execute(...)
    /go/pkg/mod/github.com/spf13/cobra@v1.9.0/command.go:1070
github.com/spf13/cobra.(*Command).ExecuteContext(...)
    /go/pkg/mod/github.com/spf13/cobra@v1.9.0/command.go:1063
main.main()
    /app/cmd/dagger/main.go:374 +0x5c4
#

Exact repro command:

$ dagger --no-mod <<EOF
llm | with-directory . | with-prompt "read the contents of all go files in the current directory. look for references types which are undefined - it may be Directory, Container, Secret for example - and edit the files in place to prefix those type references with 'dagger.'. For example 'func foo(src *Directory)' becomes 'func foo(src *dagger.Directory)'"
EOF
#

(yes I'm being lazy 😛 )