2

My company's project has so mush code.The autocomplete provided by "gopls" has a delay for about 1 second.
That was a little upset for me.

Then I find that gocode's autocomplete is faster.

But when I turn on "gopls", "gocode" won't work.
And if I turn off "gopls", I can't have the navigation provided by the "gopls".

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
LGZ
  • 21
  • 1

1 Answers1

1

As mentioned in the

VERY IMPORTANT: this project is not maintained anymore, look for alternatives or forks if you need Go autocompletion tool

For a better autocompletion experience with Go, we suggest you use the Go language server, gopls.

So do check first if all the company code is actually needed to compile your project.
Maybe you could do some sparse-checkout in order to not get all the code, but only the part you need.
And make sure your modules are all needed, using go mod tidy.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250