-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GO layer seems to continuously create working buffers and slows spacemacs down #7979
Comments
Looking at Search the |
I will try to get back to this issue in the near future. Had to switch gears. Other than the "look for any error messages [I] may have missed" advice, I am not sure what want me to change in the two functions in question. But I'll worry about that when I get there. Thanks |
Working off of another machine, so far cannot reproduce it. I'll close this issue until I can. |
I've reproduced this issue, I think: I'm afraid I'm still learning Spacemacs, so I'm not sure how to provide much more detail, but I'll do my best. System Info 💻
My situation is largely the same as @InvisibleTech's, but if anyone needs more info from me, I'll do my best. |
@rbrtl thanks for the interest. We need someone to debug/research why this bug occurs. I don't really have time to install the Go tools, reproduce the issue and debug it myself, so someone else will need to do this. The goal is to understand if the code that's supposed to kill the buffers is even called. If yes, why doesn't it kill the buffers? If no, why not? |
I have been experiencing this issue on Windows, OSX, and macOS. Checked the errors today and saw these gocode errors. Installing and running gocode seems to have resolved the issue for me.
|
Confirmed on a second machine. The layer recommends installing the following packages, and says you will need gocode and godef. The errors in Messages I have seen have only been about gocode.
Installing all of the packages makes the el-doc issue stop happening in two different environments. |
I think I identified the cause and opened issue reports upstream: nsf/gocode#435, emacsorphanage/go-eldoc#47. The cause is an error when calling an external command. In @nyxwulf's case the program was missing and the solution was to install it. |
The multiple |
Should be fixed upstream now |
What the hell? @rbrtl sorry, I don't have any experience with macOS. According to the error message:
I'm guessing imagemagick couldn't be loaded for some reason. Maybe it's not installed or not in the correct path? Maybe you really need to reinstall Emacs itself (not Spacemacs), as the popup suggests? Any way, I doubt the Go layer can cause this, I just don't see any connection. @d12frosted any clue? |
I think I said something like that when I saw that message. I think I've fixed things now. Read this PR: Homebrew/homebrew-core#7775 and reinstalled emacs-plus (--without-imagemagick) and that fixed up the macOS error, and then sured up my Go install and installed the support tools, and everything looks fine. Cheers for your help, all. |
For those who still have trouble configuring the path correctly (like myself), make sure you have Go follow the instructions here to set it up correctly: https://golang.org/doc/code.html#GOPATH , or adding the following lines to your
It is strange that they didn't put this on the installation guide page. |
Description
Using spacemacs to edit any GO lang files and over time the number of go-eldocs and gocode buffers begin to get out of control. Every edit, every save they just keep coming. It is like being in a Bruce Lee movie where bad guys keep coming through the door one at a time. It might be a setting. However, I am using the on label install of spacemacs for OSX. The GO layer is installed by spacemacs and GO by brew.
Reproduction guide 🪲
Observed behaviour: 👀 💔
You should see more and more go-eldoc and gocode buffers if you use SPC - b - b to see the list.
Expected behaviour: ❤️ 😄
You should only see one set of these buffers or none as they clean up.
System Info 💻
(javascript better-defaults auto-completion emacs-lisp osx git markdown org spell-checking syntax-checking go elixir scala python)
Backtrace 🐾
The text was updated successfully, but these errors were encountered: