Comments (16)
Hm, turns out my test case was wrong, it works for me with Go 1.11beta2 and mdempksy's fork at https://github.com/mdempsky/gocode
from gocode.
The fork at https://github.com/mdempsky/gocode fixes this issue.
from gocode.
Okay, I found it, it's called indexed export format
and has been introduced recently: https://groups.google.com/forum/#!msg/golang-codereviews/6vqMfk1krNU/lzoJtkbuCQAJ
Some more info: https://groups.google.com/forum/#!topic/golang-dev/Lj_B-O6OMv8
from gocode.
Gocode is no longer maintained, you can try a fork, such as: https://github.com/mdempsky/gocode
from gocode.
I'm getting this as well after switching to Go 1.11beta1. Switching back to Go 1.10 seems like has no effect. Maybe it's a coincidence, I don't know. I'm on latest MacOS X.
Also, I was using GOOS=js GOARCH=wasm for the build when I start getting those crashes, if it's related.
Any suggestions on how to debug this issue?
from gocode.
Another detail, that may be relevant: my Go 1.11 installation is a binary installation (I didn;t compile it myself).
Package files seems to have totally different encoding that crashes gocode
. I can't find docs or commits that explain the diff, though.
Here is an output of pkg files for fmt
for Go 1.10 and Go 1.11.
head -c 300 /usr/local/go1.10/pkg/darwin_amd64/fmt.a | less | pbcopy
!<arch>
__.PKGDEF 0 0 0 644 1384 `
go object darwin amd64 go1.10 X:framepointer
build id "KHuqXkHLVgkW_Ou5euoy/tdMow2Eq6Ax6uwLF86Xb"
----
build id "KHuqXkHLVgkW_Ou5euoy/tdMow2Eq6Ax6uwLF86Xb"
$$B
version 5
����fmt��
�L�
|SGOROOT�src��print.go State����� Write��"�b�
head -c 300 /usr/local/go1.11beta1/pkg/darwin_amd64/fmt.a | less | pbcopy
!<arch>
__.PKGDEF 0 0 0 644 1568 `
go object darwin amd64 go1.11beta1 X:framepointer
build id "NzYrUFEPyrRrj_uyqpl5/n8zsFBLs-yT__ncV8geh"
----
$$B
i�È�∆��$GOROOT/src/fmt/print.go��Write�b�n�err�Width�wid�ok Precision�prec�Flag�c�Format�f�State�String�GoString�w�Wri
There is no version info and that's causing a crash.
from gocode.
Yeah I ran my own go 1.10+dev when I started seeing this.
from gocode.
So the proper solution would be to implement a parser for the indexed export format. I started to work on this, but it might take longer than by people who already worked with it. It actually requires a lot of copying and adapting from internal
packages of Go codebase.
from gocode.
Is it correct that until gcode understands the new format, it is broken for Go >= 1.11?
from gocode.
I've opened an issue over at mdempsky#43
from gocode.
I do not understand why this issue is closed... I am keep getting panic with go 1.11
from gocode.
It's not closed
from gocode.
oh, yes... sorry
from gocode.
Same issue here, even with go-langserver
. Not working with go 1.11.
from gocode.
I'm having the same issue after upgrading to go 1.11
from gocode.
Hi! Is there a workaround for this issue. I am seeing the same with go version go1.11 darwin/amd64
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
- Trouble compiling on save with go-plus and atom, not in terminal HOT 1
- Panics with GO version 1.11 HOT 5
- 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.