-
Notifications
You must be signed in to change notification settings - Fork 52
bug: ipairs argument expects table, not a nil value. #65
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
Comments
Are you using the Telescope plugin by any chance? I am also getting the same error, but only when opening a file with Telescope. Other plugins such as neo-tree as well as plain |
@tristan-harris I have fzf-lua as my main picker but I actually do have telescope installed for a few select plugin interactions... |
Ah, interesting. I know there are various issues related to opening the buffer with Telescope: https://github.com/MeanderingProgrammer/markdown.nvim/blob/main/doc/limitations.md. Thanks for brining that up! I believe fzf had some similar issues for changing modes to open the buffer: #36. I can definitely see the latest changes causing more edge cases related to this. Since after opening the buffer often they'll also move the cursor to the last active position. |
Telescope and fzf stuff should work better after last commit |
Neovim version (nvim -v)
0.10.0
Operating system
Windows
Terminal emulator / GUI
Wezterm
Describe the bug
Attempted to open an obsidian.nvim markdown file of mine and was met with the following error:
Error executing vim.schedule lua callback: ...vim-data/lazy/render-markdown/lua/render-markdown/ui.lua:82: bad argument #1 to 'ipairs' (table expected, got nil) stack traceback: [C]: in function 'ipairs' ...vim-data/lazy/render-markdown/lua/render-markdown/ui.lua:82: in function 'refresh' ...vim-data/lazy/render-markdown/lua/render-markdown/ui.lua:32: in function <...vim-data/lazy/render-markdown/lua/render-markdown/ui.lua:30>
It seems like the new change was not handling an empty table very well. I am not familiar with your code base but I successfully attempted a quick fix. PR Incoming!
Expected behavior
I have opened this file several times this week prior to your two latest commits without any issue or error...I wasn't sure what to expect with the new full conceal behavior but I didn't expect the error.
Healthcheck output (:checkhealth render-markdown)
render-markdown: require("render-markdown.health").check()
markdown.nvim [neovim version] ~
markdown.nvim [configuration] ~
markdown.nvim [nvim-treesitter] ~
markdown.nvim [executables] ~
Additional information
No response
The text was updated successfully, but these errors were encountered: