Giter Site home page Giter Site logo

Comments (2)

stamblerre avatar stamblerre commented on July 30, 2024

Based on your debug output, it seems like gocode is not finding your file. Notice that there is a "#" sign in the debug output, but there is no file content around it. The # sign is supposed to mark where the completion is in the file. That seems to be the problem to me.

Also, when I run gocode from the command line, I usually pass in arguments like this: gocode -in /path/to/file.go autocomplete /path/to/file.go <offset>. Maybe try that?

from gocode.

HankelBao avatar HankelBao commented on July 30, 2024

Yes. What you are saying is correct.
If I want gocode to autocomplete a file, I need the '-in' argument.
If I want gocode to autocomplete from buffer, I need to send the content of the file through Stdin.

Obviously, in this situation, I should add the '-in' argument.
Thank you very much for your help.

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.