0

When start debbugging session in GoLand I get this error:

WARNING: undefined behavior - version of Delve is too old for Go version 1.20.0 (maximum supported version 1.19)

I reinstall it with JetBrains Toolbox and didn't work. I uninstall it and install it manualy and didn't work!

The IDE maintainers say that GoLand didn't update delve when updating the IDE version in SOME CONDITIONS!

  • Have you tried installing a newer version of delve? – Adrian Feb 27 '23 at 22:41
  • No, there is no doc on JetBrains to update it in GoLand. If you have a resource to do it please provide me with it. – Mohab Alnajjar Feb 28 '23 at 07:35
  • Please download EAP version of GoLand (https://www.jetbrains.com/go/nextversion/). It contains the latest version of Delve. – s0xzwasd Feb 28 '23 at 08:54
  • Thanks But, it is stable? – Mohab Alnajjar Feb 28 '23 at 12:19
  • 1
    It is in Beta right now, so pretty stable. Alternatively, you can update Delve using following workaround: https://youtrack.jetbrains.com/issue/GO-14287/undefined-behavior-version-of-Delve-is-too-old-for-Go-version-1.20.0-maximum-supported-version-1.19#focus=Comments-27-6915232.0-0 – s0xzwasd Mar 07 '23 at 15:32

3 Answers3

2

I was using GoLand 2022.3.2, recently 2022.3.3 was released and I update it to the latest version, and the issue was resolved.

I don't think it solves the problem entirely and I may hit it again in the future. So, I hope they fix it in a complete manner.

0

You can either install the latest version of goland or upgrade only the dlv. For the latter, download source code from here and run go install pathToYourDownloadedPackage/cmd/dlv

TiGo
  • 652
  • 6
  • 11
0

I was having the same problem. Updating the Goland version solved my problem.

Make sure you've fully updated your IDE by following these commands: Help -> Check for updates.