Long delay on :q when exiting Neovim with copilot.vim enabled, even with session counting patches — any suggestions?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
Direzione di ricerca
Inizia riproducendo il ritardo di circa 10 secondi su :q con copilot.vim abilitato dopo un periodo di inattività, utilizzando le versioni segnalate di Neovim, Node.js e Linux. Esamina la gestione di VimLeavePre, il gruppo di autocmd github_copilot e l'arresto di copilot node-process descritto nell'issue. Il lavoro è completato quando il comportamento di uscita bloccante è stato identificato e risolto senza disabilitare le funzionalità di Copilot, con il risultato verificato in una singola sessione inattiva.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi,
I’m experiencing a significant delay (~10 seconds) when quitting Neovim (:q) with copilot.vim enabled, and this happens even with a single Neovim session after it has been idle for a while.
To mitigate this, I’ve tried:
Adding a session counter (both Lua in init.lua and Vimscript in a plugin/copilot_session.vim patch) to track how many Neovim sessions with Copilot are active.
On VimLeavePre, only calling Copilot disable and killing the copilot node process when the last session exits, skipping it otherwise to avoid the stall.
Clearing Copilot’s own VimLeavePre autocmd group (github_copilot) in all but the last session to prevent multiple shutdown hooks running.
Avoiding forcibly killing node processes except on the last session exit.
However, the stall still occurs on quit even when only one Neovim session is open and idle. The copilot node process appears to be killed during exit, and I suspect Copilot’s internal shutdown logic is blocking Neovim exit.
My questions are:
Are there known issues in copilot.vim causing blocking delays on exit after idle?
Is there an official or recommended way to make Copilot’s shutdown asynchronous or non-blocking?
How can I reliably prevent the exit delay without disabling Copilot’s essential functionality?
Are there patches, config workarounds, or plugin updates that address this problem?
Thanks in advance for any insights or help!
NVIM v0.11.1
Build type: RelWithDebInfo
LuaJIT 2.1.1741730670
node --version
v22.15.1
Linux 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Thu Jul 20 08:38:27 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux
- Lingua principale
- Vim Script
- Stelle
- 11.7k
- Fork
- 812
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di github/copilot.vim
-
No link to DeepWiki Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
github/copilot.vim#303 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
github/copilot.vim#276 · 1 commento · 1 reazione ·
-
Neomarley Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 1/100
github/copilot.vim#304 · 1 reazione ·
-
Readme. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 20/100
github/copilot.vim#302 · 4 commenti ·
-
Micky Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 1/100
github/copilot.vim#301 ·
Tutte le issue di github/copilot.vim
Issue simili
-
area: harness bug status: needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Human-Agent-Society/reef#625 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
vercel-labs/just-bash#464 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100