You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error when deleting dangling symlink with delete_to_trash set to true:
E5108: Error executing lua: ...es/start/oil.nvim/lua/oil/adapters/trash/freedesktop.lua:78: attempt to index a nil value
stack traceback:
...es/start/oil.nvim/lua/oil/adapters/trash/freedesktop.lua:78: in function 'get_write_trash_dir'
...es/start/oil.nvim/lua/oil/adapters/trash/freedesktop.lua:523: in function 'create_trash_info'
...es/start/oil.nvim/lua/oil/adapters/trash/freedesktop.lua:618: in function 'delete_to_trash'
.../pack/packages/start/oil.nvim/lua/oil/adapters/files.lua:514: in function 'perform_action'
...te/pack/packages/start/oil.nvim/lua/oil/mutator/init.lua:454: in function 'next_action'
...te/pack/packages/start/oil.nvim/lua/oil/mutator/init.lua:457: in function 'process_actions'
...te/pack/packages/start/oil.nvim/lua/oil/mutator/init.lua:537: in function 'cb'
...pack/packages/start/oil.nvim/lua/oil/mutator/preview.lua:129: in function 'confirm'
...pack/packages/start/oil.nvim/lua/oil/mutator/preview.lua:177: in function <...pack/packages/start/oil.nvim/lu
a/oil/mutator/preview.lua:176>
What is the severity of this bug?
breaking (some functionality is broken)
Steps To Reproduce
Create minimal init.lua as shown below
Create a dangling symlink: ln -s foo bar
nvim --clean -u init.lua .
Goto the symlink, delete it in oil buffer, save it and confirm deletion
Did you check the docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.0-dev-1627+g879617c9bb
Operating system/version
Linux 6.1.60-1-lts
Describe the bug
Error when deleting dangling symlink with
delete_to_trash
set to true:What is the severity of this bug?
breaking (some functionality is broken)
Steps To Reproduce
init.lua
as shown belowln -s foo bar
nvim --clean -u init.lua .
Expected Behavior
No error
Directory structure
bar -> foo (broken link)
Repro
Did you check the bug with a clean config?
nvim -u repro.lua
using the repro.lua file above.The text was updated successfully, but these errors were encountered: