Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GoSublime: No code completion for App Engine packages

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?

like image 729
Ralf Avatar asked Feb 24 '26 02:02

Ralf


2 Answers

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.

like image 75
Ralf Avatar answered Feb 26 '26 16:02

Ralf


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"
  }
}
like image 34
Kyle Finley Avatar answered Feb 26 '26 15:02

Kyle Finley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!