Delve Version Too Low to Work with GoLand
Problem
While debugging code in GoLand recently, I kept encountering the following error:
|
|
Solution
The issue essentially means that the installed version of Delve is too old and incompatible with the current Go version.
To resolve this, update Delve. Since I’m using brew for installation, and the official documentation doesn’t provide detailed instructions for brew, we’ll install it directly.
Or install a specific version:
By default, go install places the binary in $GOPATH/bin.
Uninstall the existing Delve and update your PATH in zsh:
|
|
Edit ~/.zshrc and add:
|
|
Reference: https://github.com/go-delve/delve/tree/master/Documentation/installation