This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Getting weird "PANIC" in my go-langserver #317
Comments
Same issue on mac. |
Same issue here, with Go 1.11 on mac. panic: unknown export format version -1 ("i\x00\xe9\x03\xc6\x06\x18$GOROOT/src/fmt/print.go\x00\x05Write\x01b\x01n\x03err\x05Width\x03wid\x02ok\tPrecision\x04prec\x04Flag\x01c\x06Format\x01f\x05State\x06String\bGoString\x01w\x06Writer\x02io\x06format\x01a\aesc:0x1\aesc:0x9\x17$GOROOT/src/fmt/scan.go\bReadRune\x01r\x04size")
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(github.com/sourcegraph/go-langserver/langserver/internal/gocode.(*gc_bin_parser).parse_export): /Users/vincent/go/src/github.com/sourcegraph/go-langserver/langserver/internal/gocode/package_bin.go:126
4(github.com/sourcegraph/go-langserver/langserver/internal/gocode.(*package_file_cache).process_package_data): /Users/vincent/go/src/github.com/sourcegraph/go-langserver/langserver/internal/gocode/package.go:132
5(github.com/sourcegraph/go-langserver/langserver/internal/gocode.(*package_file_cache).update_cache): /Users/vincent/go/src/github.com/sourcegraph/go-langserver/langserver/internal/gocode/package.go:92
6(github.com/sourcegraph/go-langserver/langserver/internal/gocode.update_packages.func1): /Users/vincent/go/src/github.com/sourcegraph/go-langserver/langserver/internal/gocode/autocompletecontext.go:439
7(runtime.goexit): /usr/local/Cellar/go/1.11/libexec/src/runtime/asm_amd64.s:1333 |
FWIW I did a rm -rf on the cache in |
I think this will be fixed once #305 is merged |
@anjmao I have just tried your branch locally. And I'm using Emacs with LSP enabled. The panic error is gone. But I get the errors as below when auto-complete:
Not sure if this is related... |
@bittopaz As I see you are getting it from
|
@anjmao Ah I see, thanks. |
it works for me. will it be merged in the next release? :D |
I've tagged a new release. Thanks for the report. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am using neovim with LanguageClient-neovim with the gocodecompletion enabled:
However, when it tries to show me suggestions I get things like:
https://i.imgur.com/D9MNz6y.png
Funnily enough, it used to work a couple of weeks ago. Any ideas?
For reference, the go-langserver I am using is v2-dev.
The text was updated successfully, but these errors were encountered: