go-autocomplete

598 views
Skip to first unread message

Tong Sun

unread,
Oct 14, 2013, 7:22:19 PM10/14/13
to golan...@googlegroups.com
Hi, 

Any GO IDE supports auto complete of builtin and installed functions under Windows?

Meanwhile, I'm trying to setup go-autocomplete under my Ubuntu. But I'm neither sophisticated with emacs, nor have I used emacs-autocomplete before. Here is my setup (based on searching the history of golang-nuts):

export GOPATH=~/.../Go
export PATH=$PATH:$GOPATH/bin

gocode set propose-builtins true

$ gocode set
propose-builtins true
lib-path ""

$ tail -1 ~/.emacs
(add-to-list 'load-path "~/.emacs.d/")

cd ~/.emacs.d/

$ ls -1 go*
go-autocomplete-enable.el
go-autocomplete.el

$ cat go-autocomplete-enable.el
(require 'go-autocomplete)
(require 'auto-complete-config)

- I can see that autocomplete minor mode is enabled in my go buffer, but I didn't see anything about go-autocomplete.
- When I write "os.", nothing happens. 

Anyone can help? 
Thanks

daniel....@gmail.com

unread,
Oct 14, 2013, 7:32:26 PM10/14/13
to golan...@googlegroups.com
Sublime text has quite good autocompletion via GoSublime (windows/linux/osx)

Matt Clark

unread,
Oct 14, 2013, 7:59:14 PM10/14/13
to golan...@googlegroups.com, daniel....@gmail.com
liteide does as well: https://code.google.com/p/liteide/ it's what I use when I'm not using emacs^^

RickyS

unread,
Oct 15, 2013, 7:12:17 AM10/15/13
to golan...@googlegroups.com, daniel....@gmail.com
I can second that.  Sublime text, while neither open-source nor free, works very well for Go.

If you want to use Emacs consider ergoemacs.  Emacs often causes hand pain.  If it didn't, I'd still be using it.
I've seen a story that RMS himself had to step away from the computer for a year due to hand problems. I think I remember that it was
"Emacs pinky".

OpenNota

unread,
Oct 15, 2013, 8:45:27 AM10/15/13
to golan...@googlegroups.com
gocode + gvim ?

Robert Melton

unread,
Oct 15, 2013, 9:52:21 AM10/15/13
to OpenNota, golang-nuts
On Tue, Oct 15, 2013 at 8:45 AM, OpenNota <open...@gmail.com> wrote:
> gocode + gvim ?

g(Vim) is a good setup on windows. Everything from the "Vim Configs"
thread (https://groups.google.com/forum/#!searchin/golang-nuts/Vim$20config/golang-nuts/9TUI6Xcq0yE/8f1o06MBL7gJ)
works on windows which means it is fairly trivial to setup godef,
golint, gotags, gocode + your favorite plugins.

--
Robert Melton | Contact Information @ http://robertmelton.com
“Go(lang) doesn't implicitly anything.”

JussiJ

unread,
Oct 15, 2013, 10:55:27 PM10/15/13
to golan...@googlegroups.com
On Tuesday, October 15, 2013 10:22:19 AM UTC+11, Tong Sun wrote:
 
Any GO IDE supports auto complete of builtin and installed functions under Windows?
 
The Zeus IDE defaults to a ctags version of Go autocomplete, but it also works with gocode, the autocompletion daemon for Go.
 
https://github.com/nsf/gocode
 
There's a link to a YouTube video showing both modes of autocomple on this page: http://www.zeusedit.com/go.html
 
NOTE: Zeus is shareware and I'm the author of Zeus.
 

Tallal Garghouti

unread,
Oct 16, 2013, 9:09:52 AM10/16/13
to golan...@googlegroups.com
On Tuesday, October 15, 2013 10:22:19 AM UTC+11, Tong Sun wrote:
 
Any GO IDE supports auto complete of builtin and installed functions under Windows?
 
 
 
Does anyone know what the status of the IntelliJ plugin is?
I tried it a while back and it seemed a bit rough around the edges.
 

Péter Szilágyi

unread,
Oct 16, 2013, 10:05:41 AM10/16/13
to Tallal Garghouti, golang-nuts
Hi,

  Not to bash the IntelliJ plugin too hard (it's been half a year since I worked in it), but it turned out unusable on anything bigger than playground code. After a few hundred to thousand lines of code all IDE operations (e.g. code completion, syntax highlight, etc) took on the order of 5-10 seconds. It may have more advanced features than the rest, but with such a gigantic latency it's not worth it.

  Since then I've moved over to Sublime Text + GoSublime and am never looking back. In one word, it's amazing (ok, actually two words :P).

Cheers,
  Peter

PS. The above is my sole, personal and completely subjective opinion :P


--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages