英文:
IntelliJ with Golang throws IllegalArgumentException
问题
我遇到了以下问题:
当我尝试将Go-SDK添加到我的项目中,并选择GOROOT路径(C:\Lib\Go)时,我遇到了一个IllegalArgumentException
。
我在谷歌上搜索了一下,发现很多人都遇到了这个问题。
其中一个解决方案是安装一个最新的IntelliJ的golang插件,目前还处于Alpha版本,但是当我从GitHub上下载源代码并在IntelliJ中打开时,出现了很多错误,所以我无法构建它并创建一个可执行的jar插件。我认为所有的依赖应该直接集成到项目中?!
你知道其他的解决方案吗,或者有没有类似IntelliJ功能的IDE推荐?
英文:
I am encountering the following Problem:
When I try to add the Go-SDK to my Project, and select the GOROOT-Path (C:\Lib\Go), I get an IllegalArgumentException
.
I googled it, and lots of People are encountering this issue.
One solution would be the Installation of a later golang-plugin for IntelliJ which is currently in the Alpha, but however when I download the source from github and open it in IntelliJ, I get lots of Errors, so I am unable to build it and create an executble jar-plugin. I think all dependencies should be directly in the Project integrated?!
Do you know other Solutions, or maybe an IDE with similiar Features like IntelliJ.
答案1
得分: 0
插件的 alpha 版本不需要你进行编译。
请按照 readme 中的说明进行操作,链接为 https://github.com/go-lang-plugin-org/go-lang-idea-plugin/#pre-release-builds,你应该能够成功安装它。
请按照这里的说明进行操作 https://www.jetbrains.com/idea/help/managing-enterprise-plugin-repositories.html
粘贴你想要的版本的 URL:
- alpha 版本:https://plugins.jetbrains.com/plugins/alpha/5047
- nightly 版本:https://plugins.jetbrains.com/plugins/nightly/5047
英文:
The alpha version of the plugin doesn't require you to compile it.
Please follow the instructions in the readme, https://github.com/go-lang-plugin-org/go-lang-idea-plugin/#pre-release-builds, and you should be able to install it just fine.
> 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:
>
> - alpha: https://plugins.jetbrains.com/plugins/alpha/5047
> - nightly: https://plugins.jetbrains.com/plugins/nightly/5047
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论