Skip to content
This repository has been archived by the owner on May 23, 2018. It is now read-only.

PANIC is the only suggestion #52

Closed
marten-seemann opened this issue Oct 30, 2016 · 7 comments
Closed

PANIC is the only suggestion #52

marten-seemann opened this issue Oct 30, 2016 · 7 comments

Comments

@marten-seemann
Copy link

Description

I'm not getting any suggestions from go-autocomplete, except for PANIC.

The error occurs with the current Atom version (1.11.2) as well as with Atom Beta, all packages are updated. I reinstalled gocode a couple of times (via go get -u github.com/nsf/gocode).

I also ran the "Golang: Update Tools" via the Atom command palette.

Output of gocode -s -debug

panic: unknown export format version 3 ("version 3")
1(runtime.call32): /usr/local/Cellar/go/1.7.3/libexec/src/runtime/asm_amd64.s:479
2(runtime.gopanic): /usr/local/Cellar/go/1.7.3/libexec/src/runtime/panic.go:458
3(main.(*gc_bin_parser).parse_export): /Users/marten/src/go/src/github.com/nsf/gocode/package_bin.go:124
4(main.(*package_file_cache).process_package_data): /Users/marten/src/go/src/github.com/nsf/gocode/package.go:141
5(main.(*package_file_cache).update_cache): /Users/marten/src/go/src/github.com/nsf/gocode/package.go:90
6(main.update_packages.func1): /Users/marten/src/go/src/github.com/nsf/gocode/autocompletecontext.go:381
7(runtime.goexit): /usr/local/Cellar/go/1.7.3/libexec/src/runtime/asm_amd64.s:2086

panic: One of the package cache updaters panicked
1(runtime.call32): /usr/local/Cellar/go/1.7.3/libexec/src/runtime/asm_amd64.s:479
2(runtime.gopanic): /usr/local/Cellar/go/1.7.3/libexec/src/runtime/panic.go:458
3(main.update_packages): /Users/marten/src/go/src/github.com/nsf/gocode/autocompletecontext.go:389
4(main.(*auto_complete_context).update_caches): /Users/marten/src/go/src/github.com/nsf/gocode/autocompletecontext.go:165
5(main.(*auto_complete_context).apropos): /Users/marten/src/go/src/github.com/nsf/gocode/autocompletecontext.go:303
6(main.server_auto_complete): /Users/marten/src/go/src/github.com/nsf/gocode/server.go:196
7(main.(*RPC).RPC_auto_complete): /Users/marten/src/go/src/github.com/nsf/gocode/rpc.go:26
8(runtime.call64): /usr/local/Cellar/go/1.7.3/libexec/src/runtime/asm_amd64.s:480
9(reflect.Value.call): /usr/local/Cellar/go/1.7.3/libexec/src/reflect/value.go:434
10(reflect.Value.Call): /usr/local/Cellar/go/1.7.3/libexec/src/reflect/value.go:302
11(net/rpc.(*service).call): /usr/local/Cellar/go/1.7.3/libexec/src/net/rpc/server.go:383
12(runtime.goexit): /usr/local/Cellar/go/1.7.3/libexec/src/runtime/asm_amd64.s:2086

panic: unknown export format version 3 ("version 3")
1(runtime.call32): /usr/local/Cellar/go/1.7.3/libexec/src/runtime/asm_amd64.s:479
2(runtime.gopanic): /usr/local/Cellar/go/1.7.3/libexec/src/runtime/panic.go:458
3(main.(*gc_bin_parser).parse_export): /Users/marten/src/go/src/github.com/nsf/gocode/package_bin.go:124
4(main.(*package_file_cache).process_package_data): /Users/marten/src/go/src/github.com/nsf/gocode/package.go:141
5(main.(*package_file_cache).update_cache): /Users/marten/src/go/src/github.com/nsf/gocode/package.go:90
6(main.update_packages.func1): /Users/marten/src/go/src/github.com/nsf/gocode/autocompletecontext.go:381
7(runtime.goexit): /usr/local/Cellar/go/1.7.3/libexec/src/runtime/asm_amd64.s:2086

Output From go env

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/marten/src/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.7.3/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.7.3/libexec/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/b4/5fkr0dhj3gv5p9fg1dhqgrd40000gn/T/go-build316205955=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
@railsmechanic
Copy link

Same problem here...

@Quentin-M
Copy link

+1

@lloiser
Copy link

lloiser commented Nov 11, 2016

maybe this helps: nsf/gocode#401 (same error message)

@ianmburns
Copy link

Having the same issue, that solved it for me.

Specifically nsf/gocode#401 (comment)

Ran that, restarted Atom and all is well. Thanks!!

@Quentin-M
Copy link

Me too, no need to restart Atom.

@montanaflynn
Copy link

For fish shell users: gocode close; and go get -u github.com/nsf/gocode

joefitzgerald added a commit to joefitzgerald/go-plus that referenced this issue Jan 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants