nsf/gocode — Issue #61: Can't make gocode work with the last weekly
Author: emepyc
Created: 2011-11-04 13:56:43+00:00
State: open

$ git pull origin master
From git://github.com/nsf/gocode
* branch master -> FETCH_HEAD
Already up-to-date.

$ ~/go/src$ hg identify
780c85032b17 weekly/weekly.2011-11-02

$ ls -l ~/.emacs.d/go-autocomplete.el
lrwxrwxrwx 1 mp mp 51 2011-11-04 13:40 go-autocomplete.el -> /home/mp/gocode/src/gocode/emacs/go-autocomplete.el

$ ls ~/go/bin/gocode
gocode

When I try to use gocode in emacs I get [PANIC PANIC PANIC] message only.
Running with "gocode -s" I get...

panic: expected "@", got String ("\"\"")
1(runtime.panic): /home/mp/go/src/pkg/runtime/proc.c:1356
2(main.(*gcParser).error): /home/mp/gocode/src/gocode/package.go:256
3(main.(*gcParser).errorf): /home/mp/gocode/src/gocode/package.go:260
4(main.(*gcParser).expect): /home/mp/gocode/src/gocode/package.go:267
5(main.(*gcParser).parseExportedName): /home/mp/gocode/src/gocode/package.go:331
6(main.(*gcParser).parseConstDecl): /home/mp/gocode/src/gocode/package.go:648
7(main.(*gcParser).parseDecl): /home/mp/gocode/src/gocode/package.go:803
8(main.(*gcParser).parseExport): /home/mp/gocode/src/gocode/package.go:832
9(main.(*PackageFileCache).processPackageData): /home/mp/gocode/src/gocode/package.go:132
10(main.(*PackageFileCache).updateCache): /home/mp/gocode/src/gocode/package.go:90
11(main._func_008): /home/mp/gocode/src/gocode/autocompletecontext.go:283
12(runtime.goexit): /home/mp/go/src/pkg/runtime/proc.c:261

panic: One of the package cache updaters panicked
1(runtime.panic): /home/mp/go/src/pkg/runtime/proc.c:1356
2(main.updatePackages): /home/mp/gocode/src/gocode/autocompletecontext.go:291
3(main.(*AutoCompleteContext).updateCaches): /home/mp/gocode/src/gocode/autocompletecontext.go:159
4(main.(*AutoCompleteContext).Apropos): /home/mp/gocode/src/gocode/autocompletecontext.go:209
5(main.Server_AutoComplete): /home/mp/gocode/src/gocode/server.go:81
6(main.(*RPCRemote).RPCServer_AutoComplete): /home/mp/gocode/src/gocode/rpc.go:26
7(reflect.internalValue.call): /home/mp/go/src/pkg/reflect/value.go:618
8(reflect.Value.Call): /home/mp/go/src/pkg/reflect/value.go:468
9(rpc.(*service).call): /home/mp/go/src/pkg/rpc/server.go:340
10(runtime.goexit): /home/mp/go/src/pkg/runtime/proc.c:261

Any idea?
Thanks in advance!