We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
superfile panics when pressing the up keybind while being in the metadata section. Steps to reproduce
superfile
up
go install github.com/yorukot/superfile@latest
cd $(mktemp -d)
m
Caught panic: runtime error: index out of range [-1] Restoring terminal... goroutine 1 [running]: runtime/debug.Stack() /usr/lib/golang/src/runtime/debug/stack.go:24 +0x5e runtime/debug.PrintStack() /usr/lib/golang/src/runtime/debug/stack.go:16 +0x13 github.com/charmbracelet/bubbletea.(*Program).recoverFromPanic(0xc0001b4000) /home/adam/.go/pkg/mod/github.com/charmbracelet/[email protected]/tea.go:705 +0x91 panic({0xd8ae60?, 0xc000710e40?}) /usr/lib/golang/src/runtime/panic.go:770 +0x132 github.com/yorukot/superfile/src/internal.model.metadataRender({{{0xc0001ac008, 0x1, 0x1}, 0x2e, 0x0, 0x2, {0x1, 0x2b}}, {{0xc0001b9600, 0xb, ...}, ...}, ...}) /home/adam/.go/pkg/mod/github.com/yorukot/[email protected]/src/internal/model_render.go:319 +0x905 github.com/yorukot/superfile/src/internal.model.View({{{0xc0001ac008, 0x1, 0x1}, 0x2e, 0x0, 0x2, {0x1, 0x2b}}, {{0xc0001b9600, 0xb, ...}, ...}, ...}) /home/adam/.go/pkg/mod/github.com/yorukot/[email protected]/src/internal/model.go:283 +0x1f8 github.com/charmbracelet/bubbletea.(*Program).eventLoop(0xc0001b4000, {0x11d9198?, 0xc0001aea88?}, 0xc000118540) /home/adam/.go/pkg/mod/github.com/charmbracelet/[email protected]/tea.go:463 +0x858 github.com/charmbracelet/bubbletea.(*Program).Run(0xc0001b4000) /home/adam/.go/pkg/mod/github.com/charmbracelet/[email protected]/tea.go:595 +0xaad github.com/yorukot/superfile/src/cmd.Run.func2(0xc0003c7b80) /home/adam/.go/pkg/mod/github.com/yorukot/[email protected]/src/cmd/main.go:79 +0x199 github.com/urfave/cli/v2.(*Command).Run(0xc0001ea580, 0xc0003c7b80, {0xc000110060, 0x1, 0x1}) /home/adam/.go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:276 +0x97d github.com/urfave/cli/v2.(*App).RunContext(0xc0001b8200, {0x11d9d50, 0x18339c0}, {0xc000110060, 0x1, 0x1}) /home/adam/.go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:333 +0x5a5 github.com/urfave/cli/v2.(*App).Run(...) /home/adam/.go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:307 github.com/yorukot/superfile/src/cmd.Run({0xc0000061c0?}) /home/adam/.go/pkg/mod/github.com/yorukot/[email protected]/src/cmd/main.go:89 +0x36a main.main() /home/adam/.go/pkg/mod/github.com/yorukot/[email protected]/main.go:15 +0x1a
The text was updated successfully, but these errors were encountered:
What does the metadata panel show before press up?
Sorry, something went wrong.
Nothing:
I'm going to try to fix this, but I don't have a file without metadata. It's a bit difficult to test.
If you don't mind, could you send me the file or tell me how to get it?
Here it is in docker, can't really tell anything more:
docker run --rm -it golang:1.23-bookworm
cd $(mktemp -d) # Creates a temporary empty dir and enters it
Ok thank you so much!
No branches or pull requests
superfile
panics when pressing theup
keybind while being in the metadata section. Steps to reproducego install github.com/yorukot/superfile@latest
cd $(mktemp -d)
superfile
# Pressm
andup
The text was updated successfully, but these errors were encountered: