Open peterfox opened 4 months ago
Can confirm. This is also an issue when running with goshot
termshot --show-cmd -- goshot render --help
Render the code to an image
Usage:
goshot render [flags]
Flags:
-b, --background string Background color of the image (default "#aaaaff")
--background-image string Background image
--background-image-fit string Background image fit mode. Available modes: contain, cover, fill, stretch, tile (default "cover")
-C, --chrome string Chrome style. Available styles: mac, windows, gnome (default "mac")
-T, --chrome-theme string Chrome theme name
--code-pad-bottom int Add padding to the bottom of the code (default 10)
--code-pad-left int Add padding to the X axis of the code (default 10)
--code-pad-right int Add padding to the X axis of the code (default 10)
--code-pad-top int Add padding to the top of the code (default 10)
--corner-radius float Corner radius of the image (default 10)
-d, --dark-mode Use dark mode
--end-line int Line to end at
-f, --font string The fallback font list. eg. 'Hack; SimSun=31'
--from-clipboard Read input from clipboard
--gradient-angle float Gradient angle in degrees (default 45)
--gradient-center-x float Center X of the gradient (default 0.5)
--gradient-center-y float Center Y of the gradient (default 0.5)
--gradient-intensity float Intensity modifier for special gradients (default 5)
--gradient-stop stringArray Gradient stops. eg. '--gradient-stop '#ff0000;0' --gradient-stop '#00ff00;100' (default [#232323;0,#383838;100])
--gradient-type string Gradient type. Available types: linear, radial, angular, diamond, spiral, square, star
-h, --help help for render
--highlight-lines string Lines to highlight. eg. '1-3;4'
-i, --interactive Interactive mode
-l, --language string The language for syntax highlighting. You can use full name ("Rust") or file extension ("rs")
--line-pad int Pad between lines (default 2)
--no-line-number Hide the line number
--no-window-controls Hide the window controls
-o, --output string Write output image to specific location instead of cwd (default "output.png")
--pad-horiz int Pad horiz (default 80)
--pad-vert int Pad vert (default 100)
--shadow-blur float Blur radius of the shadow. (set it to 0 to hide shadow)
--shadow-color string Color of shadow (default "#00000033")
--shadow-offset-x float Shadow's offset in X axis
--shadow-offset-y float Shadow's offset in Y axis
--shadow-spread float Spread radius of the shadow
--start-line int Line to start from (default 1)
--tab-width int Tab width (default 4)
-t, --theme string The syntax highlight theme. It can be a theme name or path to a .tmTheme file (default "dracula")
-c, --to-clipboard Copy the output image to clipboard
--window-corner-radius float Corner radius of the window (default 10)
--window-title string Show window title
panic: reached end of file before reaching end identifier
goroutine 1 [running]:
github.com/gonvenience/bunt.ParseStream.func2(0x7)
/home/watzon/go/pkg/mod/github.com/gonvenience/bunt@v1.3.5/parse.go:100 +0x75
github.com/gonvenience/bunt.ParseStream.func4()
/home/watzon/go/pkg/mod/github.com/gonvenience/bunt@v1.3.5/parse.go:172 +0x9d
github.com/gonvenience/bunt.ParseStream({0x725498?, 0xc0000f4cf0?}, {0x0, 0x0, 0xc0001ea808?})
/home/watzon/go/pkg/mod/github.com/gonvenience/bunt@v1.3.5/parse.go:225 +0x450
github.com/homeport/termshot/internal/img.(*Scaffold).AddContent(0xc000189ac0, {0x725498?, 0xc0000f4cf0?})
/home/watzon/go/pkg/mod/github.com/homeport/termshot@v0.2.11/internal/img/output.go:118 +0x33
github.com/homeport/termshot/internal/cmd.init.func1(0xa0c860, {0xc0000c44b0, 0x3, 0x5})
/home/watzon/go/pkg/mod/github.com/homeport/termshot@v0.2.11/internal/cmd/root.go:120 +0x556
github.com/spf13/cobra.(*Command).execute(0xa0c860, {0xc0000161f0, 0x5, 0x5})
/home/watzon/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:985 +0xaaa
github.com/spf13/cobra.(*Command).ExecuteC(0xa0c860)
/home/watzon/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
/home/watzon/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041
github.com/homeport/termshot/internal/cmd.Execute()
/home/watzon/go/pkg/mod/github.com/homeport/termshot@v0.2.11/internal/cmd/root.go:161 +0x55
main.main()
/home/watzon/go/pkg/mod/github.com/homeport/termshot@v0.2.11/cmd/termshot/main.go:26 +0xf
When running the following command I get the following problem. I'm not sure if it's because the output from the
composer updated
command is just too big or because it's using a lot of width. Any help understanding the error further would be appreciated.I'm using a build of main branch but it happens with the latest release 0.27 as well. Running on MacOS using an M3 Pro.