Comments (5)
I'm seeing the same issue, with the following output when running gocode -s
$ 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
from gocode.
This issue is probably a duplicate of #521
from gocode.
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 💯
from gocode.
@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 main
packages. 🤔
Current workaround is to call go install
in each package that I want the code completion to work for. (This is probably more of a vim-go issue rather than a gocode issue)
from gocode.
Strange, I use atom as am still a vim noob 🙃 and it works fine with atom
from gocode.
Related Issues (20)
- company-go trigger candidates not related! HOT 1
- no autocompletion for function in reference to a type struct
- panic: unknown export format version -1 HOT 1
- dial unix /tmp/gocode-daemon.wade.lee: connect: permission denied
- panic: rpc: can't find service RPC.RPC HOT 2
- Panics with unknown export format version -1 HOT 16
- Trouble compiling on save with go-plus and atom, not in terminal HOT 1
- company-go can not complete golang third party package ? HOT 2
- GOCODE PANIC: Please check your code by "go build" HOT 3
- Gabage completion items when cursor is at the end of a keyword.
- In order for company-go to work with foreign packages, it requires a `-source` flag HOT 1
- How it works under go mod ? HOT 1
- Move gocode to github organization? HOT 4
- gocode work great again!!!
- Autocomplete isn't working with go1.14.3, getting version mismatch error. Does it support go1.14.3? HOT 2
- GOCODE DOES NOT WORK WITH OR WITHOUT GOMODULES ENABLED HOT 6
- working directory is not part of a module
- Questions about the network
- What is the font used in the example? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gocode.