Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing variable causing autocommand errors #50

Closed
akinsho opened this issue Jun 29, 2020 · 3 comments · Fixed by #55
Closed

Missing variable causing autocommand errors #50

akinsho opened this issue Jun 29, 2020 · 3 comments · Fixed by #55

Comments

@akinsho
Copy link
Contributor

akinsho commented Jun 29, 2020

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) 
@kyazdani42
Copy link
Member

i've never encountered these, and i did not manage to reproduce :/
I wont be available for a month after tomorrow so take your time :)

@akinsho
Copy link
Contributor Author

akinsho commented Jul 7, 2020

@kyazdani42 I think I've narrowed this down to switching files in different projects which is something I do often. Essentially if the frontend is in ~/projects/frontend and the backend is in ~/projects/backend and you move between files in each project lua tree throws errors

@kyazdani42
Copy link
Member

i'll push a fix when i have some time :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants