maralla / completor.vim

Async completion framework made ease.
MIT License
1.31k stars 62 forks source link

Not up-to-date items on buffer #147

Closed ghost closed 6 years ago

ghost commented 6 years ago

roll_again roll_fdsa roll_addd

somehow I can only get two of them in poplist that should be three.
happen with python file.

maralla commented 6 years ago

I tested with these words in my environment, but it worked very well:

demo

maralla commented 6 years ago

Can you please disable all plugins exclude completor.vim and try it again?

ghost commented 6 years ago

Still persist the issue with only completor enabled: https://imgur.com/gSQ56j6

It happend with python file only I noticed, I use gvim on windows 10 downloaded from here: https://bintray.com/micbou/generic/vim

ghost commented 6 years ago

I open a new py file and it works as expected, but with existing files (maybe before completor installed - I don't think it's problem just list) the issue happened. Will Completor re-scan current buffer for each time it opened or editing?

maralla commented 6 years ago

I tried one more and I think I produced what you have encountered:

roll_again = 3

roll_aaa
roll_ddd
roll_ddd

roll|  # cursor here, only `roll_again roll_again = 3` in popup list

This happens because jedi has the higher priority to supply the completions candidates and jedi only supplies the roll_again so the other roll_* are not shown. If you type r_ all candidates should be shown.

ghost commented 6 years ago

Do you have workaround solution or it's just fine behavior?

maralla commented 6 years ago

I think it's better to make semantic and buffer completion result both show on the popup list. So when I have enough time I'll try to improve it.

ghost commented 6 years ago

Thank you, looking forward to it. I'm learning python from scratch, 'll give you a hand if possible.