OXY2DEV/markview.nvim

๐Ÿž Bug: Invalid buffer id

Closed this issue ยท 6 comments

Before reporting:

  • Ensure that the issue is reproducable on the main branch.
  • Ensure that there isn't an issue on this(either open or closed).

Problem:

This may be somewhat tricky as the issue comes up when using :GpChatDelete from the gp.nvim plugin. That said, I'll do my best to provide the sequence of events leading up to this error:

Error executing vim.schedule lua callback: ....local/share/nvim/lazy/markview.nvim/plugin/markview.lua:128: Invalid buffer id: 18
stack traceback:
        [C]: in function '__index'
        ....local/share/nvim/lazy/markview.nvim/plugin/markview.lua:128: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>
  • Start nvim
  • Run :GpChatNew

Now we have 2 buffers open; our original and the buffer used by the chat (which renders in markdown)

:ls
 14 #h + "[No Name]"                    line 1
 20 %a   "~/.local/share/nvim/gp/chats/2024-10-10.14-48-17.970.md" line 13

Now delete the chat buffer with :GpChatDelete

Steps to reproduce the issue:

See above

Expected behavior:

I don't know and it may be more appropriate to raise this in the gp.nvim repo. Figured I'd start here based on what's generating the error.

Neovim version:

v0.10.1

I have the same error show when using preview in Oil buffers. If I move the cursor down to a .md file and preview it, and then navigate to another file with preview still open I get a similar error as described above (only when moving away from a previewed file).

image

๐Ÿค– Bot: Issue has not seen activity in 30 days and will therefore be marked as stale. It will be closed in 7 days if no further response is found.

Does the error still occur when using the dev branch?

dev doesn't install

dev doesn't install

How did you try to install it? What error did you encounter?

Latest dev branch addresses both scenarios mentioned above. Thank you for your help.