英文:
GoSublime: No code completion for App Engine packages
问题
我正在尝试设置Sublime Text 2,以便它还可以为App Engine包提供代码补全。
在我的GoSublime用户设置中,我有以下内容:
{
"shell": ["/bin/bash"],
"env": {"GOPATH": "$HOME/gocode/:$HOME/src/go_appengine/goroot/src/"},
"fmt_cmd": ["goimports"]
}
然而,我无法使App Engine包的代码补全工作。
我还将darwin_amd64_appengine/的符号链接创建到了~/src/go_appengine/goroot/pkg中的darwin_amd64。
有什么想法吗?
英文:
I'm trying to get Sublime Text 2 set up so that it also serves code completion for the App Engine packages.
In my GoSublime User Settings I've got
{
"shell": ["/bin/bash"],
"env": {"GOPATH": "$HOME/gocode/:$HOME/src/go_appengine/goroot/src/"},
"fmt_cmd": ["goimports"]
}
however, I cannot get code completion for the App Engine packages to work.
I have also symlinked darwin_amd64_appengine/ to darwin_amd64 in ~/src/go_appengine/goroot/pkg.
Any ideas?
答案1
得分: 1
我与GoSublime的作者进行了一次相当长的讨论,他非常乐于助人,最终我们解决了问题。
你可以在这个GitHub问题中跟踪许多步骤。
在此过程中,作者修复了两个小错误,所以更新GoSublime可能是你需要做的全部。如果这对你有帮助,请将答案标记为正确。
英文:
I had a quite lengthy discussion with the author of GoSublime, who was extremely helpful and we finally solved the problem.
You can follow along the many steps in this GitHub issue.
Along the way the author fixes two minor bugs, so updating GoSublime might be all you need to do. In case this has helped you, please vote the answer as correct.
答案2
得分: 1
为了避免其他人访问Ralf链接的问题,我将GoSublime
的Settings-User
更改如下:
GoSublime.sublime-settings
{
"use_legacy_imports": true,
"installsuffix": "appengine",
"env": {
"GOPATH": "$HOME/google-cloud-sdk/platform/google_appengine/goroot"
}
}
英文:
To save other from visiting the issue Ralf linked to.
Here's what I change the GoSublime
Settings-User
to:
GoSublime.sublime-settings
{
"use_legacy_imports": true,
"installsuffix": "appengine",
"env": {
"GOPATH": "$HOME/google-cloud-sdk/platform/google_appengine/goroot"
}
}
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论