Macvim: "Cannot allocate color"

Created on 2 May 2016  路  8Comments  路  Source: macvim-dev/macvim

Error since latest update:

Error detected while processing /Applications/MacVim.app/Contents/Resources/vim/runtime/colors/macvim.vim:
line   54:
E254: Cannot allocate color MacSelectedTextBackgroundColor
line  109:
E254: Cannot allocate color MacTextColor
E254: Cannot allocate color MacTextBackgroundColor

Most helpful comment

I see this, too...

MacVim
Custom Version 7.4 (102)

OS X El Capitan
Version 10.11.5 Beta (15F28b)

All 8 comments

I see this, too...

MacVim
Custom Version 7.4 (102)

OS X El Capitan
Version 10.11.5 Beta (15F28b)

Seeing same issue. Started happening after I let MacVim autoupdate. I completely removed my .vim/, .vimrc and .gvimrc and still seeing the errors when starting MacVim with the mvim script.
No errors though if I start gvim with either
/Applications/MacVim.app/Contents/MacOS/Vim -g -u NONE or
/Applications/MacVim.app/Contents/MacOS/Vim -g -U NONE or
/Applications/MacVim.app/Contents/MacOS/Vim -g -u NONE -U NONE

MacVim
Custom Version 7.4 (102)

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled May 1 2016 03:47:06)
MacOS X (unix) version
Included patches: 1-1811

OS X El Capitan
Version 10.11.4

same problem here

mac os El Capitan 10.11.4
Error detected while processing /Applications/MacVim.app/Contents/Resources/vim/runtime/colors/macvim.vim:
line 54:
E254: Cannot allocate color MacSelectedTextBackgroundColor
line 109:
E254: Cannot allocate color MacTextColor
E254: Cannot allocate color MacTextBackgroundColor

MacVim version 7.4 (102)

here too

PS. Also can't find ChangeLog...

As a temporary workaround, try putting "let macvim_skip_colorscheme=1" in your vimrc, and making sure to not subsequently do colorscheme macvim or call any other colorscheme that uses MacVim's pseudo-colors mentioned in the error message.

Vim recently messed around with their color internals. I'm sure this will be fixed soon.

Do the MacVim developers get the same error? It fills the console when MacVim is started via a command.

After a quick test, #276 seems to fix the issue.

Was this page helpful?
0 / 5 - 0 ratings