miversen33 / netman.nvim

Neovim (Lua powered) Network Resource Manager
MIT License
330 stars 1 forks source link

Cleanup error thrown when closing neovim after failing to open a remote location #206

Open miversen33 opened 3 months ago

miversen33 commented 3 months ago

When netman fails to open a remote file (for whatever reason), it toss the following error on neovim close

Error detected while processing BufUnload Autocommands for "ssh://*":
Error executing lua callback: ...ns/.local/share/nvim/lazy/netman.nvim/lua/netman/api.lua:1480: bad argument #1 to 'fs_stat' (string expected, got nil)
stack traceback:
        [C]: in function 'fs_stat'
        ...ns/.local/share/nvim/lazy/netman.nvim/lua/netman/api.lua:1480: in function 'unload_buffer'
        ...ns/.local/share/nvim/lazy/netman.nvim/lua/netman/api.lua:340: in function <...ns/.local/share/nvim/lazy/netman.nvim/lua/netman/api.lua:337>

Likely due to it being unable to locate the file(s) it expects to exist.