tigersoldier / company-lsp

Company completion backend for lsp-mode
GNU General Public License v3.0
251 stars 26 forks source link

No completion found #111

Open teichholz opened 5 years ago

teichholz commented 5 years ago

Im on MacOS and i'm getting no completion with company-lsp despite the lsp-server as well as completion-at-point working. I've tested it with the typescript-language-server and the Microsoft Python Language Server. I'm using DOOM Emacs and have also tested it with Spacemacs without success.

Am I doing something wrong?

yyoncho commented 5 years ago

I assume that the client side filtering is filtering out the results. First make sure that you are using the latest version of company lsp. You may add MS python server id in company-lsp-filter-candidates (it should have nil).

To debug that you may do M-x trace-function company-lsp-filter-candidates .

teichholz commented 5 years ago

setting company-lsp-filter-candidates to nil fixed it, but caused #79. Setting company-lsp-cache-candidates to 'auto fixed it.

yyoncho commented 5 years ago

Thanks for doing the investigation. I guess @tigersoldier will know what we should do to make it work by default.