tsuquyomi icon indicating copy to clipboard operation
tsuquyomi copied to clipboard

Completion is happening on its own (often not what I want)

Open GRardB opened this issue 6 years ago • 9 comments

Something strange is going on with auto-completion. It's a bit too automatic... It seems to autocomplete in the middle of my typing, and it really messes me up:

tsuquyomi

Another weird thing is that the behavior isn't super consistent; usually, it completes in a way that makes some sense. For example, I'll type set and it autocompletes to size (same first letter). Other times, it doesn't (e.g. instead of globals in the above scenario, it will occasionally autocomplete value, which is not at all what I'm typing).

It seems to only happen on the first attempt, and then backspacing will "fix" the problem:

tsuquyomi

However, as seen in the first example, if I go into normal mode and delete the autocompleted code, then try again, the bug occurs again.

I've tested this in both Vim 8 and NeoVim, and the behavior is the same in both. I'm using YouCompleteMe for my autocompletion. Outside of TypeScript files, I don't experience this bug, and I don't experience it within TS files if tsuquyomi is disabled.

GRardB avatar Jan 05 '18 21:01 GRardB

happening to me as well.

johhansantana avatar Jan 29 '18 14:01 johhansantana

oi, what I did was update typescript globally and restarted my computer seems to fix it.

johhansantana avatar Jan 29 '18 15:01 johhansantana

Hrm, interesting. I've updated to 2.6.2 and restarted my computer, but it doesn't seem to fix the problem.

GRardB avatar Jan 30 '18 19:01 GRardB

@GRardB try to do manual auto completion without ycm activated. If that works fine it is most likely ycm and tsuquyomi integration problem.

mboughaba avatar Mar 10 '18 21:03 mboughaba

Weird; I was using the both for a while and had not been experiencing this. I ran into some freezing up issues that I tracked down to tsserver reading GB 's which I think I resolved but now I'm running into this issue.

metasansana avatar Apr 20 '18 01:04 metasansana

Happening to me also. And updating typescript with npm install -g typescript appears to have fixed it.

gbishop avatar Jul 05 '18 14:07 gbishop

I just wanted to chime in and say that I, too, had this problem, and npm install -g typescript fixed it. It was great to find this issue to figure it out :)

EDIT: I spoke too soon. It looked like it fixed things but it just happened to me again.

knewter avatar Feb 05 '19 12:02 knewter

Thanks guys, worked for me as well

lichstam avatar Feb 07 '19 20:02 lichstam

This is also happening to me, I don't think the answer should be update typescript, completion works fine for my coworkers with the same version of typescript in other editors.

RobinClowers avatar Nov 13 '19 19:11 RobinClowers