Closed nguyennk92 closed 2 years ago
+1
Could you please try
let b:asyncomplete_refresh_pattern = "\\(/\\|\\k\\+\\)$"
FYI, this should be done before completion.
Similar issue here. Completion works for most things but not in specific cases. For example. Im calling an a function using await and there is no autocompletion on the resulting object. If I remove await, completion works.
["asyncomplete#complete","asyncomplete_lsp_typescript-language-server",{"lnum":13,"bufnr":1,"col":6,"changedtick":36,"typed":"\tsub.","filetype":"typescript","curpos":[0,13,6,0,13],"filepath":"/home/vader/Projects/app-ibs/src/services/stream.ts"},5,false,[{"word":"callback","abbr":"callback~","user_data":"{\"vim-lsp/key\":\"62\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"closed","abbr":"closed","user_data":"{\"vim-lsp/key\":\"63\"}","kind":"field","empty":1,"dup":1,"icase":1},{"word":"consumerInfo","abbr":"consumerInfo~","user_data":"{\"vim-lsp/key\":\"64\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"destroy","abbr":"destroy~","user_data":"{\"vim-lsp/key\":\"65\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"drain","abbr":"drain~","user_data":"{\"vim-lsp/key\":\"66\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"getID","abbr":"getID~","user_data":"{\"vim-lsp/key\":\"67\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"getMax","abbr":"getMax~","user_data":"{\"vim-lsp/key\":\"68\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"getPending","abbr":"getPending~","user_data":"{\"vim-lsp/key\":\"69\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"getProcessed","abbr":"getProcessed~","user_data":"{\"vim-lsp/key\":\"70\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"getReceived","abbr":"getReceived~","user_data":"{\"vim-lsp/key\":\"71\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"getSubject","abbr":"getSubject~","user_data":"{\"vim-lsp/key\":\"72\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"isClosed","abbr":"isClosed~","user_data":"{\"vim-lsp/key\":\"73\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"isDraining","abbr":"isDraining~","user_data":"{\"vim-lsp/key\":\"74\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"[Symbol]","abbr":"Symbol","user_data":"{\"vim-lsp/key\":\"75\"}","kind":"variable","empty":1,"dup":1,"icase":1},{"word":"unsubscribe","abbr":"unsubscribe~","user_data":"{\"vim-lsp/key\":\"76\"}","kind":"method","empty":1,"dup":1,"icase":1}]]
["core","s:update_pum"]
["core","s:recompute_pum"]
["core","asyncomplete#preprocess_complete"]
["core","asyncomplete#preprocess_complete calling complete()",0,[]]
Seems also like #138
Found on the ones that work, base is 'empty base', the ones that dont work base is '.' Then disabling fuzzymatch, this line fails resulting in empty array. https://github.com/prabirshrestha/asyncomplete.vim/blob/9c7651894c2c6d656c0dc71e87cfabbbb71b9c78/autoload/asyncomplete.vim#L474
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Could you please try
let b:asyncomplete_refresh_pattern = "\\(/\\|\\k\\+\\)$"
FYI, this should be done before completion.
Just faced the same issue. Had to put a space after the . to get the completion. Putting your let in, it directly completes after the . Thank you!
Hi, I am having trouble getting auto-complete to show up for java projects. My setup work flawlessly with go and other languages, just java causing me trouble. I see eclipse-jdt-ls already having response for complettion, but somehow asyncomplete refuse to pick it up.
eclipse-jdt-ls log
asyncomplete.log
Strangely enough, it only doesn't show up when im trying to get autocomplete for fields/method within some obj:
It shows up perfectly fine for variable/class/interface type I think: