Vivado调试之痛:遇到‘debug hub core not detected’?别慌,这份Ibert核识别失败排查清单请收好
2026/6/9 2:10:01
在后台执行:
go install golang.org/x/tools/gopls@latest但Go 默认一定会访问:
https://proxy.golang.org,direct而当前网络没有被 Go 识别→ 请求超时 → 所有工具安装失败。
在终端执行(macOS):
go env -w GOPROXY=https://goproxy.cn,direct或者(七牛代理):
go env -w GOPROXY=https://goproxy.io,direct然后验证:
go env GOPROXY看到类似:
https://goproxy.cn,direct说明成功 ✅
重启Cursor/VSCode打开一个.go文件,它会自动重新尝试安装:
👉这一步通常就能直接成功
下面是Cursor / vscode-go 默认会装的所有 Go 工具清单
可以一次性手动装完
go install golang.org/x/tools/gopls@latest go install golang.org/x/tools/cmd/goimports@latest go install honnef.co/go/tools/cmd/staticcheck@latest go install github.com/go-delve/delve/cmd/dlv@latest go install github.com/cweill/gotests/gotests@latest go install github.com/josharian/impl@latest go install github.com/traefik/yaegi/cmd/yaegi@latest⚠️ 前提:网络已经能访问
日志里已经说明:
Installing tools at /Users/dengzemiao/go/bin确认 PATH 包含它:
echo $PATH | grep go/bin如果没有:
echo 'export PATH=$PATH:$HOME/go/bin' >> ~/.zshrc source ~/.zshrcgopls version goimports -h staticcheck -h dlv version只要有输出不报错 = 成功