Giter VIP home page Giter VIP logo

Comments (4)

stevedonovan avatar stevedonovan commented on August 23, 2024

It helps to pay attention to -h ;) So now I have

gocode -in="test.go" autocomplete test.go 14

and now we blow up in package.go, at parseExportedName (331)

panic: expected "@", got String (""os'"")

steve d.

from gocode.

nsf avatar nsf commented on August 23, 2024

Hi. As far as I can see you use the latest gocode version, but you haven't updated to the latest Go weekly. Latest Go weekly has a new package files format, it was changed due to preparation for adding inlining optimizations.

So, just update your Go to the latest weekly or checkout different gocode version (see gocode git repo tags, it has a lot of compatibility tags).

from gocode.

nsf avatar nsf commented on August 23, 2024

That was about the second panic. The first panic indeed may happen due to incorrect cursor position. I wasn't paying a lot of attention to checking the correctness of incoming data.

from gocode.

stevedonovan avatar stevedonovan commented on August 23, 2024

Thanks, man - that worked great - I was obviously not paying attention when trying to update to latest Go (it did feel like a file format change problem). Thankfully, Go 1 will freeze things and we won't have to play catch-up all the time.

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.