neovim icon indicating copy to clipboard operation
neovim copied to clipboard

vim.diagnostic.setqflist() execution error, E5108: Error executing lua Vim:E92: Buffer 11 not found

Open JavaHello opened this issue 3 years ago • 3 comments

Neovim version (nvim -v)

NVIM v0.8.0-dev+596-gac10c0f41

Vim (not Nvim) behaves the same?

no

Operating system/version

macOS 12.4

Terminal name/version

wezterm 20220705-220116-00fb0c58

$TERM environment variable

xterm-256color

Installation

homebrew

How to reproduce the issue

# Language server jdt.ls

cd javaProject
nvim
:e xxx.java
:lua vim.diagnostic.setqflist()
# open xxx.java
:bw
:lua vim.diagnostic.setqflist()

Expected behavior

Expect vim.diagnostic.setqflist() to execute correctly 图片

Actual behavior

E5108: Error executing lua Vim:E92: Buffer 11 not found
stack traceback:
        [C]: in function 'setqflist'
        ...m/HEAD-ac10c0f/share/nvim/runtime/lua/vim/diagnostic.lua:489: in function 'set_list'
        ...m/HEAD-ac10c0f/share/nvim/runtime/lua/vim/diagnostic.lua:1433: in function 'setqflist'
        [string ":lua"]:1: in main chunk

nvim-lsp-bw

JavaHello avatar Jul 11 '22 14:07 JavaHello

@JavaHello can you provide a min java code that can reproduce this issue :) I don't write java . @justinmk assignees me thanks.

glepnir avatar Jul 19 '22 10:07 glepnir

@JavaHello can you provide a min java code that can reproduce this issue :) I don't write java . @justinmk assignees me thanks. Not limited to Java Code, Lua Code also has such problems lua-nvim-bw Tested with neovim project

JavaHello avatar Jul 19 '22 14:07 JavaHello

reproduce. thanks for report .

glepnir avatar Jul 19 '22 22:07 glepnir