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

KeyError 'colors' on Alacritty #304

Open
tquin opened this issue Aug 23, 2021 · 1 comment
Open

KeyError 'colors' on Alacritty #304

tquin opened this issue Aug 23, 2021 · 1 comment

Comments

@tquin
Copy link

tquin commented Aug 23, 2021

Hi,

I've hit an bug affecting Alacritty specifically from what I can see - on the same machine, xfce4-terminal runs the script perfectly. Specifically, this is the error I'm getting in Alacritty:

Enter OPTION(S) : 122

Theme: Neon Night
•••••••• ••••••••

Traceback (most recent call last):
  File "<string>", line 17, in <module>
  File "/home/USERNAME/.local/lib/python3.9/site-packages/ruamel/yaml/comments.py", line 918, in __getitem__
    return ordereddict.__getitem__(self, key)
KeyError: 'colors'

I'm assuming that's referencing the apply-alacritty.py file.

For system info, running on Arch/EndeavourOS, with i3 as the WM. Thanks!

@jdrusso
Copy link

jdrusso commented Apr 8, 2022

In your alacritty.yml config file, uncomment the colors key, along with primary, normal, and bright under it. You may also need to export TERMINAL=alacritty.

apply-alacritty.py reads your current config in as a dict and tries to update it with the new colors. However, since colors are in a nested dict (i.e., config['colors']['primary']), if the top-level colors dict doesn't exist, it can't reference the nested ones.

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