把Go 更新到1.11 之后 更新gocode 总是出现这个问题

C:\Users\lenovo>go install github.com/mdempsky/gocode

# runtime
E:\Go\src\runtime\map.go:64:2: bucketCntBits redeclared in this block
        previous declaration at E:\Go\src\runtime\hashmap.go:64:18
E:\Go\src\runtime\map.go:65:2: bucketCnt redeclared in this block
        previous declaration at E:\Go\src\runtime\hashmap.go:65:23
E:\Go\src\runtime\map.go:76:2: maxKeySize redeclared in this block
        previous declaration at E:\Go\src\runtime\hashmap.go:74:17
E:\Go\src\runtime\map.go:77:2: maxValueSize redeclared in this block
        previous declaration at E:\Go\src\runtime\hashmap.go:75:17
E:\Go\src\runtime\map.go:82:2: dataOffset redeclared in this block
        previous declaration at E:\Go\src\runtime\hashmap.go:83:4
E:\Go\src\runtime\map.go:91:2: empty redeclared in this block
        previous declaration at E:\Go\src\runtime\hashmap.go:89:19
E:\Go\src\runtime\map.go:92:2: evacuatedEmpty redeclared in this block
        previous declaration at E:\Go\src\runtime\hashmap.go:90:19
E:\Go\src\runtime\map.go:93:2: evacuatedX redeclared in this block
        previous declaration at E:\Go\src\runtime\hashmap.go:91:19
E:\Go\src\runtime\map.go:94:2: evacuatedY redeclared in this block
        previous declaration at E:\Go\src\runtime\hashmap.go:92:19
E:\Go\src\runtime\map.go:95:2: minTopHash redeclared in this block
        previous declaration at E:\Go\src\runtime\hashmap.go:93:19
E:\Go\src\runtime\map.go:95:2: too many errors

总是报这个错误这是为什么呢?

已邀请:

hedakui - 90后it男

赞同来自:

我记得之前覆盖升级也出现过这种情况,把目录删了重新试试

astaxie - 创造、获取、分享、传播和应用Go

赞同来自:

但是从错误提示来看是你的Go源代码没有安装成功啊,都是从src/runtime里面报出来的错误

Aroaming - 92

赞同来自:

先把$GOROOT 删除了,然后再安装。

hong

赞同来自:

请问问题解决了吗?是什么原因呢?

要回复问题请先登录注册