-
Notifications
You must be signed in to change notification settings - Fork 41
Tons of unrelated completion candidates shown when a candidate is fulfilled #79
Comments
I think that the issue will go away if you enable the caching for mspyls in company-lsp - but either the issue will be fixed once lsp-mode's capf implementation matures. |
I have set
Hope this description helps. At the moment it's overall still usable and I think I'll stick with the |
According to the description above, it seems the issue of |
@seagle0128 That might be the case, I'll open a similar issue over at company lsp and mention this thread too. |
This would fix your issue. ATM company-lsp maintainer is missing and we cannot get the fixes in (e. g. tigersoldier/company-lsp#128) so we are working on alternative completion implementation in lsp-mode which hopefully will have everything working correctly). |
Thank you @yyoncho, it does fix my issue for python completion. Should I keep this open until the implementation you mentioned is done? That way people will know they can safely remove this temporary workaround-snippet from their config. |
I can also confirm the patch works well for me. |
…candidate is fulfilled. See emacs-lsp/lsp-python-ms#79
… candidate is fulfilled. See emacs-lsp/lsp-python-ms#79
This issue only arises with mspyls in emacs. I've made sure by running pyls in emacs, as well as mspyls in VScode and none of the issues happened.
To reproduce the problem in a python buffer with mspyls + lsp-mode enabled, supposed we're trying to have autocompletion for
print()
. Start off by typingp
followed byr
andi
,n
etc. and we'll see the candidates narrow down and become fewer.Specifically, at
prin
we'll see that only 5 candidates are present, namely,print
,ImportWarning
,StopIteration
..... Of course, this is due to the fuzzy match result.The strange thing now happens as soon as I hit
t
to completeprint
. Now with either mspyls in VSCode or pyls in emacs, only a single candidateprint
will remain in the tooltip. However, with mspyls in emacs, the tooltip is suddenly filled with hundreds (maybe more) of unrelated candidates such asif
,else
,bin
,bool
,break
,AttributeError
,compile
,continue
,copyright
etc. As if it was a completion for a wildcard character.P.s. I'm on macOS with Emacs 27.0.50
The text was updated successfully, but these errors were encountered: