Long delay on :q when exiting Neovim with copilot.vim enabled, even with session counting patches — any suggestions?
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
調査の方向性
まず、アイドル状態の期間を置いた後、copilot.vim を有効にした状態で :q を実行すると発生する約 10 秒の遅延を、報告されている Neovim、Node.js、Linux のバージョンを使って再現します。VimLeavePre の処理、github_copilot autocmd グループ、および issue に記載されている copilot node-process のシャットダウンを調査します。Copilot の機能を無効にすることなく、終了をブロックしている動作を特定して解消し、その結果を 1 回のアイドルセッションで検証できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Vim Script
- スター
- 11.7k
- フォーク
- 812
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/copilot.vim のほかの issue
-
No link to DeepWiki オープン
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
github/copilot.vim#303 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
github/copilot.vim#276 · コメント 1 件 · リアクション 1 件 ·
-
Neomarley オープン
難易度 5/5 1週間以上 初心者へのやさしさ 1/100
github/copilot.vim#304 · リアクション 1 件 ·
-
Readme. オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 20/100
github/copilot.vim#302 · コメント 4 件 ·
-
Micky オープン
難易度 5/5 1週間以上 初心者へのやさしさ 1/100
github/copilot.vim#301 ·
github/copilot.vim の issue をすべて見る
似ている issue
-
area: harness bug status: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Human-Agent-Society/reef#625 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
vercel-labs/just-bash#464 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100