Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature req: Add a flag to tell gocode to autobuild #815

Closed
alienth opened this issue Apr 26, 2016 · 2 comments
Closed

Feature req: Add a flag to tell gocode to autobuild #815

alienth opened this issue Apr 26, 2016 · 2 comments
Labels

Comments

@alienth
Copy link

alienth commented Apr 26, 2016

As mentioned in this comment, gocode can be configured to autobuild any sources which haven't been built, which will address people not getting autocomplete for stuff which isn't yet in go/pkg.

Microsoft/vscode-go uses this same feature. Relevant code is here: https://github.com/Microsoft/vscode-go/blob/932ccd1cf114cb38b5fef961756b3655bf06a0d4/src/goSuggest.ts#L139

The autobuild feature by gocode is described as experimental. As such it may need to be defaulted to off in vim-go and only enabled by people who want it.

@alienth
Copy link
Author

alienth commented Apr 26, 2016

Side note: Microsoft/vscode-go is considering on moving to guru. The author of gocode has indicated that it has problems and likely needs a rewrite, but doesn't seem like they have the time to do it anytime soon. Microsoft may help get auto-completion into guru, as mentioned here. Might be something to keep an eye on for vim-go.

@fatih fatih added the feature label Apr 28, 2016
fatih added a commit that referenced this issue May 15, 2016
This will hopefully make it more easier to use completion for newcomers.
It's totally optional and can be disabled if wished.

Closes #815
@fatih
Copy link
Owner

fatih commented May 15, 2016

Hi @alienth . This is now implemented on latest master. Just pull it to use. It'll be a part of the upcoming release. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants