Delve version is too low to be compatible with Goland
Problem
When debugging code in Goland recently, the following error is always reported:
|
|
Solution
The problem probably means that the Delve version is too low and cannot meet the current Golang version
Update delve. Since I use brew to install it here, the default official website installation document does not explain brew too much, and there is no upgrade method, so we can just install it directly.
Or according to the specified version:
By default, go install is installed under GOPATH
Uninstall the default delve and update the PATH in the current zsh:
|
|
Update vim ~/.zshrc as follows:
|
|
Reference: https://github.com/go-delve/delve/tree/master/Documentation/installation