issue-tracker icon indicating copy to clipboard operation
issue-tracker copied to clipboard

gvim windows 10 WSL | Ubuntu

Open dietrich opened this issue 6 years ago • 7 comments

https://s3.console.aws.amazon.com/s3/object/kite-client-logs/prod/284345/kite_local/client.log.2020-08-04_02-46-13-PM.bak.gz

I'm using gvim on windows 10 with WSL Ubuntu. I get proper auto complete but when I hit "enter" I get an "Undefined variable" error (see attached png)

KiteVimWSLUbuntuError

log: https://s3.console.aws.amazon.com/s3/object/kite-client-logs/prod/284345/kite_local/client.log.2020-08-04_02-46-13-PM.bak.gz

Errors like this happen when I first start up kite, or a create new code. The errors seem to stop after awhile. Thanks

dietrich avatar Aug 04 '20 19:08 dietrich

@dietrich to clarify, if you keep Vim open and keep coding, these errors eventually stop happening?

@airblade does this ring a bell?

itsdhung avatar Aug 04 '20 23:08 itsdhung

@its-dhung It reminds me of https://github.com/kiteco/kiteco/issues/8990 but that particular problem was fixed.

I presume this is an edge case – handling a completion's placeholders is the trickiest part of the whole plugin by far.

@dietrich Can you reproduce this consistently? If so, what are the repro steps?

airblade avatar Aug 05 '20 11:08 airblade

The error says that b:kite_stack doesn't exist at line 5 of s:teardown().

However line 1 of that function calls s:clear_all_placeholder_highlights() which references b:kite_stack – so the variable is present there.

Line 2 removes some maps, which doesn't affect b:kite_stack.

Line 3 removes some autocmds, which doesn't affect b:kite_stack.

Line 4 sets up some maps, which doesn't affect b:kite_stack.

And yet at line 5 b:kite_stack does not exist. At no point is the variable unlet.

Hmm.

airblade avatar Aug 06 '20 16:08 airblade

@dietrich Is your vim config online anywhere? Also, what does :echo kite#utils#plugin_version() say?

airblade avatar Aug 06 '20 16:08 airblade

kite#utils#plugin_version() : 1.0.64 @dietrich to clarify, if you keep Vim open and keep coding, these errors eventually stop happening? ** yes seems to eventually stop happening @dietrich Can you reproduce this consistently? If so, what are the repro steps? ** haven't tried to consistently reproduce but it seems to happen every time i restart kite/gvim.... or after a reboot.

vimrc: I'm using ~ https://github.com/amix/vimrc fyi: when i hit "enter" gvim takes me to a new blank window . when I close that window and return to original file, the auto-complete actually worked (despite the error).

dietrich avatar Aug 07 '20 23:08 dietrich

when i hit "enter" gvim takes me to a new blank window

What's the context? In normal mode, when the completion menu is open, in insert mode, ...?

airblade avatar Aug 10 '20 10:08 airblade

See original image attachment: "Press ENTER or type command..."

dietrich avatar Aug 12 '20 19:08 dietrich