GoSublime code completion for App Engine and Go

16 Feb

Go is a fascinating “new” language.

I’m doing most of my Go development in Sublime Text 2 using the superb GoSublime package for code completion and many more IDE like features. One thing that bothered me for a long time, though, was that I could not get code completion working for Google’s App Engine packages.

I finally solved the problem:

1. Create a symbolic link in /go_appengine/goroot/pkg named darwin_amd64 and point it to darwin_amd64_appengine/ like so: ln -s darwin_amd64_appengine/ darwin_amd64

2. Make sure that in Sublime Text 2 > Preferences > Package Settings > GoSublime > Settings – User the GOPATH environment variable includes the path to App Engines goroot folder. Mine is: “env”: {“GOPATH”: “$HOME/src/gocode/:$HOME/src/go_appengine/goroot/”}

I hope this helps and appreciate any feedback.

Tags: , ,
2 replies
  1. mihai says:

    I’m getting a an error when I try to edit the sublime text settings . See the screenshot https://www.dropbox.com/s/l5ta1qzp8lo8e5t/Screenshot%202014-03-09%2001.46.16.png


Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

© Copyright 2017 by Ralf Rottmann.