-
Notifications
You must be signed in to change notification settings - Fork 660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panics with GO version 1.11 #524
Comments
I'm seeing the same issue, with the following output when running $ gocode -s
panic: unknown export format version -1 ("i\x00\x800\xb8Q\x15$GOROOT/src/os/env.go\x01s\amapping\x00\aesc:0x1\x03key\x05value\x17$GOROOT/src/os/error.go\x02Op\x04Path\x03Err\x05Error\x01e\tPathError\aTimeout\aesc:0x9\aSyscall\fSyscallError\asyscall\x03err\x16$GOROOT/src/os/exec.go\x03Pid\x06handle\x06isdone\x05sigMu\aRWMutex\x04sync\asetDone\x01p\aProcess\x04done\aRelease\x04Kill\x04Wait\fProcessState\x06Signal\x03sig\x1c$GOROOT/src/os/exec_posix.go\x04kill\x1b$GOROOT/src/os/exec_unix.go\x04wait\x02ps\x06signal\arelease\x1c$GOROOT/src/os/wait_unimp.go\x12blockUntilWaitable\x03Dir\x03Env\x05Files\x04File\x03Sys\vSysProcAttr\x06String\x03pid\x04name\x04argv\x04attr\bProcAttr\x06status")
1(runtime.call32): /usr/local/Cellar/go/1.11/libexec/src/runtime/asm_amd64.s:522
2(runtime.gopanic): /usr/local/Cellar/go/1.11/libexec/src/runtime/panic.go:513
3(main.(*gc_bin_parser).parse_export): /Users/peter/Go/src/github.com/nsf/gocode/package_bin.go:126
4(main.(*package_file_cache).process_package_data): /Users/peter/Go/src/github.com/nsf/gocode/package.go:132
5(main.(*package_file_cache).update_cache): /Users/peter/Go/src/github.com/nsf/gocode/package.go:92
6(main.update_packages.func1): /Users/peter/Go/src/github.com/nsf/gocode/autocompletecontext.go:455
7(runtime.goexit): /usr/local/Cellar/go/1.11/libexec/src/runtime/asm_amd64.s:1333
panic: One of the package cache updaters panicked
1(runtime.call32): /usr/local/Cellar/go/1.11/libexec/src/runtime/asm_amd64.s:522
2(runtime.gopanic): /usr/local/Cellar/go/1.11/libexec/src/runtime/panic.go:513
3(main.update_packages): /Users/peter/Go/src/github.com/nsf/gocode/autocompletecontext.go:463
4(main.(*auto_complete_context).update_caches): /Users/peter/Go/src/github.com/nsf/gocode/autocompletecontext.go:178
5(main.(*auto_complete_context).apropos): /Users/peter/Go/src/github.com/nsf/gocode/autocompletecontext.go:360
6(main.server_auto_complete): /Users/peter/Go/src/github.com/nsf/gocode/server.go:202
7(main.(*RPC).RPC_auto_complete): /Users/peter/Go/src/github.com/nsf/gocode/rpc.go:26
8(runtime.call64): /usr/local/Cellar/go/1.11/libexec/src/runtime/asm_amd64.s:523
9(reflect.Value.call): /usr/local/Cellar/go/1.11/libexec/src/reflect/value.go:447
10(reflect.Value.Call): /usr/local/Cellar/go/1.11/libexec/src/reflect/value.go:308
11(net/rpc.(*service).call): /usr/local/Cellar/go/1.11/libexec/src/net/rpc/server.go:384
12(runtime.goexit): /usr/local/Cellar/go/1.11/libexec/src/runtime/asm_amd64.s:1333
panic: unknown export format version -1 ("i\x00\xb2\x1e\xcbG#$GOROOT/src/encoding/json/decode.go\x04data\x01v\x00\rUnmarshalJSON\x05Value\x04Type\areflect\x06Offset\x06Struct\x05Field\x05Error\x01e\x12UnmarshalTypeError\aesc:0x9\x03Key\vStructField\x13UnmarshalFieldError\x15InvalidUnmarshalError\x06String\x01n\x06Number\aFloat64\x05Int64\besc:0x12#$GOROOT/src/encoding/json/encode.go\x06prefix\x06indent\aesc:0x1\x03dst\x06Buffer\x05bytes\x03src\vMarshalJSON\x14UnsupportedTypeError\x03Str\x15UnsupportedValueError\x19json: unsupported value: \x01S\x10InvalidUTF8Error\x03Err\x0eMarshalerError#$GOROOT/src/encoding/json/indent.go$$GOROOT/src/encoding/json/scanner.go\x03msg\vSyntaxError\besc:0x22#$GOROOT/src/encoding/json/stream.go\x01r\x06Reader\x02io\x03buf\x01d\vdecodeState\x05scanp\ascanned\x04scan\ascanner\x03err")
1(runtime.call32): /usr/local/Cellar/go/1.11/libexec/src/runtime/asm_amd64.s:522
2(runtime.gopanic): /usr/local/Cellar/go/1.11/libexec/src/runtime/panic.go:513
3(main.(*gc_bin_parser).parse_export): /Users/peter/Go/src/github.com/nsf/gocode/package_bin.go:126
4(main.(*package_file_cache).process_package_data): /Users/peter/Go/src/github.com/nsf/gocode/package.go:132
5(main.(*package_file_cache).update_cache): /Users/peter/Go/src/github.com/nsf/gocode/package.go:92
6(main.update_packages.func1): /Users/peter/Go/src/github.com/nsf/gocode/autocompletecontext.go:455
7(runtime.goexit): /usr/local/Cellar/go/1.11/libexec/src/runtime/asm_amd64.s:1333
panic: unknown export format version -1 ("i\x00\xa2\x98\x01\xbe\xf8\x01\x1e$GOROOT/src/net/http/client.go\x00\tTransport\fRoundTripper\rCheckRedirect\x03req\aRequest\x03via\x03Jar\tCookieJar\aTimeout\bDuration\x04time\x04send\x01c\x06Client\bdeadline\x04Time\x04resp\bResponse")
1(runtime.call32): /usr/local/Cellar/go/1.11/libexec/src/runtime/asm_amd64.s:522
2(runtime.gopanic): /usr/local/Cellar/go/1.11/libexec/src/runtime/panic.go:513
3(main.(*gc_bin_parser).parse_export): /Users/peter/Go/src/github.com/nsf/gocode/package_bin.go:126
4(main.(*package_file_cache).process_package_data): /Users/peter/Go/src/github.com/nsf/gocode/package.go:132
5(main.(*package_file_cache).update_cache): /Users/peter/Go/src/github.com/nsf/gocode/package.go:92
6(main.update_packages.func1): /Users/peter/Go/src/github.com/nsf/gocode/autocompletecontext.go:455
7(runtime.goexit): /usr/local/Cellar/go/1.11/libexec/src/runtime/asm_amd64.s:1333 |
This issue is probably a duplicate of #521 |
Thanks @peterhellberg for confirming, closing this due to this being duplicate of #521 Also did you check the author recommended fork (https://github.com/mdempsky/gocode) ? It works for me 💯 |
@RO-29 Yes, I've switched over to the mdempsky fork, and the only issue I'm seeing now is auto completion stopped working for some third party packages used in some Current workaround is to call |
Strange, I use atom as am still a vim noob 🙃 and it works fine with atom |
gocode close && go get -u github.com/nsf/gocode
does not solves anything, it is still panickingThe text was updated successfully, but these errors were encountered: