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

shows PANIC as the only option #51

Closed
1 task done
falmar opened this issue Oct 11, 2016 · 4 comments
Closed
1 task done

shows PANIC as the only option #51

falmar opened this issue Oct 11, 2016 · 4 comments

Comments

@falmar
Copy link

falmar commented Oct 11, 2016

Prerequisites

  • Have you run gocode in server debug mode? In your terminal:
    • Run gocode close
    • Run gocode -s -debug
    • Type in atom
    • Please include some debug output from gocode

Description

2016/10/11 17:00:34 Go project path: github.com/falmar/onedotseven
2016/10/11 17:00:34 Got autocompletion request for '/home/-/gocode/src/github.com/falmar/onedotseven/server.go'
2016/10/11 17:00:34 Cursor at: 63
2016/10/11 17:00:34 -------------------------------------------------------
package main

import "fmt"

func main() {
    fmt.Println("yo")
    f#
}
2016/10/11 17:00:34 -------------------------------------------------------
2016/10/11 17:00:34 Found "fmt" at "/home/-/go/pkg/linux_amd64/fmt.a"
panic: unknown export data version: v1
1(runtime.call32): /home/-/go/src/runtime/asm_amd64.s:472
2(runtime.gopanic): /home/-/go/src/runtime/panic.go:443
3(main.(*gc_bin_parser).parse_export): /home/-/gocode/src/github.com/nsf/gocode/package_bin.go:101
4(main.(*package_file_cache).process_package_data): /home/-/gocode/src/github.com/nsf/gocode/package.go:141
5(main.(*package_file_cache).update_cache): /home/-/gocode/src/github.com/nsf/gocode/package.go:90
6(main.update_packages.func1): /home/-/gocode/src/github.com/nsf/gocode/autocompletecontext.go:374
7(runtime.goexit): /home/-/go/src/runtime/asm_amd64.s:1998

panic: One of the package cache updaters panicked
1(runtime.call32): /home/-/go/src/runtime/asm_amd64.s:472
2(runtime.gopanic): /home/-/go/src/runtime/panic.go:443
3(main.update_packages): /home/-/gocode/src/github.com/nsf/gocode/autocompletecontext.go:382
4(main.(*auto_complete_context).update_caches): /home/-/gocode/src/github.com/nsf/gocode/autocompletecontext.go:166
5(main.(*auto_complete_context).apropos): /home/-/gocode/src/github.com/nsf/gocode/autocompletecontext.go:303
6(main.server_auto_complete): /home/-/gocode/src/github.com/nsf/gocode/server.go:187
7(main.(*RPC).RPC_auto_complete): /home/-/gocode/src/github.com/nsf/gocode/rpc.go:26
8(runtime.call64): /home/-/go/src/runtime/asm_amd64.s:473
9(reflect.Value.call): /home/-/go/src/reflect/value.go:435
10(reflect.Value.Call): /home/-/go/src/reflect/value.go:303
11(net/rpc.(*service).call): /home/-/go/src/net/rpc/server.go:383
12(runtime.goexit): /home/-/go/src/runtime/asm_amd64.s:1998

Output From go env

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/-/gocode"
GORACE=""
GOROOT="/home/-/go"
GOTOOLDIR="/home/-/go/pkg/tool/linux_amd64"

CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build384200439=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"

Expected Behavior

autocomplete on the text editor

Actual Behavior

all it shows is "PANIC" as only option to autocomplete


@joefitzgerald
Copy link
Owner

Run the golang:update-tools command. You can do this by opening the command palette or typing ctrl-alt-shift-g u.

@falmar
Copy link
Author

falmar commented Oct 11, 2016

Problem solved, Thanks so much. I happened to update go version to and did not manually rebuild the packages.

@joefitzgerald
Copy link
Owner

Happy to help!

@jyutzler
Copy link

@joefitzgerald Please add nsf/gocode#164 to the list of things to check for.

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

3 participants