Exafunction / codeium.vim

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

Commit: `c2bcccd9348fe0a45f39ed56df64a0f3bb309c4f` breaks codeium on Neovim #399

Open LeonardoMor opened 1 week ago

LeonardoMor commented 1 week ago

Along the lines of #379 and #375, this commit c2bcccd9348fe0a45f39ed56df64a0f3bb309c4f prevents the plugin from working on Neovim. Reverting to 8d4e845f125731d2de7c3036ea83f4be031c4340 partially fixes it.

Here you can see the log on DEBUG as I test the two commits:

asciicast

LeonardoMor commented 5 days ago

This is broken for enterprise only. Regular codeium.vim works with no issues.

LeonardoMor commented 5 days ago

Removed this and installed everything again:

rm -rf ~/.config/nvim
rm -rf ~/.local/state/nvim
rm -rf ~/.local/share/nvim

I still need to manually do :CodeiumEnable. At the start there's always this in the logs:

Exception: Server port has not been properly initialized. [function codeium#Complete[58]..codeium#server#Request, line 2]
Exception: Server port has not been properly initialized. [function codeium#Complete[58]..codeium#server#Request, line 2]
Exception: Server port has not been properly initialized. [function codeium#Complete[58]..codeium#server#Request, line 2]
Exception: Server port has not been properly initialized. [function codeium#Complete[58]..codeium#server#Request, line 2]
Exception: Server port has not been properly initialized. [function codeium#Complete[58]..codeium#server#Request, line 2]

And then after doing :CodeiumEnable manually, things look like I would expect.

Since I'm using Lazy, for now the work around is to add this to the codeium.vim spec:

        init = function()
            vim.cmd("CodeiumEnable")
        end,
LeonardoMor commented 5 days ago

Related #354