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

bad argument #1 to 'ipairs' (table expected, got nil) #24

Closed
mojasp opened this issue Sep 14, 2022 · 3 comments
Closed

bad argument #1 to 'ipairs' (table expected, got nil) #24

mojasp opened this issue Sep 14, 2022 · 3 comments

Comments

@mojasp
Copy link

mojasp commented Sep 14, 2022

When editing filetypes that are not markdown or txt, i am getting the following error:

E5108: Error executing lua ...te/pack/packer/start/autolist.nvim/lua/autolist/auto.lua:70: bad argument #1 to 'ipairs' (table expected, got nil) stack traceback: [C]: in function 'ipairs' ...te/pack/packer/start/autolist.nvim/lua/autolist/auto.lua:70: in function 'new' [string ":lua"]:1: in main chunk

I had a brief look at the code but don't understand why the erorr happens, the filetype table should never be nil... Strangely the plugin still works when editing markdown or txt files. The plugin was working for me before updating my plugins, i cannot say exactely what is causing this error.

@gaoDean
Copy link
Owner

gaoDean commented Sep 14, 2022

ok should be fixed, just me forgetting something while refactoring

@gaoDean gaoDean closed this as completed Sep 14, 2022
@mojasp
Copy link
Author

mojasp commented Sep 14, 2022

That was fast! Thanks, very cool plugin by the way!

@gaoDean
Copy link
Owner

gaoDean commented Sep 14, 2022

Thanks!

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

No branches or pull requests

2 participants