-
Notifications
You must be signed in to change notification settings - Fork 5
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
Error executing lua callback: Vim:E315: ml_get: invalid lnum: 1 #9
Comments
Hi @avucic , Thanks for reporting! Can you include the steps to reproduce this problem? When I delete a buffer, everything works as expected. Thank you and best regards, |
Hi @David-Kunz thanks for helping me. Not sure but I think this is related to the neovim/neovim#21416 and this plugin has the same issue When I open multiple files and I try to delete one I'm getting similar error like one mentioned in
Similar issue was mentioned on Let me know if this is not related to the |
Hi @avucic, Thank you so much for this detailed analysis, greatly appreciated! I still cannot reproduce the problem but I implemented a similar fix as in this PR. Would you mind trying it out? Thank you again and best regards, |
I'm not familiar with nvim / lua so I'm not sure how to try it. What I did is following: -- inisde lsp on_attach function
return function(client, bufnr)
vim.api.nvim_buf_attach(bufnr, false, {
on_detach = function()
local ns = vim.api.nvim_get_namespaces()["markid"]
vim.api.nvim_buf_clear_namespace(bufnr, ns, 0, -1)
end,
})
end No luck. Can you give me a hint hot to try? |
@avucic , sorry I should've been more precise: The fix is already in the |
A ha...I did that but unfortunately same thing
|
That's unfortunate. Let's wait for the response of your comment. |
@David-Kunz After I install everything from scratch the issue disappear. Not sure what was the problem. Maybe it was related to the Astrovim update. Anyhow feel free to close this issue for and thanks for the help. Regards |
That's great news, thanks for the info @avucic 👍 |
I don't know if this has any adverse effects, but checking for the if not vim.api.nvim_buf_is_loaded(bufnr) then
return
end fixed it for me. |
@norpie-dev Thank you. That seems to be the fix. I thought a clean install was the solution, but it's not...soon the problem appeared again. |
For some reason I have this error when I tray to delete buffer. Not sure if this related to the
telescope
. Any idea? Thanks in advanceMacOS
NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3
The text was updated successfully, but these errors were encountered: