英文:
Error with autocomplete in Eclipse
问题
我正在运行安装了GoClipse和NodeClipse的Eclipse 4.6.3版本。我已经在首选项 -> Go 中配置了Go。
我希望Go的自动补全功能能够正常工作。然而,它给我报错:writing to process input broken pipe。
请参考下面的截图,其中包含了错误信息和配置信息。
我该如何解决这个问题?
英文:
I am running Eclipse 4.6.3 with GoClipse and NodeClipse installed. I have configured Go in Preferences -> Go.
I want autocomplete to work for Go. However, it is giving me the error: writing to process input broken pipe
See screenshots below for error and configuration.
How do I fix this problem?
答案1
得分: 7
至少在第二页上,所有的路径都似乎是错误的。你提供了源代码的路径,而对话框要求提供可执行文件的路径。
为了确保你已经安装了所有的工具,请在终端中运行以下命令:
go get -u github.com/nsf/gocode
go get -u golang.org/x/tools/cmd/guru
go get -u github.com/rogpeppe/godef
现在,对于每个工具运行以下命令:
which <工具名>
# 例如:
which guru
# => /Users/user/gocode/bin/gocode
将输出复制到配置界面的可执行文件
字段中。
对于gofmt,你应该可以简单地勾选“使用默认位置”。
英文:
At least on the second page, all of the paths seem wrong. You supplied the path to the source code where the dialog asks for the path to the executable.
To make sure you have all the tools installed run the following commands in the terminal:
go get -u github.com/nsf/gocode
go get -u golang.org/x/tools/cmd/guru
go get -u github.com/rogpeppe/godef
Now, for each of the tools run
which <tool>
# example:
which guru
# => /Users/user/gocode/bin/gocode
Copy the output into the Executable:
field in the config screen.
For gofmt you should be able to simply tick "Use default location"
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论