Skip to content

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

@miversen33

Description

@miversen33

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.

Metadata

Metadata

Assignees

Labels

CoreIssues with the CoreHigh PriorityNeeds addressed ASAPbugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions