“The selected directory is not a valid home for Go SDK” Goland报错处理
2022/2/21 6:29:16
本文主要是介绍“The selected directory is not a valid home for Go SDK” Goland报错处理,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
使用g升级golang版本到1.17.*的时候goland无法配置sdk,报错如下
The selected directory is not a valid home for Go SDK
检查环境配置无误
解决办法
1.执行go version 找到自己安装的详细版本
2.编辑%G_HOME%/version/1.17.7/src/runtime/internal/sys/zversion.go文件(如果没使用g控制go版本也就是自己安装的编辑%GOROOT%/src/runtime/internal/sys/zversion.go文件)
添加如下代码:
const TheVersion = `go1.17.7`
3.重启goland即可导入成功
这篇关于“The selected directory is not a valid home for Go SDK” Goland报错处理的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-06-26解决google chrome helper 内存占用较高!
- 2024-04-01got an unexpected keyword argument
- 2024-03-30维多利亚的秘密 golang入坑系统
- 2024-03-29mongodb sort by date
- 2024-03-29go swagger
- 2024-03-25mongodb cdc
- 2024-03-25how to use go in vscode
- 2024-03-22mongooseserverselectionerror: connect econnrefused ::1:27017
- 2024-03-21pymongo insert_many
- 2024-03-18projection mongodb