After opening the filer and closing it with the quit action, if you try to open the filer again, an error will occur.
Below is the error message reproduced with the minimum configuration.
# Neovim error messages
Error detected while processing CursorMoved Autocommands for "<buffer=2>"..function ddu#ui#filer#_save_cursor:
line 16:
E121: Undefined variable: b:ddu_ui_filer_save_cursor_item
[denops] Unhandled rejection: Error: Failed to call 'denops#api#cmd' in Neovim: CursorMoved Autocommands for "<buffer=2>"..function ddu#ui#filer#_save_cursor[16]..ddu#ui#get_item[1]..ddu#ui_sync_action[4]..ddu#denops#_request[15]..denops#request[1]..denops#_internal#server#chan#request[6]..denops#_internal#rpc#nvim#request[1]..denops#api#cmd, line 2: Vim(close):E444: Cannot close last window (code: 0)
[denops] at Neovim.call (file:///home/yasunori/.cache/dpp/repos/github.com/vim-denops/denops.vim/denops/@denops-private/host/nvim.ts:65:15)
[denops] at eventLoopTick (ext:core/01_core.js:168:7)
[denops] at async DenopsImpl.cmd (file:///home/yasunori/.cache/dpp/repos/github.com/vim-denops/denops.vim/denops/@denops-private/denops.ts:63:5)
[denops] at async Ui.quit (file:///home/yasunori/.cache/dpp/repos/github.com/Shougo/ddu-ui-filer/denops/@ddu-uis/filer.ts:592:9)
[denops] at async uiQuit (file:///home/yasunori/.cache/dpp/repos/github.com/Shougo/ddu.vim/denops/ddu/ext.ts:921:3)
[denops] at async Ddu.quit (file:///home/yasunori/.cache/dpp/repos/github.com/Shougo/ddu.vim/denops/ddu/ddu.ts:828:5)
# Vim error messages
[ddu] BatchError: Failed to call 'ddu#ui#filer#_highlight_items' in Vim: Vim(call):E970: Unknown highlight group name: 'String'
[ddu] function denops#api#vim#batch[3]..<lambda>11875[1]..ddu#ui#filer#_highlight_items[17]..ddu#ui#filer#_highlight, line 10
[ddu] at DenopsImpl.batch (file:///home/yasunori/.cache/dpp/repos/github.com/vim-denops/denops.vim/denops/@denops-private/denops.ts:57:13)
[ddu] at eventLoopTick (ext:core/01_core.js:168:7)
[ddu] at async batch (https://deno.land/x/denops_std@v6.5.0/batch/batch.ts:194:3)
[ddu] at async Ui.redraw (file:///home/yasunori/.cache/dpp/repos/github.com/Shougo/ddu-ui-filer/denops/@ddu-uis/filer.ts:445:7)
[ddu] at async file:///home/yasunori/.cache/dpp/repos/github.com/Shougo/ddu.vim/denops/ddu/ext.ts:971:7
[ddu] at async Lock.lock (https://jsr.io/@lambdalisue/async/2.1.1/lock.ts:51:14)
[ddu] at async uiRedraw (file:///home/yasunori/.cache/dpp/repos/github.com/Shougo/ddu.vim/denops/ddu/ext.ts:944:3)
[ddu] at async Ddu.uiRedraw (file:///home/yasunori/.cache/dpp/repos/github.com/Shougo/ddu.vim/denops/ddu/ddu.ts:781:5)
[ddu] at async Ddu.start (file:///home/yasunori/.cache/dpp/repos/github.com/Shougo/ddu.vim/denops/ddu/ddu.ts:237:5)
[ddu] at async file:///home/yasunori/.cache/dpp/repos/github.com/Shougo/ddu.vim/denops/ddu/app.ts:234:9
[ddu] [ddu-ui-filer] update buffer failed
[denops] Unhandled rejection: Error: Failed to call 'denops#api#cmd' in Vim: Vim(close):E444: Cannot close last window
[denops] function denops#api#vim#call[2]..denops#api#cmd, line 2
[denops] at Vim.call (file:///home/yasunori/.cache/dpp/repos/github.com/vim-denops/denops.vim/denops/@denops-private/host/vim.ts:56:13)
[denops] at eventLoopTick (ext:core/01_core.js:168:7)
[denops] at async DenopsImpl.cmd (file:///home/yasunori/.cache/dpp/repos/github.com/vim-denops/denops.vim/denops/@denops-private/denops.ts:63:5
)
[denops] at async Ui.quit (file:///home/yasunori/.cache/dpp/repos/github.com/Shougo/ddu-ui-filer/denops/@ddu-uis/filer.ts:592:9)
[denops] at async uiQuit (file:///home/yasunori/.cache/dpp/repos/github.com/Shougo/ddu.vim/denops/ddu/ext.ts:921:3)
[denops] at async Ddu.quit (file:///home/yasunori/.cache/dpp/repos/github.com/Shougo/ddu.vim/denops/ddu/ddu.ts:828:5)
[denops] Unhandled rejection: Error: Failed to call 'denops#api#cmd' in Vim: Vim(close):E444: Cannot close last window
Expected
Environment Information
ddu.vim version (SHA1): 6b09194
ddu-ui-filer version (SHA1): 405cf5d
denops.vim version (SHA1): 09e6495
deno version(deno -V output): deno 1.44.4
OS: Arch Linux
neovim/Vim :version output:
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1713484068
Run ":verbose version" for more info
Problems summary
After opening the filer and closing it with the quit action, if you try to open the filer again, an error will occur.
Below is the error message reproduced with the minimum configuration.
Expected
Environment Information
ddu.vim version (SHA1):
6b09194
ddu-ui-filer version (SHA1):
405cf5d
denops.vim version (SHA1):
09e6495
deno version(
deno -V
output):deno 1.44.4
OS: Arch Linux
neovim/Vim
:version
output:Provide a minimal init.vim/vimrc without plugin managers (Required!)
How to reproduce the problem from neovim/Vim startup (Required!)
nvim -u init.vim
vim -N -u init.vim
:Test
q
in ddu-filer buffer:Test