[英]Importing Go Projects in IntelliJ Not Working
I recently started out with Go programming and I wanted to checkout some open source projects. 我最近刚开始使用Go编程,我想签出一些开源项目。 I cloned one and I wanted to get that imported into IntelliJ Community Edition 2017.1.1 but when I imported the whole project, I get strange errors.
我克隆了一个,我想将其导入IntelliJ Community Edition 2017.1.1,但是当我导入整个项目时,出现了奇怪的错误。 Somehow IntelliJ is not able to find the Go binaries.
IntelliJ不知何故找不到Go二进制文件。
Here are my settings: 这是我的设置:
joe-MacBook-Pro:go-ethereum joe$ echo $GOPATH
/Users/joe/Projects/Private/go-projects
joe-MacBook-Pro:go-ethereum joe$
Here is where Go is installed: 这是安装Go的位置:
joe-MacBook-Pro:go-ethereum joe$ which go
/usr/local/bin/go
joe-MacBook-Pro:go-ethereum joe$
What else should I do? 我该怎么办? I'm using the Go Lang Plugin for IntelliJ version 0.171.1931
我正在使用IntelliJ版本的Go Lang插件0.171.1931
Is there anything else I should do to get this working? 为了使它正常工作,我还有什么需要做的吗? Here is the screenshot of the errors that I get!
这是我得到的错误的屏幕截图!
Maybe this will answer your question: 也许这会回答您的问题:
Please specify a path to Go SDK in Settings/Languages & Frameworks/Go/Go SDK See https://github.com/go-lang-plugin-org/go-lang-idea-plugin/wiki/Documentation#setting-up-the-go-sdk
请在“设置” /“语言和框架” /“ Go / Go SDK”中指定Go SDK的路径,请参阅https://github.com/go-lang-plugin-org/go-lang-idea-plugin/wiki/Documentation#setting-up随身碟
https://intellij-support.jetbrains.com/hc/en-us/community/posts/207004125--No-Go-SDK-defined-for-this-project-getting-this-message-in-WebStorm https://intellij-support.jetbrains.com/hc/zh-cn/community/posts/207004125-No-Go-SDK-defined-for-this-project-getting-this-message-in-WebStorm
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.