When using custom company
backends, company-complete
ends up returning no completions due to a misbehaving backend. In such cases, it would be helpful to know out which company backend was used to generate the list of completions. How do I get this information after a company-complete
invocation?
-
2The currently used backend should be displayed in the modeline.– wasamasaDec 22, 2014 at 21:41
3 Answers
company
has a very useful feature that modifies its modeline lighter to display the backend currently in use.
-
1
-
2Exactly what I wrote in the answer: The currently used backend is displayed in the modeline. It's unconditionally enabled.– wasamasaJun 14, 2018 at 8:02
-
I am not seeing it. That probably means Moritz answer applies to me or I have disabled it and forgotten about it. Thanks for the clarification. Jun 14, 2018 at 13:48
-
Nor am I seeing it. I simply see
company
in the modeline. @Dmitry's answer does work here.– jrmJun 27, 2018 at 17:42 -
I strongly suggest you to start with a minimal Emacs session (
emacs -Q
followed byM-x package-initialize
and evaluating your company config) to exclude any interference of your init file.– wasamasaJun 27, 2018 at 19:50
You can type M-x company-diag now, and see the used backend in the resulting buffer.
If the first answer does not work:
Using the package elpy, hides the company lighter in the modeline (even in other major modes). Same might be true for globally installed major modes.