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

Error during installation: Key not present in Dictionary: "visual_black " #292

Closed
2 tasks done
kohane27 opened this issue Oct 15, 2021 · 4 comments
Closed
2 tasks done

Comments

@kohane27
Copy link

kohane27 commented Oct 15, 2021

Terminal Emulator Info

alacritty 0.10.0-dev (ec4dc326)

Alacritty supports TRUECOLOR.

Output From nvim --version

NVIM v0.5.0
Build type: Debug
LuaJIT 2.1.0-beta3

Issue Description

Steps to reproduce:

  1. Install through the plugin manager vim-plug:
call plug#begin(has('nvim') ? stdpath('data') . '/plugged' : '~/.vim/plugged')
    Plug 'joshdick/onedark.vim'
call plug#end()
  1. Add the following two lines to /home/user/init.vim:
set background=dark
colorscheme onedark
  1. Restart neovim and the following appears:
Error detected while processing /home/user/.config/nvim/colors/onedark.vim:
line  122:
E716: Key not present in Dictionary: "visual_black " Black out selected text in 16-color visual mode"
E15: Invalid expression: s:colors.visual_black " Black out selected text in 16-color visual mode
line  221:
E121: Undefined variable: s:visual_black
E116: Invalid arguments for function <SNR>16_h

Any help is much appreciated. Thank you:)

@yabcd
Copy link

yabcd commented Nov 30, 2021

I have the same problem because there is no color configuration for visual_black in autoload /onedark.vim, you can do it yourself. I chose to delete the fg property on line 221 in the error file.

@joshdick
Copy link
Owner

joshdick commented Nov 30, 2021

All references to visual_black were removed in #271, around ~5 months before this writing.

The issue is likely either that autoload/onedark.vim or colors/onedark.vim is out of date, in which case you should re-clone or update your copy of onedark.vim, or that visual_black is still being referenced in your own configuration, in which case it should be removed from your configuration.

@kohane27
Copy link
Author

kohane27 commented Dec 9, 2021

  • The reason it wasn't working is that in my nvim dir I have a dir called colors with onedark.vim inside. Once I deleted it, I could use joshdick/onedark.vim. Sorry for my mistake.

gshiba added a commit to gshiba/vim-colorschemes that referenced this issue Feb 25, 2022
@briantully
Copy link

FWIW, I experienced this issue because I also had 'flazz/vim-colorschemes' installed, which apparently includes an older version of onedark.vim that has this issue. Removing or renaming onedark.vim within vim-colorschemes/colors fixed the issue for me.

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

4 participants