Skip to content
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

No buffers contain error message locations #476

Closed
jasiek opened this issue Sep 26, 2017 · 8 comments
Closed

No buffers contain error message locations #476

jasiek opened this issue Sep 26, 2017 · 8 comments

Comments

@jasiek
Copy link

jasiek commented Sep 26, 2017

I've followed the installation instructions, and despite that, when I open up a .go file I get the following message: No buffers contain error message locations and cursor keys stop working, redisplaying the same message over and over.

Auto-completion works in the sense that when I find a way to be able to type in an identifier, it will display suggestions.

@nsf
Copy link
Owner

nsf commented Sep 26, 2017

I don't think this error message comes from gocode. You didn't even tell me which editor are you using.

@jasiek
Copy link
Author

jasiek commented Sep 26, 2017

My apologies. This is emacs.

When I comment out (auto-complete-mode 1) from my init file this goes away. That led me to think that the error may lie in go-autocomplete.

@nsf
Copy link
Owner

nsf commented Sep 26, 2017

Hard to tell what's going on as usual with emacs. As an option you can try company-mode. Gocode has a plugin for it too: https://github.com/nsf/gocode/tree/master/emacs-company

And personally I like it more.

@jasiek
Copy link
Author

jasiek commented Sep 26, 2017

I'll give it a go - thanks.

@jasiek
Copy link
Author

jasiek commented Sep 26, 2017

I've removed auto-complete and go-autocomplete and set it up according to the instructions for emacs-company - I am getting the same result.

I'll see what happens on a fresh installation of emacs.

@jasiek
Copy link
Author

jasiek commented Sep 26, 2017

Clean install of emacs works with autocomplete-mode. Clearly there's something wrong on my end.

@jasiek jasiek closed this as completed Sep 26, 2017
@jasiek
Copy link
Author

jasiek commented Oct 16, 2017

Turns out I was wrong - I still can't get it to work with either package. Will keep trying.

@jasiek jasiek reopened this Oct 16, 2017
@jasiek
Copy link
Author

jasiek commented Oct 16, 2017

Here's what caused it, for reference:

  (local-set-key (kbd "M-]") 'next-error)         ; Go to next error (or msg)
  (local-set-key (kbd "M-[") 'previous-error)     ; Go to previous error or msg

@jasiek jasiek closed this as completed Oct 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants