Closed vkd closed 1 year ago
Version:
⇒ fx --version 30.0.2 ⇒ go version go version go1.21.1 darwin/arm64
How to reproduce: Execute command echo '{"name": "mike"}' | fx and press Space and then Left (<-).
echo '{"name": "mike"}' | fx
Space
Left (<-)
Logs:
⇒ echo '{"name": "mike"}' | fx Caught panic: runtime error: invalid memory address or nil pointer dereference Restoring terminal... goroutine 1 [running]: runtime/debug.Stack() /usr/local/go/src/runtime/debug/stack.go:24 +0x64 runtime/debug.PrintStack() /usr/local/go/src/runtime/debug/stack.go:16 +0x1c github.com/charmbracelet/bubbletea.(*Program).Run.func1() /src/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.24.2/tea.go:440 +0x88 panic({0x1027dbde0?, 0x102909470?}) /usr/local/go/src/runtime/panic.go:920 +0x26c main.(*node).hasChildren(...) /src/go/pkg/mod/github.com/antonmedv/fx@v0.0.0-20230919114525-adf377582815/node.go:72 main.(*model).handleKey(0x1400016a000, {0xfffffffffffffffb, {0x0, 0x0, 0x0}, 0x0}) /src/go/pkg/mod/github.com/antonmedv/fx@v0.0.0-20230919114525-adf377582815/main.go:368 +0x48f0 main.(*model).Update(0x14000122370?, {0x1027eea80?, 0x1400010f770?}) /src/go/pkg/mod/github.com/antonmedv/fx@v0.0.0-20230919114525-adf377582815/main.go:215 +0x30c github.com/charmbracelet/bubbletea.(*Program).eventLoop(0x1400016c000, {0x1028063b8?, 0x1400016a000?}, 0x1028062c8?) /src/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.24.2/tea.go:373 +0x5cc github.com/charmbracelet/bubbletea.(*Program).Run(0x1400016c000) /src/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.24.2/tea.go:503 +0x6ac main.main() /src/go/pkg/mod/github.com/antonmedv/fx@v0.0.0-20230919114525-adf377582815/main.go:140 +0xe48
Version:
How to reproduce: Execute command
echo '{"name": "mike"}' | fx
and pressSpace
and thenLeft (<-)
.Logs: