general

What could be causing the 'list index out of range' error when running the Tabby NeoVIM plugin?

I'm trying to run the Tabby NeoVIM plugin but getting the following error:

Error detected while processing VimEnter Autocommands for ""..function tabby#OnVimEnter: line 28: E684: list index out of range: 0 Press ENTER or type command to continue Error detected while processing VimEnter Autocommands for ""..function tabby#OnVimEnter: line 28: E116: Invalid arguments for function str2nr Press ENTER or type command to continue

Any idea what could be causing this error?

Ch

Christian D. Peer

Asked on Dec 04, 2023

The error message indicates that there was an exception when the Tabby plugin attempts to check the Node.js version. This could be caused by an incorrect Node.js version or a problem with the path to the Node.js binary. To troubleshoot, you can check the installed Node.js version using the command node --version. If the version is correct, you can try setting the vim.g.tabby_node_binary variable to the correct path of the Node.js binary. In this case, setting it to /snap/node/current/bin/node solved the issue. It's also worth checking if the system() function is working properly by running :echom system("/snap/bin/node --version"). If it doesn't give any output, there might be an issue with the system command execution. Finally, it's possible that the error is caused by the symlink to the snap binary instead of the actual Node.js binary. In that case, setting the vim.g.tabby_node_binary to the binary path (/snap/node/current/bin/node) instead of the symlink (/snap/bin/node) can resolve the issue.

Dec 04, 2023Edited by