-
Notifications
You must be signed in to change notification settings - Fork 89
completion doesn't work with go master #268
Comments
Thanks for the link. I see the gocode README now suggests the switch, so this makes sense to me. |
Currently mdempsky/gocode comes with two modes:
I tried integrating it in go-langserver and quickly tested each mode. There is no perceivable difference on speed for the binary mode, but the source mode is unbearably slow (takes few seconds on my MacBook Air). Since the Go team is working towards deprecating the $GOPATH/pkg cache (see golang/go#4719 (comment)), we should definitely switch to an implementation that parses source code. Currently, I suggest that we switch to mdempsky/gocode and expose the source/binary mode option to users. Finally we might deprecate the binary mode when the source mode has a cached solution. mdempsky/gocode refactors the original gocode, making the core functions modular and easy to follow, so it is easy to switch to it. Really appreciate Dempsky's work! |
Yeah that makes sense to me. A PR for what you have done sounds GTM. It may make sense to use a fork of |
I don't have time to work on the PR until next Tue. So for anyone interested please help implementing that. After a while I found out that I was not using cache at all when testing, but the performance for parsing binary file without cache seems adequate. |
@Contextualist Hi, |
I think we should switch to using a fork (or trying to get it being a library upstream), so that we can more easily integrate updates to upstream gocode in the future. |
I hate to be that guy, but bump. anyone? Go 1.11 is officially out. |
Is this still an issue? |
nsf/gocode#510
Maybe switch to https://github.com/mdempsky/gocode? the speed difference is minimal but it won't break every other Go release.
The text was updated successfully, but these errors were encountered: