Giter Site home page Giter Site logo

Comments (10)

ramya-rao-a avatar ramya-rao-a commented on July 30, 2024 2

From @anjmao on November 30, 2018 22:5

@gabstv I suggest to look at https://github.com/saibing/bingo which already works much better that gocode.

from gocode.

ramya-rao-a avatar ramya-rao-a commented on July 30, 2024

@gabstv Does this project use Go modules?

from gocode.

ramya-rao-a avatar ramya-rao-a commented on July 30, 2024

Yes, we are in the process of adding support to bingo as you already know via #2158

Meanwhile, I am moving this issue to the repo for gocode-gomod so that @stamblerre can help.

from gocode.

stamblerre avatar stamblerre commented on July 30, 2024

@gabstv, is this just the result of you triggering completions twice in a row or did anything change between the 2 instances?

from gocode.

gabstv avatar gabstv commented on July 30, 2024

@stamblerre It's the result of triggering completions twice (or more until the it gets right) without changing code

from gocode.

stamblerre avatar stamblerre commented on July 30, 2024

Is your project particularly large? This might be related to #20.

from gocode.

gabstv avatar gabstv commented on July 30, 2024

The issue seems to be related with go mod. This project I'm in is relatively small.
Edit: gocode works as it should with non "go mod" projects on my end.

from gocode.

stamblerre avatar stamblerre commented on July 30, 2024

@gabstv: sorry I didn't reply earlier. Are you still experiencing this issue? I've not been able to reproduce this, and I haven't heard of anyone experiencing a similar issue, so I'm not sure how to approach this. Does go list -compiled -e -json path/to/project consistently produce correct output for you / can you post the output here?

from gocode.

zgramana avatar zgramana commented on July 30, 2024

I was having the same issue. It almost appeared as though a timeout fires before the contextual list of symbols can be built and I would instead get a generic list of tokens from across my workspace. When I would re-run a second or more time, the contextually correct list of symbols returns before the timeout (though still after an noticeable delay).

This behavior holds regardless of whether I'm trying to get autocomplete on my own code or from external packages. There were also a great many instances of guru that get spawned whenever I saved a file.

Once I opted out of every option in go.languageServerExperimentalFeatures except for format and autoComplete the number of guru instances spawned dropped very precipitously and this issue went away.

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.