gocode with emacs on windows is so slow when i type
i have go install gocode successfully on windows7 and when i type in go-mode with spacemacs, it is so slow . For example ,when i type "fmt" after i type "fm" , i had to wait seconds to type "t" . During waiting ,the curson stay there quitely until seconds i could saw curson blinking. But on unbuntu has no problem
What autocompeletion plugin are you using?
i and spacemacs auto-completion layer in my .spacemacs. here is the website https://github.com/syl20bnr/spacemacs/tree/master/contrib/auto-completion it should be company by default
But before i add the auto-completion layer ,it has occured the problem.
Well, I don't know what spacemacs is, but I'll take a look I guess.
it is none of spacemacs .when i use prelude it occures the same problem
After testing with goclipse , i almostly confirm that it is the gocode problem which is build for windows target. With goclipse i has to wait for seconds to auto-complete and only complet the function name without its parameters. Maybe someone can test it on windows.
Can you also try godit (https://github.com/nsf/godit), it has windows support and gocode works there too. And since I wrote it, I know exactly how it works.
After a monent using ,I found it is amazing!But it's auto-complete functionality can only complete function name without parameters and after i type C-x C-a to complete ,there has to wait one second to complete and I think it is a litter long. Maybe it is in process, i guess.
The main question is that gocode now is widely used now and so it is better to solve the problem i commit.
Honestly, I have no idea where your problem comes from. On my windows 7 gocode works just fine without any noticable lags.
Should be fixed now by https://github.com/nsf/gocode/commit/c6fbdd52ff7382a15ac6. Please, take a look and if the bug is gone feel free to close the issue.
P.S. Don't forget to run gocode close. After go get -u github.com/nsf/gocode, to update the running daemon if any.
I had the slow auto-complete issue with goclipse, and after the above fix it is running way faster.
@joegrasse that's great
FYI, According to this, DNS changes were made in go1.5. However, it says that windows behavior shouldn't have changed.