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

E254: Cannot allocate color 0 #13

Open
KnBrckr opened this issue Mar 3, 2021 · 3 comments · May be fixed by #21
Open

E254: Cannot allocate color 0 #13

KnBrckr opened this issue Mar 3, 2021 · 3 comments · May be fixed by #21

Comments

@KnBrckr
Copy link

KnBrckr commented Mar 3, 2021

Seeing the following when loading the color scheme:

Error detected while processing function 26_Hi[49]..26_AddAnsiGroups:
line 18:
E254: Cannot allocate color 0
E254: Cannot allocate color 0

I've confirmed that the terminal can support true color.

Using vim 8.1 on Ubuntu in a WSL2 environment. Tested with and without tmux with no effect on the errors.

@KnBrckr
Copy link
Author

KnBrckr commented Mar 24, 2021

I've isolated the problem to this part of shades-of-purple.vim:

if exists('*term_setansicolors')
  let g:terminal_ansi_colors = repeat([0], 16)

endif

When terminal_ansi_colors gets set in this way, I see these errors.

@KasonBraley
Copy link

I also receive this same error. Fresh install on macOS Big Sur. vim 8.2

@eduardo-hyodo
Copy link

I get the same problem when I use FZF with crtl-P.
if I comment this lines everthing works. but I am not sure the colorscheme is right inside de quickfix windows or the fzf window

@tobil4sk tobil4sk linked a pull request Aug 25, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants