Giter Site home page Giter Site logo

Comments (6)

stamblerre avatar stamblerre commented on July 30, 2024

I'm not able to reproduce this when opening files, but if you are opening new Go files, perhaps you are encountering #3?

from gocode.

magodo avatar magodo commented on July 30, 2024

I'm not able to reproduce this when opening files, but if you are opening new Go files, perhaps you are encountering #3?

No, sometimes when the external package is big/complex, it seems will fail. I think it is caused by some different reason. I don't know how to get the error from vim/ycmd (even i added -debug option for gocode, the output from ycm seems have no help).

from gocode.

stamblerre avatar stamblerre commented on July 30, 2024

To get the debug output, you will have to start gocode manually.

$ gocode close
$ gocode -s -debug

Then you should be able to open up Vim and type normally, and the completion output will show up in terminal.

from gocode.

maxbaird avatar maxbaird commented on July 30, 2024

Where should the -source option be added for external package completion?

from gocode.

stamblerre avatar stamblerre commented on July 30, 2024

-source is necessary to type-check packages from source (rather than export data from a build), so it shouldn't be necessary for external packages to be completed. The -source flag should be provided on the client side, so you will have to configure it in your editor settings.

from gocode.

stamblerre avatar stamblerre commented on July 30, 2024

Closing this issue, as the current recommendation for autocompletion is to use gopls.

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.