Skip to content
New issue

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

program panic on my first try #3

Open
kuangchanglang opened this issue Jul 1, 2016 · 1 comment
Open

program panic on my first try #3

kuangchanglang opened this issue Jul 1, 2016 · 1 comment

Comments

@kuangchanglang
Copy link

panic: runtime error: index out of range

goroutine 1 [running]:
panic(0x668ca0, 0xc82000e090)
/usr/local/go/src/runtime/panic.go:481 +0x3e6
github.com/natefinch/graffiti/tags.(_visitor).Visit(0xc8200c6930, 0x7faa6a903bc0, 0xc820078f60, 0x0, 0x0)
/home/kcln1687/gopath/src/github.com/natefinch/graffiti/tags/generate.go:126 +0x4d6
go/ast.Walk(0x7faa6a903a78, 0xc8200c6930, 0x7faa6a903bc0, 0xc820078f60)
/usr/local/go/src/go/ast/walk.go:52 +0x56
go/ast.Walk(0x7faa6a903a78, 0xc8200c6930, 0x7faa6a903ad0, 0xc820070ec0)
/usr/local/go/src/go/ast/walk.go:331 +0x1f7d
go/ast.walkDeclList(0x7faa6a903a78, 0xc8200c6930, 0xc8200b0900, 0x9, 0x10)
/usr/local/go/src/go/ast/walk.go:38 +0xd5
go/ast.Walk(0x7faa6a903a78, 0xc8200c6930, 0x7faa6a903a48, 0xc8200aea00)
/usr/local/go/src/go/ast/walk.go:353 +0x29b9
github.com/natefinch/graffiti/tags.gen(0x7ffe357c3681, 0x9, 0xc8200805e0, 0x2, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/kcln1687/gopath/src/github.com/natefinch/graffiti/tags/generate.go:81 +0x122
github.com/natefinch/graffiti/tags.genfile(0x7ffe357c3681, 0x9, 0xc8200805e0, 0x2, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/kcln1687/gopath/src/github.com/natefinch/graffiti/tags/generate.go:64 +0x143
github.com/natefinch/graffiti/tags.Generate(0x7ffe357c3681, 0x9, 0xc8200805e0, 0x2, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/kcln1687/gopath/src/github.com/natefinch/graffiti/tags/generate.go:42 +0xe6
main.genCmd.func1(0xc82009a6c0, 0xc8200805c0, 0x2, 0x2)
/home/kcln1687/gopath/src/github.com/natefinch/graffiti/main.go:56 +0x1b2
github.com/spf13/cobra.(_Command).execute(0xc82009a6c0, 0xc8200804a0, 0x2, 0x2, 0x0, 0x0)
/home/kcln1687/gopath/src/github.com/spf13/cobra/command.go:575 +0x896
github.com/spf13/cobra.(_Command).ExecuteC(0xc82009a480, 0xc82009a6c0, 0x0, 0x0)
/home/kcln1687/gopath/src/github.com/spf13/cobra/command.go:661 +0x55c
github.com/spf13/cobra.(_Command).Execute(0xc82009a480, 0x0, 0x0)
/home/kcln1687/gopath/src/github.com/spf13/cobra/command.go:620 +0x2d
main.main()
/home/kcln1687/gopath/src/github.com/natefinch/graffiti/main.go:16 +0x25

@natefinch
Copy link
Owner

Ug, sorry. This repo isn't at all production ready. It's just barely past proof of concept. I'll poke at it sometime in the next week and try to get it to at least compile and run correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants