Getting `Vim:E95: Buffer with this name already exists` error with `lean://stderr` buffer
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start at stderr.show in the stderr output module, where Buffer.create is called with the name lean://stderr inside vim.schedule. Check how Buffer.create applies the name via vim.api.nvim_buf_set_name, and why a second buffer with that name collides when the existing one is still valid. Done means reproducing the E95 error, then creating the stderr buffer without the collision, with a test covering two creations.
索引モデルが issue の本文から書いたものです。
説明
I'm not entirely sure how to trigger this. It happens on this line (the Buffer.create line)
---Show stderr output in a separate stderr buffer.
---@param message string a (possibly multi-line) string from stderr
function stderr.show(message)
vim.schedule(function()
if not current.buffer or not current.buffer:is_valid() then
current.buffer = Buffer.create {
name = 'lean://stderr',
listed = false,
scratch = true,
options = { buftype = 'nofile' },
}
current.window = nil
end
then vim.api.nvim_buf_set_name(bufnr, opts.name).
perhaps it suffices to have an already-open lean://stderr and trigger the creation of another?
- 主要言語
- Lua
- スター
- 611
- フォーク
- 63
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 10
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Julian/lean.nvim のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 54/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 56/100
メンテナーはふだん 1 日以内に返信
Julian/lean.nvim の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
windwp/nvim-autopairs#554 · コメント 1 件 ·
-
examples/dnsdoctor: cleanup.sh stops at the first missing piece of a setup.sh that did not finishオープンseverity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
luainkernel/lunatik#2263 ·
メンテナーはふだん 1 日以内に返信
-
Nmap
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信