Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Golang auto completion nsf package

I have installed sublime and go.

Tried the autocompletion feature offered by https://github.com/nsf/gocode.

It works perfectly for standard packages.

But not working for external packages like the ones fetched from github.

Any help on this appreciated. Thanks.

like image 466
connectwithpalaniappan Avatar asked Oct 23 '25 00:10

connectwithpalaniappan


1 Answers

It will only work if you build and install those external packages.

if you just go get their sources, the completion won't work, even said sources are in the GOPATH/src/....

Those packages need to be at least compiled (GOPATH/pkg).

As mentioned in "How does Go update third-party packages?", a go get -u all can help.

like image 82
VonC Avatar answered Oct 26 '25 10:10

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!