delve: Version of Delve is too old for this version of Go (maximum supported version 1.12, suppress this error with --check-go-version=false)

  1. What version of Delve are you using (dlv version)? Version: 1.3.0
  2. What version of Go are you using? (go version)? go version go1.13.1 darwin/amd64
  3. What operating system and processor architecture are you using? macOS
  4. What did you do? Initial debugging vi GoLand
  5. What did you expect to see? Debug process started
  6. What did you see instead? Version of Delve is too old for this version of Go (maximum supported version 1.12, suppress this error with --check-go-version=false)

I tried to add the flag to the Go tool arguments: via the Run/Debug Configurations in GoLand, but I received the following error:

flag provided but not defined: -check-go-version
usage: go build [-o output] [-i] [build flags] [packages]
Run 'go help build' for details.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

The right way is upgrade GoLand to newer and the issue will be fixed. Here is a temporary solution:

$ go version
go version go1.14 darwin/amd64

$ goland_dlv_dir=/Applications/GoLand.app/Contents/plugins/go/lib/dlv/mac/
$ $goland_dlv_dir/dlv version
Delve Debugger
Version: 1.3.0
Build: a82e6d69875ed11a0bb3b80d15efba4b4722106e

# install latest 
go get -u github.com/go-delve/delve/cmd/dlv

# bak
mv $goland_dlv_dir/dlv $goland_dlv_dir/dlv.bak

# mv
cp `go env | grep GOPATH | cut -d "\"" -f 2`/bin/dlv $goland_dlv_dir/

# ok 
$goland_dlv_dir/dlv version
Delve Debugger
Version: 1.4.0
Build: $Id: 67422e6f7148fa1efa0eac1423ab5594b223d93b

Upgrade GoLand to 2019.2.2 or newer and the issue will be fixed. This is not a Delve issue, it’s caused by us, JetBrains, embedding Delve in the IDE.

what fuck?just now , JetBrains was by me crack!!!

@52fhy please don’t do that because it will break the IDE updating process. and other things. Just upgrade the IDE and everything will be fine.

my IDE is JetBrains GoLand 2019.2.3 x64, but also take the error Version of Delve is too old for this version of Go (maximum supported version 1.13, suppress this error with --check-go-version=false)

dlv version Delve Debugger Version: 1.4.1 Build: $Id: bda606147ff48b58bde39e20b9e11378eaa4db46 $

go version go version go1.14.2 windows/amd64

@dlsniper do you have a solution for fallback license owners who have already invested 200$+ in your product?

@52fhy please don’t do that because it will break the IDE updating process. and other things. Just upgrade the IDE and everything will be fine.

Thanks. Upgrade is too slow. Sometimes I just want to debug and don’t want to upgrade the IDE.

@dlsniper I am using your perpetual fallback version and your suggested fix requires me to pay for one more year of goland for 200$. I don’t want to pay but still want to have access to the debugger. The fix above seems to be the only way to achieve that.

[Windows] I know this is closed and I’m late to the party, but I landed here after getting the title error in Visual Studio Code. I found that go v1.15.3 shipped with dlv v1.12. Updating dlv via go get -u github.com/go-delve/delve/cmd/dlv placed the new dlv v1.5.0 in a local (.\go\bin relative to my current directory) directory. Copying the new .\go\bin\dlv.exe to my go install (c:\go\bin\bin in my case) corrected the problem. Perhaps this will help someone hitting the same issue.

@dlsniper The pricing might have changed but 200$ is how much I paid for a single year. Thank you for the workaround solution.