带有 Golang 的 IntelliJ 抛出 IllegalArgumentException

IntelliJ with Golang throws IllegalArgumentException

我遇到了以下问题: 当我尝试将 Go-SDK 添加到我的项目和 select GOROOT-Path (C:\Lib\Go) 时,我得到一个 IllegalArgumentException.

我google了一下,很多人都遇到过这个问题。 一种解决方案是为目前处于 Alpha 阶段的 IntelliJ 安装后来的 golang 插件,但是当我从 github 下载源代码并在 IntelliJ 中打开它时,我遇到了很多错误,所以我无法构建它并创建一个可执行的 jar 插件。我觉得所有的依赖应该直接在Project中集成吧?!

您知道其他解决方案吗,或者 IDE 具有类似 IntelliJ 的功能。

alpha 版插件不需要编译。

请按照自述文件中的说明进行操作,https://github.com/go-lang-plugin-org/go-lang-idea-plugin/#pre-release-builds,您应该可以很好地安装它。

1) Follow the instructions from here https://www.jetbrains.com/idea/help/managing-enterprise-plugin-repositories.html

2) Paste the url for the version you desire: