IntelliJ with Golang throws IllegalArgumentException



我遇到以下问题:当我尝试将Go- sdk添加到我的项目中,并选择gooot - path (C:LibGo)时,我得到一个IllegalArgumentException .

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

你知道其他的解决方案吗?或者有类似功能的IDE,比如IntelliJ.

插件的alpha版本不需要你编译它。

请按照readme中的说明,https://github.com/go-lang-plugin-org/go-lang-idea-plugin/#pre-release-builds,您应该能够安装它。

1)按照这里的说明https://www.jetbrains.com/idea/help/managing-enterprise-plugin-repositories.html

2)粘贴你想要的版本的url:
  • α:https://plugins.jetbrains.com/plugins/alpha/5047
  • 夜间:https://plugins.jetbrains.com/plugins/nightly/5047

最新更新