请问有人在win 10上安装过go-callvis吗?

go2love · · 2260 次点击
jan-bar
想要拥有,必定付出。
我用下面的方法编译过了,但是按照GitHub搞那三个仓库的例子,运行时全都报错。试了最简单的项目也报错。 ```sh git clone --depth=1 -b v0.6.1 git@github.com:ofabry/go-callvis.git set CGO_ENABLED=1 go install -ldflags "-X main.commit=v0.6.1 -extldflags \"-Wl,--allow-multiple-definition\"" ```
#1
更多评论
感谢,我再咨询下。
#2
大神,参照你的方案安装成功了,在运行的时候有如下报错有没有遇到过: 每一次执行的报错都有些区别,也执行过go mod tidy了。其中一次的报错如下: ``` C:\Program Files\Go\src\dbsqlcoll>go-callvis dbsqlcoll panic: interface conversion: types.Type is nil, not *types.Signature goroutine 1951 [running]: golang.org/x/tools/go/ssa.(*builder).expr0(0x7ff749a86980?, 0xc0094b5900, {0x7ff749bf1628?, 0xc019b6ea20}, {0x0, {0x0, 0x0}, {0x0, 0x0}}) C:/Users/Gao/go/pkg/mod/golang.org/x/tools@v0.0.0-20200305224536-de023d59a5d1/go/ssa/builder.go:679 +0x1ba8 golang.org/x/tools/go/ssa.(*builder).expr(0x7ff749a85a20?, 0xc0094b5900, {0x7ff749bf1628?, 0xc019b6ea20?}) C:/Users/Gao/go/pkg/mod/golang.org/x/tools@v0.0.0-20200305224536-de023d59a5d1/go/ssa/builder.go:530 +0x19f golang.org/x/tools/go/ssa.(*builder).expr0(0x7ff749a86980?, 0xc0094b5900, {0x7ff749bf18c8?, 0xc019b74f48}, {0x2, {0x7ff749bf0400, 0xc01a0868c0}, {0x0, 0x0}}) C:/Users/Gao/go/pkg/mod/golang.org/x/tools@v0.0.0-20200305224536-de023d59a5d1/go/ssa/builder.go:697 +0x14dd golang.org/x/tools/go/ssa.(*builder).expr(0x7ff749a85a20?, 0xc0094b5900, {0x7ff749bf18c8?, 0xc019b74f48?}) C:/Users/Gao/go/pkg/mod/golang.org/x/tools@v0.0.0-20200305224536-de023d59a5d1/go/ssa/builder.go:530 +0x19f golang.org/x/tools/go/ssa.(*builder).setCallFunc(0x80?, 0xc0094b5900?, 0xc019c61dc0?, 0xc0039b1040) C:/Users/Gao/go/pkg/mod/golang.org/x/tools@v0.0.0-20200305224536-de023d59a5d1/go/ssa/builder.go:881 +0x30c golang.org/x/tools/go/ssa.(*builder).setCall(0x7ff749a86980?, 0xc0094b5900, 0xc019c61dc0, 0xc0039b1040) C:/Users/Gao/go/pkg/mod/golang.org/x/tools@v0.0.0-20200305224536-de023d59a5d1/go/ssa/builder.go:962 +0x31 golang.org/x/tools/go/ssa.(*builder).expr0(0x7ff749a86980?, 0xc0094b5900, {0x7ff749bf1328?, 0xc019c61dc0}, {0x7, {0x7ff749bf0428, 0xc019c35930}, {0x0, 0x0}}) C:/Users/Gao/go/pkg/mod/golang.org/x/tools@v0.0.0-20200305224536-de023d59a5d1/go/ssa/builder.go:596 +0x1e9e golang.org/x/tools/go/ssa.(*builder).expr(0xc0094b5900?, 0xc0094b5900, {0x7ff749bf1328?, 0xc019c61dc0?}) C:/Users/Gao/go/pkg/mod/golang.org/x/tools@v0.0.0-20200305224536-de023d59a5d1/go/ssa/builder.go:530 +0x19f golang.org/x/tools/go/ssa.(*builder).stmt(0x0?, 0xc0094b5900, {0x7ff749bf1868?, 0xc019b6eb40?}) C:/Users/Gao/go/pkg/mod/golang.org/x/tools@v0.0.0-20200305224536-de023d59a5d1/go/ssa/builder.go:2048 +0x2232 golang.org/x/tools/go/ssa.(*builder).stmtList(0x2030067?, 0x215c6749480?, {0xc019c61d00?, 0x4, 0x20?}) C:/Users/Gao/go/pkg/mod/golang.org/x/tools@v0.0.0-20200305224536-de023d59a5d1/go/ssa/builder.go:790 +0x67 golang.org/x/tools/go/ssa.(*builder).stmt(0xc0094b5900?, 0xc0094b5900, {0x7ff749bf12c8?, 0xc019c7d1a0?}) C:/Users/Gao/go/pkg/mod/golang.org/x/tools@v0.0.0-20200305224536-de023d59a5d1/go/ssa/builder.go:2105 +0x18bd golang.org/x/tools/go/ssa.(*builder).buildFunction(0x7ff749a86c80?, 0xc0094b5900) C:/Users/Gao/go/pkg/mod/golang.org/x/tools@v0.0.0-20200305224536-de023d59a5d1/go/ssa/builder.go:2198 +0x47a golang.org/x/tools/go/ssa.(*builder).buildFuncDecl(0x7ff749a85cc0?, 0xc009578c00, 0xc019c7d1d0) C:/Users/Gao/go/pkg/mod/golang.org/x/tools@v0.0.0-20200305224536-de023d59a5d1/go/ssa/builder.go:2228 +0x154 golang.org/x/tools/go/ssa.(*Package).build(0xc009578c00) C:/Users/Gao/go/pkg/mod/golang.org/x/tools@v0.0.0-20200305224536-de023d59a5d1/go/ssa/builder.go:2344 +0xd25 sync.(*Once).doSlow(0xc00f5242e0?, 0xc00f505ed8?) C:/Program Files/Go/src/sync/once.go:74 +0xc2 sync.(*Once).Do(...) C:/Program Files/Go/src/sync/once.go:65 golang.org/x/tools/go/ssa.(*Package).Build(...) C:/Users/Gao/go/pkg/mod/golang.org/x/tools@v0.0.0-20200305224536-de023d59a5d1/go/ssa/builder.go:2263 golang.org/x/tools/go/ssa.(*Program).Build.func1(0x0?) C:/Users/Gao/go/pkg/mod/golang.org/x/tools@v0.0.0-20200305224536-de023d59a5d1/go/ssa/builder.go:2247 +0x4c created by golang.org/x/tools/go/ssa.(*Program).Build C:/Users/Gao/go/pkg/mod/golang.org/x/tools@v0.0.0-20200305224536-de023d59a5d1/go/ssa/builder.go:2246 +0x19c ```
#3