Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Panics with Go 1.11beta1/2: unknown export format version -1 ("i\x00\xf9") #43

Closed
fd0 opened this issue Jul 21, 2018 · 3 comments
Closed

Comments

@fd0
Copy link

fd0 commented Jul 21, 2018

Apparently, in Go 1.11 the binary format for the archives was changed (see also nsf#521 (comment)), any chance you may have time (or know someone) who could adapt the parser for the format? That'd be awesome! Not having any code completion in 1.11 made me realize how important this is...

The error and stacktrace is as follows:

$ gocode -s -debug
[...]
2018/07/21 13:42:36 Found "github.com/restic/restic/internal/test" at "/home/fd0/shared/work/go/pkg/linux_amd64/github.com/restic/restic/internal/test.a"
panic: unknown export format version -1 ("i\x00\xf9")
1(runtime.call32): /home/fd0/sdk/go1.11beta2/src/runtime/asm_amd64.s:522
2(runtime.gopanic): /home/fd0/sdk/go1.11beta2/src/runtime/panic.go:513
3(main.(*gc_bin_parser).parse_export): /home/fd0/shared/work/go/src/mod/github.com/nsf/[email protected]/package_bin.go:126
4(main.(*package_file_cache).process_package_data): /home/fd0/shared/work/go/src/mod/github.com/nsf/[email protected]/package.go:132
5(main.(*package_file_cache).update_cache): /home/fd0/shared/work/go/src/mod/github.com/nsf/[email protected]/package.go:92
6(main.update_packages.func1): /home/fd0/shared/work/go/src/mod/github.com/nsf/[email protected]/autocompletecontext.go:455
7(runtime.goexit): /home/fd0/sdk/go1.11beta2/src/runtime/asm_amd64.s:1333

Is there anything else I can do to get this resolved?

@fd0
Copy link
Author

fd0 commented Jul 21, 2018

Oh, I just realized you're the one who submitted the CL that changes the export format, sorry for that ;)

Any chance you may have time to work on this before the release of Go 1.11? This will be a pain for most users.

@DisposaBoy
Copy link

Are you sure you're using the correct repo? the stacktrace shows github.com/nsf/gocode

@fd0
Copy link
Author

fd0 commented Jul 21, 2018

Oh wow, it seems my test case was wrong, apparently I've used nsf's original version. Turns out, it works with this one. I have no idea how that happened, sorry for the noise. Closing.

@fd0 fd0 closed this as completed Jul 21, 2018
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

2 participants