dlv version)?go version)?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.
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.
@dlsniper tnx for the quick answer. Indeed it was an issue of JetBrains.
what fuck?just now , JetBrains was by me crack!!!!
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
@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.
@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.
We release an updated version once a month, so not sure why that is slower than breaking the IDE installation. That being said, if you are aware of the problem it causes, you can still do it, of course. Just know that we don't support this and in the future, when Delve APIs will change, this might further break your IDE experience.
We release an updated version once a month, so not sure why that is slower than breaking the IDE installation. That being said, if you are aware of the problem it causes, you can still do it, of course. Just know that we don't support this and in the future, when Delve APIs will change, this might further break your IDE experience.
Thank you very much. My solution is temporary. The right way is to upgrade goland.
@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
@gbwxy please upgrade to GoLand 2020.1.2 and that problem will disappear.
@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.
@dlsniper do you have a solution for fallback license owners who have already invested 200$+ in your product?
@jtestard if you don't want to upgrade to a newer version of the IDE, then @52fhy's solution above is the only solution we've got. then you can follow the instructions here: https://youtrack.jetbrains.com/issue/GO-8186#focus=streamItem-27-3730182.0-0 for a workaround that won't break the IDE upgrade path.
Also, I have to apologize for the incorrect version mentioned above. The fix for this issue was applied in 2019.2.4, per comment on our issue tracker. Still, we encourage everyone to use the latest possible version to make sure that the experience is worthy of the paid price.
Finally, the license price for GoLand is $89 for the first year, then $71 for the second year, and $53 from the third year onward. Unless you are a company, but that's beyond the scope of this issue.
I'm happy to move the discussion on our support channels for GoLand.
Edit: Be aware that doing so, might cause problems in the future, if the Delve APIs will need changes to work, etc. and that point the only solution will be an upgrade anyway.
@dlsniper The pricing might have changed but 200$ is how much I paid for a single year. Thank you for the workaround solution.
[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 (.gobin relative to my current directory) directory. Copying the new .gobindlv.exe to my go install (c:gobinbin in my case) corrected the problem. Perhaps this will help someone hitting the same issue.
Most helpful comment
The right way is upgrade GoLand to newer and the issue will be fixed. Here is a temporary solution: