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

panic: runtime error: index out of range [0] with length 0 #6

Closed
myuon opened this issue Mar 13, 2020 · 0 comments
Closed

panic: runtime error: index out of range [0] with length 0 #6

myuon opened this issue Mar 13, 2020 · 0 comments
Labels
💉 bug 💊💗 バグ。動作しなかったり治してほしいときに。

Comments

@myuon
Copy link
Contributor

myuon commented Mar 13, 2020

coreで go run github.com/matsuri-tech/golint-extra ./... した結果

panic: runtime error: index out of range [0] with length 0

goroutine 3683 [running]:
github.com/matsuri-tech/golint-extra/rules.run.func2(0x80cec0, 0xc0006335c0)
        /home/ishibashi/go/pkg/mod/github.com/matsuri-tech/golint-extra@v0.0.0-20200313095921-7f08cdca73ed/rules/zerovalue_struct.go:140 +0xa1a                                                                                                                               
golang.org/x/tools/go/ast/inspector.(*Inspector).Preorder(0xc0032efc60, 0xc000a799e0, 0x1, 0x1, 0xc000a79a50)
        /home/ishibashi/go/pkg/mod/golang.org/x/tools@v0.0.0-20200308013534-11ec41452d41/go/ast/inspector/inspector.go:77 +0x9f
github.com/matsuri-tech/golint-extra/rules.run(0xc003310820, 0xc00328dc30, 0xa12a80, 0xc00319f708, 0x8)
        /home/ishibashi/go/pkg/mod/github.com/matsuri-tech/golint-extra@v0.0.0-20200313095921-7f08cdca73ed/rules/zerovalue_struct.go:103 +0x40c                                                                                                                               
golang.org/x/tools/go/analysis/internal/checker.(*action).execOnce(0xc0032ec460)
        /home/ishibashi/go/pkg/mod/golang.org/x/tools@v0.0.0-20200308013534-11ec41452d41/go/analysis/internal/checker/checker.go:658 +0x6fa                                                                                                                                   
sync.(*Once).doSlow(0xc0032ec460, 0xc0007a0f90)
        /snap/go/5364/src/sync/once.go:66 +0xe3
sync.(*Once).Do(...)
        /snap/go/5364/src/sync/once.go:57
golang.org/x/tools/go/analysis/internal/checker.(*action).exec(0xc0032ec460)
        /home/ishibashi/go/pkg/mod/golang.org/x/tools@v0.0.0-20200308013534-11ec41452d41/go/analysis/internal/checker/checker.go:577 +0x60                                                                                                                                    
golang.org/x/tools/go/analysis/internal/checker.execAll.func1(0xc0032ec460)
        /home/ishibashi/go/pkg/mod/golang.org/x/tools@v0.0.0-20200308013534-11ec41452d41/go/analysis/internal/checker/checker.go:565 +0x34                                                                                                                                    
created by golang.org/x/tools/go/analysis/internal/checker.execAll
        /home/ishibashi/go/pkg/mod/golang.org/x/tools@v0.0.0-20200308013534-11ec41452d41/go/analysis/internal/checker/checker.go:571 +0x119                                                                                                                                   
exit status 2
@myuon myuon added the 💉 bug 💊💗 バグ。動作しなかったり治してほしいときに。 label Mar 13, 2020
@myuon myuon closed this as completed Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💉 bug 💊💗 バグ。動作しなかったり治してほしいときに。
Projects
None yet
Development

No branches or pull requests

1 participant