Skip to content

Missing variable causing autocommand errors #50

Closed
@akinsho

Description

@akinsho

Whilst swapping branches and dealing with a merge conflict I tried to open lua tree and got the following errors. I've seen these before but not sure exactly what causes them, sorry. Just noting here for now will update later once I'm not at work with a clearer way to reproduce if I find it.

E5108: Error executing lua ...al/share/nvim/plugged/nvim-tree.lua/lua/lib/renderer.lua:81: bad argument #1 to 'ipairs' (table expected, got nil)                                                                                                   
E5108: Error executing lua ...al/share/nvim/plugged/nvim-tree.lua/lua/lib/renderer.lua:81: bad argument #1 to 'ipairs' (table expected, got nil)                                                                                                   
Error detected while processing BufEnter Autocommands for "*":                                                                                                                                                                                     
E5108: Error executing lua .../.local/share/nvim/plugged/nvim-tree.lua/lua/lib/lib.lua:172: Cursor position outside buffer                                                                                                                         
E5108: Error executing lua .../.local/share/nvim/plugged/nvim-tree.lua/lua/lib/lib.lua:172: Cursor position outside buffer                                                                                                                         
E5108: Error executing lua .../.local/share/nvim/plugged/nvim-tree.lua/lua/lib/lib.lua:172: Cursor position outside buffer                                                                                                                         
E5108: Error executing lua ...al/share/nvim/plugged/nvim-tree.lua/lua/lib/renderer.lua:81: bad argument #1 to 'ipairs' (table expected, got nil)                                                                                                   
E5108: Error executing lua ...al/share/nvim/plugged/nvim-tree.lua/lua/lib/renderer.lua:81: bad argument #1 to 'ipairs' (table expected, got nil) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions