The selected directory is not a valid home for Go SDK 解决方案
Navigate to the Go SDK root (execute
go env
and findGOROOT
entry), then navigate tosrc/runtime/internal/sys
inside the Go SDK root.Edit
zversion.go
file and add an entry on a new line: const theVersion = `go1.17`
zversion.go
// Code generated by go tool dist; DO NOT EDIT. package sys const StackGuardMultiplierDefault = 1 const theVersion = `go1.17`
Restart GoLand, invoke File | Settings | Go | GOROOT, select Local and specify the path to the Go SDK.
https://youtrack.jetbrains.com/issue/GO-11588#focus=Comments-27-5127829.0-0