ldelossa / nvim-ide

A full featured IDE layer for Neovim. Heavily inspired by VSCode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error on neovim exit

AlwaysIngame opened this issue · comments

I am getting an error using this plugin, it's related to the terminal
I am using the default configuration.

Steps to produce:

  1. Open nvim (nvim-ide opens left panel)
  2. Open a terminal from the terminal browser
  3. :qa close neovim
  4. See an error in the terminal

This is the error:
Error detected while processing TermClose Autocommands for "*": Error executing lua callback: ...al/share/nvim/lazy/nvim-ide/lua/ide/trees/marshaller.lua:124: Failed to delete line stack traceback: [C]: in function 'nvim_buf_set_lines' ...al/share/nvim/lazy/nvim-ide/lua/ide/trees/marshaller.lua:124: in function 'marshal' ...n/.local/share/nvim/lazy/nvim-ide/lua/ide/trees/tree.lua:263: in function 'marshal' ...ua/ide/components/terminal/terminalbrowser/component.lua:76: in function 'refresh' ...ua/ide/components/terminal/terminalbrowser/component.lua:104: in function <...ua/ide/components/terminal/terminalbrowser/component.lua:101>

Not sure what it means, and it doesn't affect my usage of this plugin anyway except that the error looks annoying

I should also mention that the error appears once for every terminal that is open.

Hmm, this seems like a weird timing bug.

Can you try again with the latest commit I just pushed?

I am still getting the same error

I actually get a similar error without opening a terminal. Sometimes when I close neovim I see this error multiple times in my terminal:
Error executing vim.schedule lua callback: ...al/share/nvim/lazy/nvim-ide/lua/ide/trees/marshaller.lua:124: Failed to delete line stack traceback: [C]: in function 'nvim_buf_set_lines' ...al/share/nvim/lazy/nvim-ide/lua/ide/trees/marshaller.lua:124: in function 'marshal' ...n/.local/share/nvim/lazy/nvim-ide/lua/ide/trees/tree.lua:263: in function 'marshal' .../lazy/nvim-ide/lua/ide/components/explorer/component.lua:252: in function 'expand' .../lazy/nvim-ide/lua/ide/components/explorer/component.lua:208: in function '' vim/_editor.lua: in function <vim/_editor.lua:0>

Yeah, Im thinking this is a timing bug between the termclose event firing and something with the buffer.

The issue for me is it doesnt happen all the time, tho I have seen it. May need a bit to debug this one.

@AlwaysIngame - Can you try again with latest commit? I did the hacky thing and just wrapped it in a try/catch lua equivalent.

Yea that seems to fix the issue related to having an open terminal.
I'll keep using the plugin and see if this issue ever comes up again. Thanks