Comments (10)
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.
@gabstv Does this project use Go modules?
from gocode.
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.
@gabstv, is this just the result of you triggering completions twice in a row or did anything change between the 2 instances?
from gocode.
@stamblerre It's the result of triggering completions twice (or more until the it gets right) without changing code
from gocode.
Is your project particularly large? This might be related to #20.
from gocode.
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.
@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.
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.
Closing this issue, as the current recommendation for autocompletion is to use gopls
.
from gocode.
Related Issues (20)
- No completions for external package at first tries (integrated with ycmd) HOT 6
- Autocomplete does not work within incomplete if statements HOT 1
- merge stamblerre/gocode and mdempsky/gocode (in the same way as godef) HOT 4
- gocode is using gigabytes and gigabytes of memory HOT 9
- How can this fork be much faster than the origin? HOT 2
- It is slower than visualfc/gocode HOT 2
- External packages no autocomplete HOT 2
- Contextually autocomplete structs properties HOT 2
- nil pointer panic when autocompleting HOT 4
- Nil panic, no method _, internal error HOT 2
- test
- test2
- gocode hangs emacs during lookup HOT 12
- Feature request: goimports support in Sublime Text plugin HOT 3
- gocode: not working with stdin HOT 3
- not working with vim 8.1 HOT 1
- go install error HOT 2
- This repo doesn't have a go mod file so it will not work in vscode HOT 1
- vscode install fail HOT 1
- I need Autobuild !! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gocode.