Exafunction / codeium.vim

Free, ultrafast Copilot alternative for Vim and Neovim
https://codeium.com
MIT License
4.3k stars 157 forks source link

VimLeave event - error message after executing :qa and :qa! commands #146

Closed arnoldmashava closed 1 year ago

arnoldmashava commented 1 year ago

Despite satisfying the :Codeium Auth requirement, I still get a VimLeave event error message thrown back after entering either the :qa or :qa! commands, where the exit process initially encounters some significant resistance and a time delay.

After some coercion by repeatedly pressing the <Enter> key, a teaser of an error message quickly flashes and exits, without much time for consummation:

Error detected while processing VimLeave Autocommands for "*"..function codeium#ServerLeave:
line 1:
E910: Using a Job as a Number

I have read through the Documentation, Pull Requests and resolution of Issues but my fading mental faculties and ageing brain are collectively failing to converge to some decent pacification of my codeium.vim malady.

Vim environment specifications:

VIM - Vi IMproved 9.0 (2022 Jun 28)
Included patches: 1-1572
Compiled by 'http://www.opensuse.org/'
Huge version with GTK3 GUI.

Where could I be getting it wrong?

Muchas Gracias y Saludos Cordiales,

Arnold Mashava

pqn commented 1 year ago

My guess is either you need a more recent version of vim, or there was some other error that you somehow skipped. I assume the error message is from this line: https://github.com/Exafunction/codeium.vim/blob/581ba9718f4416b4107273ffbce9c0a821835832/autoload/codeium.vim#LL422C28-L422C28

newptcai commented 1 year ago

I am using VIM 9.0, the latest version. But I get the same error message.

bbchung commented 1 year ago

I also get the error message, use latest vim image

arnoldmashava commented 1 year ago

Thanks so much @pqn and @bbchung and my highest acknowledgements to you both for the iterative git commits that culminated in the resolution of Issue #146. And thanks to @newptcai for echoing the observations defined in #146. I am very grateful.

¡Muchas Gracias y Saludos Cordiales!

Arnold Mashava.