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)
- What version of Delve are you using (
dlv version)? Version: 1.3.0 - What version of Go are you using? (
go version)? go version go1.13.1 darwin/amd64 - What operating system and processor architecture are you using? macOS
- What did you do? Initial debugging vi GoLand
- What did you expect to see? Debug process started
- 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)
The right way is upgrade GoLand to newer and the issue will be fixed. Here is a temporary solution:
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!!!
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?
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/dlvplaced 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.