Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Lattay opened this issue Apr 30, 2024 · 0 comments
Open

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

Lattay opened this issue Apr 30, 2024 · 0 comments

Comments

@Lattay
Copy link

Lattay commented Apr 30, 2024

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:

  • the filetype needs to be ignored
  • you don't need to modify the file in the current session but the file cannot be empty for the whole session

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,
}
  1. open a new python file
  2. write something in the file
def fib():
  pass
  1. Quit with :wq
  2. 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

  • I use Neovim v0.9.5 on Archlinux
  • Codeium.vim is on commit 31dd296
  • when the file is opened ps -e shows one language_server process, but when the editor is hanging ps -e shows 2 processes. Both processes are new as their PID is greater the initial language_server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant