Skip to content

panic when running the app #1

Closed

Description

@kempjeng

lc

no flags, in a source code folder with no license file

panic: runtime error: index out of range

goroutine 1 [running]:
github.com/boyter/lc/parsers.walkDirectory(0x5c4a12, 0x1, 0xc42004f908, 0x0, 0x0, 0x0, 0x564a6d, 0xc4200b8420)
	~/go/src/github.com/boyter/lc/parsers/guesser.go:249 +0xf3e
github.com/boyter/lc/parsers.Process()
	~/go/src/github.com/boyter/lc/parsers/guesser.go:343 +0x5b8
main.main.func1(0xc4200b8420, 0xc4200b8420, 0xc4200479b7)
	~/go/src/github.com/boyter/lc/main.go:89 +0x5e
github.com/boyter/lc/vendor/github.com/urfave/cli.HandleAction(0x58eda0, 0xaa4ae8, 0xc4200b8420, 0xc42005a1e0, 0x0)
	~/go/src/github.com/boyter/lc/vendor/github.com/urfave/cli/app.go:490 +0xd2
github.com/boyter/lc/vendor/github.com/urfave/cli.(*App).Run(0xc420082820, 0xc42000e250, 0x1, 0x1, 0x0, 0x0)
	~/go/src/github.com/boyter/lc/vendor/github.com/urfave/cli/app.go:264 +0x635
main.main()
	~/go/src/github.com/boyter/lc/main.go:93 +0x9c9

Perhaps this is related to not having a license in the root directory?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      ⌂ 换网址