neovim
neovim copied to clipboard
vim.diagnostic.setqflist() execution error, E5108: Error executing lua Vim:E92: Buffer 11 not found
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

@JavaHello can you provide a min java code that can reproduce this issue :) I don't write java . @justinmk assignees me thanks.
@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
Tested with neovim project
reproduce. thanks for report .
Tested with