Skip to content

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

@JavaHello

Description

@JavaHello

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions