-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
Labels
bugSomething isn't workingSomething isn't workingdependenciesPull requests that update a dependency filePull requests that update a dependency file
Description
I'm trying to use termshot
to capture Nushell output, and it panics.
❯ ./result/bin/termshot nu
❯ ls
╭────┬────────────────────────┬─────────┬────────┬───────────────╮
│ # │ name │ type │ size │ modified │
├────┼────────────────────────┼─────────┼────────┼───────────────┤
│ 0 │ CONTRIBUTING.md │ file │ 8.4 KB │ 8 hours ago │
│ 1 │ COPYING │ file │ 1.1 KB │ 8 hours ago │
│ 2 │ README.md │ file │ 6.2 KB │ 2 months ago │
│ 3 │ default.nix │ file │ 971 B │ a year ago │
│ 4 │ doc │ dir │ 23 B │ 8 hours ago │
│ 5 │ flake.nix │ file │ 2.3 KB │ 2 months ago │
│ 6 │ lib │ dir │ 34 B │ 8 hours ago │
│ 7 │ maintainers │ dir │ 5 B │ 8 hours ago │
│ 8 │ nixos │ dir │ 13 B │ 8 hours ago │
│ 9 │ pkgs │ dir │ 18 B │ a year ago │
│ 10 │ result │ symlink │ 58 B │ 5 minutes ago │
│ 11 │ update-git-commits.txt │ file │ 740 B │ 2 months ago │
╰────┴────────────────────────┴─────────┴────────┴───────────────╯
❯ exit
panic: reached end of file before reaching end identifier
goroutine 1 [running]:
github.com/gonvenience/bunt.ParseStream.func2(0x7)
github.com/gonvenience/bunt@v1.3.4/parse.go:100 +0x88
github.com/gonvenience/bunt.ParseStream.func4()
github.com/gonvenience/bunt@v1.3.4/parse.go:172 +0xb8
github.com/gonvenience/bunt.ParseStream({0x6db758?, 0xc00018eb70?}, {0x0, 0x0, 0xc0001e7000?})
github.com/gonvenience/bunt@v1.3.4/parse.go:225 +0x4ed
github.com/homeport/termshot/internal/img.(*Scaffold).AddContent(0xc000181bd0, {0x6db758?, 0xc00018eb70?})
github.com/homeport/termshot/internal/img/output.go:116 +0x39
github.com/homeport/termshot/internal/cmd.glob..func1(0x9778e0?, {0xc0000b33d0?, 0x1, 0x1})
github.com/homeport/termshot/internal/cmd/root.go:115 +0x4d0
github.com/spf13/cobra.(*Command).execute(0x9778e0, {0xc000016050, 0x1, 0x1})
github.com/spf13/cobra@v1.6.0/command.go:916 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0x9778e0)
github.com/spf13/cobra@v1.6.0/command.go:1040 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.6.0/command.go:968
github.com/homeport/termshot/internal/cmd.Execute()
github.com/homeport/termshot/internal/cmd/root.go:144 +0x67
main.main()
github.com/homeport/termshot/cmd/termshot/main.go:26 +0x17
❯
This is with v0.2.5 of termshot
.
jonahsnider and siiick
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdependenciesPull requests that update a dependency filePull requests that update a dependency file