Giter VIP home page Giter VIP logo

Comments (16)

fd0 avatar fd0 commented on August 24, 2024 7

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.

cnbuff410 avatar cnbuff410 commented on August 24, 2024 3

The fork at https://github.com/mdempsky/gocode fixes this issue.

from gocode.

divan avatar divan commented on August 24, 2024 2

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.

nsf avatar nsf commented on August 24, 2024 1

Gocode is no longer maintained, you can try a fork, such as: https://github.com/mdempsky/gocode

from gocode.

divan avatar divan commented on August 24, 2024

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.

divan avatar divan commented on August 24, 2024

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.

AudriusButkevicius avatar AudriusButkevicius commented on August 24, 2024

Yeah I ran my own go 1.10+dev when I started seeing this.

from gocode.

divan avatar divan commented on August 24, 2024

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.

fd0 avatar fd0 commented on August 24, 2024

Is it correct that until gcode understands the new format, it is broken for Go >= 1.11?

from gocode.

fd0 avatar fd0 commented on August 24, 2024

I've opened an issue over at mdempsky#43

from gocode.

lukatendai avatar lukatendai commented on August 24, 2024

I do not understand why this issue is closed... I am keep getting panic with go 1.11

from gocode.

AudriusButkevicius avatar AudriusButkevicius commented on August 24, 2024

It's not closed

from gocode.

lukatendai avatar lukatendai commented on August 24, 2024

oh, yes... sorry

from gocode.

seagle0128 avatar seagle0128 commented on August 24, 2024

Same issue here, even with go-langserver. Not working with go 1.11.

from gocode.

Xammie avatar Xammie commented on August 24, 2024

I'm having the same issue after upgrading to go 1.11

from gocode.

rarchana2001asu avatar rarchana2001asu commented on August 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.