VSCode Golang dlv 版本不匹配的调试错误



在MacOS上,brew upgrad-ed将golang升级到1.14版本。能够运行单元测试,但调试失败并显示消息

# errors
compile: version "go1.12.13" does not match go tool version "go1.14.2"
# unicode/utf16
compile: version "go1.12.13" does not match go tool version "go1.14.2"
# unicode/utf8
compile: version "go1.12.13" does not match go tool version "go1.14.2"
# internal/race
compile: version "go1.12.13" does not match go tool version "go1.14.2"
# container/list
....

go env输出显示 go 版本为1.14.2

固定。在 VSCode 用户设置中有一个过时的 go bin 引用。

最新更新