英文:
Golang plugin in intellij-Idea not finding all files
问题
这涉及到 IntelliJ IDEA 的 Go 语言插件(版本 0.9.15.3)。我有一个以下格式的目录结构:
- src/
-
- fred/
-
-
- fred.go
-
-
- bill/
-
-
- bill.go
-
在 bill/bill.go 中,我导入了 fred.go,并且编译器可以识别到 fred.Something 的引用(在命令行中运行时)。
但是 IntelliJ IDEA 并不识别对 fred.Something 的引用;它们会显示为红色,并且像“转到定义”这样的操作也不起作用。
有什么办法可以解决这个问题吗?
如果可能的话,我不想升级到插件的 alpha 版本,除非它是稳定的(如果是稳定的,就不应该是 alpha 版本)。
英文:
This relates to the go language plugin (version 0.9.15.3) for IntelliJ IDEA.
I have a directory structure in the following format:
- src/
-
- fred/
-
-
- fred.go
-
-
- bill/
-
-
- bill.go
-
In (say) bill/bill.go, I import fred.go, and the compiler picks up references to fred.Something (when run from the command line).
But IntelliJ IDEA does not recognise the references to fred.Something; they come up in red, and actions such as 'go to definition' do not work.
Is there anything I can do to make this work?
I don't want to upgrade to the alpha version of the plugin if I can help it, unless it is stable (in which case, it should not be alpha).
答案1
得分: 1
请不要使用0.9.15.3版本。最新的插件应该适用于您的情况,如果不适用,请提交一个问题。
要获取最新的插件,请按照这里的说明进行操作:https://github.com/go-lang-plugin-org/go-lang-idea-plugin#pre-release-builds
英文:
Please don't use 0.9.15.3. The latest plugin should work properly for your case, if not please open a issue.
To get the latest plugin, please follow the instructions from here: https://github.com/go-lang-plugin-org/go-lang-idea-plugin#pre-release-builds
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论