autocomplete-go icon indicating copy to clipboard operation
autocomplete-go copied to clipboard

gocode lingers afer closing Atom

Open dlsniper opened this issue 9 years ago • 6 comments

Hi there :wave:

I've gave Atom 1.7.1 + go-plus 4.1.0 (with autocomplete-go 1.0.6) a spin tonight on my Kubuntu 15.10 x64 machine. I've noticed that after I close the IDE gocode will still linger in memory and I have to terminate it explicitly. Please let me know if I can help out with anything to fix this. Thank you.

dlsniper avatar Apr 17 '16 22:04 dlsniper

Seems like it shouldn't be so hard to invoke gocode close when the package is deactivated, but I don't think we want to run an asynchronous tool lookup when we're shutting down.

What if instead of looking for the gocode executable multiple times, we looked for it once and then cached it? What say you @joefitzgerald

zmb3 avatar Apr 29 '16 22:04 zmb3

I'm on the macOS Sierra beta, and there's a slightly bigger problem - I seem to have hundreds of gocode processes running. I'm only working on a few Go files at a time, less than 10. Need to keep killing them manually.

sudhirj avatar Jul 11 '16 10:07 sudhirj

@sudhirj yikes! Makes me wonder if it's an issue with go itself? I've seen a few Sierra - specific changes in go 1.7 RC1. Seems like the gocode autocomplete daemon is failing to find itself so it's launching and daemon using every time.

One way to rule this out is to close all instances of gocode, then launch it in server mode (gocode -s) and see if that stops the issue. If it doesn't, it's probably a gocode or a go issue.

joefitzgerald avatar Jul 11 '16 12:07 joefitzgerald

@sudhirj are you still experiencing your issue with multiple gocode processes? I'm running on macOS Sierra beta now, and not experiencing the issue. Try gocode close && go get -u github.com/nsf/gocode after installing go 1.7?

joefitzgerald avatar Sep 01 '16 16:09 joefitzgerald

No, haven't seen the problem in a while.

sudhirj avatar Sep 01 '16 17:09 sudhirj

@joefitzgerald I have seen this on linux right now. Sry, my response was not related to the discussion, I have read it a bit too fast, I apologize for that. :)

rumpelsepp avatar Oct 11 '16 21:10 rumpelsepp