Seems that you've missed to insert, in the lines to add to the file ".emacs", the line: (ac-config-default) Without this, on my emacs, I'm unable to use gocode. I hope that this will be useful.
Instead of displaying meta as-is when annotation alignment is turned off, the backend removes first two words from meta, effectively leaving only function signatures or types in annotation. Also reindent everything and remove tabs. Fixes #266.
When used in environments built with `goenv`, the `gocode` command needs to be prefixed with `goenv exec`. This allows the command to be customised via the standard Emacs method - but because it defaults to the original value most users shouldn't see any difference.
It sucks that gocode tests depend on Go's API, but I'm too lazy to make it right anyway.
Often when you do autocompletion, the text your cursor points at is a partial statement. But go's parser fails to recognize that if it ends with '.' and continues parsing assuming the statement spans multiple lines (doesn't insert a semicolon). This ugly hack fixes it. However, it's unclear how this hack will behave for cases when you're in the middle of an expression.
When using anonymous structs the ripper would find the wrong beginning for the enclosing function
Setting the `build.FindOnly` flag when calling `context.Import` drastically speeds up parsing, especially when accessing remove file systems (e.g. nfs). Tests are still running and everything seems fine so far, hopefully nothing relies on anything other than `p.PkgObj`, so we should be fine.
Fixes a corner case in which if the identifier is followed by a whitespace and the cursor is on the whitespace, the code would try to access a slice past its boundaries: ``` panic: runtime error: slice bounds out of range 1(runtime.panic): /usr/lib/go/src/pkg/runtime/panic.c:248 2(runtime.panicstring): /usr/lib/go/src/pkg/runtime/panic.c:482 3(runtime.panicslice): /usr/lib/go/src/pkg/runtime/panic.c:439 4(main.(*auto_complete_context).deduce_cursor_context): /home/tzn/src/go/src/github.com/nsf/gocode/cursorcontext.go:230 5(main.(*auto_complete_context).apropos): /home/tzn/src/go/src/github.com/nsf/gocode/autocompletecontext.go:253 6(main.server_auto_complete): /home/tzn/src/go/src/github.com/nsf/gocode/server.go:145 7(main.(*RPC).RPC_auto_complete): /home/tzn/src/go/src/github.com/nsf/gocode/rpc.go:26 8(runtime.call64): /usr/lib/go/src/pkg/runtime/asm_amd64.s:340 9(reflect.Value.call): /usr/lib/go/src/pkg/reflect/value.go:474 10(reflect.Value.Call): /usr/lib/go/src/pkg/reflect/value.go:345 11(net/rpc.(*service).call): /usr/lib/go/src/pkg/net/rpc/server.go:381 12(runtime.goexit): /usr/lib/go/src/pkg/runtime/proc.c:1394 ```