vscode Go 1.11.4 编译错误 need Delve built by Go 1.11 or later

更新golang的版本为1.11.4之后vscode编译错误:executables built by Go 1.11 or later need Delve built by Go 1.11 or later
原因是delve的版本太老了,需要更新,且delve的github地址已经更换,很多教程里的地址是不对的

新地址安装delve:

go get -u github.com/go-delve/delve/cmd/dlv

vscode Go 1.11.4 编译错误 need Delve built by Go 1.11 or later_第1张图片

复制上图的dlv.exe(路径换成自己的)到%GOPATH%/bin目录下即可

查看delve的版本,更新为v1.1的版本了

308699-20190115120959254-451578120.png

问题解决:
vscode Go 1.11.4 编译错误 need Delve built by Go 1.11 or later_第2张图片

转载于:https://www.cnblogs.com/nickchou/p/10271170.html

你可能感兴趣的:(vscode Go 1.11.4 编译错误 need Delve built by Go 1.11 or later)