Skip to content
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

E684: list index out of range: 0 #5

Closed
chrissound opened this issue Mar 1, 2020 · 4 comments
Closed

E684: list index out of range: 0 #5

chrissound opened this issue Mar 1, 2020 · 4 comments

Comments

@chrissound
Copy link

Thanks for making this! I did run into this error though.

Error detected while processing /home/chris/.config/nvim/plugged/vim-nightfly-guicolors/colors/nightfly.vim:
line   20:
E684: list index out of range: 0
E15: Invalid expression: nvim_list_uis()[0]['ext_termcolors'] && !&termguicolors
@bluz71
Copy link
Owner

bluz71 commented Mar 2, 2020

Can you provide details about your Neovim client and version.

If I was to guess I suspect you may be running an older version of Neovim. To-be-confirmed.

Neovim 0.4.3 works fine for me, for reference.

Ultimately this should be fixed. I just need details to repeat it. Thanks.

@chrissound
Copy link
Author

NVIM v0.3.8
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: 
Compiled by nixbld

Features: +acl +iconv +jemalloc +tui 
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "
/nix/store/g4g7h0gj5fxygvdyb550rm49s8qrb07x-neovim-unwrapped-0.3.8/share/nvim"

Run :checkhealth for more info

@bluz71
Copy link
Owner

bluz71 commented Mar 6, 2020

This issue is now fixed in that latest commit, please update and try again.

It seems the ext_termcolors attribute is only set for Neovim client 0.4 and later. For older Neovim clients I no longer do the termguicolors test; however it should be pretty obvious that something is wrong if a user doesn't set it (for terminal-based Neovim).

@bluz71 bluz71 closed this as completed Mar 6, 2020
@chrissound
Copy link
Author

chrissound commented Mar 6, 2020

Thank you! Works great :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants