Exafunction / codeium.vim

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

[Bug] Neovim hangs on :wq (possible race condition) #359

Open Lattay opened 1 month ago

Lattay commented 1 month ago

Description

I hit a bug with codeium that prevent neovim from closing and let it hang indefinitely. It is not easy to determine exactly the required condition but here is what I found:

Repro

  1. disable codeium for python. For me using lazy.nvim that looks like that (init is executed before loading codeium):
    {
        "Exafunction/codeium.vim",
        init = function()
            vim.g.codeium_filetypes = { python = false }
        end,
    }
  2. open a new python file
  3. write something in the file
    def fib():
    pass
  4. Quit with :wq
  5. Sometime neovim doesn't hang on this one, reopen the file, and quit right away with :wq

As far as I can tell :wqa and :q do not trigger the bug.

Other interesting informations