GoSublime:App Engine 包没有代码补全功能。

huangapple go评论98阅读模式
英文:

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链接的问题,我将GoSublimeSettings-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"
  }
}

huangapple
  • 本文由 发表于 2014年2月23日 23:28:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/21970220.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定