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

Notification handler error: KeyError: 'Grey' #44

Closed
hplar opened this issue Aug 7, 2020 · 2 comments
Closed

Notification handler error: KeyError: 'Grey' #44

hplar opened this issue Aug 7, 2020 · 2 comments

Comments

@hplar
Copy link

hplar commented Aug 7, 2020

Updated CHADTree today through VimPlug and trying to open the tree in neovim is giving me an error.
Current commit: 81da653

Error:

error caught in notification handler '/home/hplar/.config/nvim/plugged/chadtree/rplugin/python3/chadtree:command:CHADopen []'
Traceback (most recent call last):
  File "/home/hplar/.pyenv/envs/neovim3/lib/python3.8/site-packages/pynvim/plugin/host.py", line 145, in _on_notification
    handler(*args)
  File "/home/hplar/.pyenv/envs/neovim3/lib/python3.8/site-packages/pynvim/plugin/host.py", line 86, in _wrap_delayed_function
    plugin = cls(self._configure_nvim_for(cls))
  File "/home/hplar/.config/nvim/plugged/chadtree/rplugin/python3/chadtree/__init__.py", line 66, in __init__
    settings = initial_settings(
  File "/home/hplar/.config/nvim/plugged/chadtree/rplugin/python3/chadtree/settings.py", line 69, in initial
    hl_context = parse_ls_colours(colours)
  File "/home/hplar/.config/nvim/plugged/chadtree/rplugin/python3/chadtree/ls_colours.py", line 262, in parse_ls_colours
    hl_lookup: Dict[str, HLgroup] = {
  File "/home/hplar/.config/nvim/plugged/chadtree/rplugin/python3/chadtree/ls_colours.py", line 263, in <dictcomp>
    k: parseHLGroup(parse_styling(v), colours=colours)
  File "/home/hplar/.config/nvim/plugged/chadtree/rplugin/python3/chadtree/ls_colours.py", line 228, in parseHLGroup
    colours.bit8_mapping[cast(AnsiColour, fg).name]
KeyError: 'Grey'

Neovim version:

NVIM v0.4.3
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: /usr/lib/ccache/bin/cc -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -pipe  -g -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic
 -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLAR
ATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/builddir/neovim-0.4.3/build/config -I/builddir/neovim-0.4.3/src -I/usr/include -I/builddir/neovim-0.4.3/build/src/nvim/auto -
I/builddir/neovim-0.4.3/build/include
Compiled by void-buildslave@a-hel-fi

Features: +acl +iconv +tui

If you need more info, please let me know.

@ms-jpq
Copy link
Owner

ms-jpq commented Aug 7, 2020

sorry, i didnt notice typo last night

885dcec

@ms-jpq ms-jpq closed this as completed Aug 7, 2020
@hplar
Copy link
Author

hplar commented Aug 8, 2020

Tried it today, working as expected!

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