Skip to content

When creating a second board, I get an error #4

Open
@abhishek71994

Description

@abhishek71994

NOTE: The board got created with the correct tabs but this was shown

2025/01/29 22:28:17 GetBoardDir: /Users/abhishek/.tabman/29Jan
panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
github.com/abhishek71994/tab-manager-cli/internal/utils.FetchChromeTabs()
	/Users/abhishek/Desktop/work/golang_proj/tab-manager-cli/internal/utils/chrome_tabs.go:38 +0x408
github.com/abhishek71994/tab-manager-cli/internal/commands.(*BoardCommand).CreateBoard(0x14000106060, {0x16ba7f4fd, 0x5})
	/Users/abhishek/Desktop/work/golang_proj/tab-manager-cli/internal/commands/board.go:29 +0x40
github.com/abhishek71994/tab-manager-cli/cmd/cli.NewApp.func1(0x140001a8000?)
	/Users/abhishek/Desktop/work/golang_proj/tab-manager-cli/cmd/cli/app.go:37 +0x40
github.com/urfave/cli/v2.(*Command).Run(0x140001a8000, 0x14000120440, {0x14000112780, 0x3, 0x3})
	/Users/abhishek/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:276 +0x754
github.com/urfave/cli/v2.(*Command).Run(0x140001a89a0, 0x14000120380, {0x14000120040, 0x4, 0x4})
	/Users/abhishek/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:269 +0x964
github.com/urfave/cli/v2.(*App).RunContext(0x140001a6000, {0x10459e840?, 0x10470d6c0}, {0x14000120040, 0x4, 0x4})
	/Users/abhishek/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:333 +0x53c
github.com/urfave/cli/v2.(*App).Run(...)
	/Users/abhishek/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:307
github.com/abhishek71994/tab-manager-cli/cmd/cli.Run()
	/Users/abhishek/Desktop/work/golang_proj/tab-manager-cli/cmd/cli/app.go:119 +0x54
main.main()
	/Users/abhishek/Desktop/work/golang_proj/tab-manager-cli/main.go:11 +0x1c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions