Open mikedfunk opened 10 years ago
Which version of vundle do you use? I tried yesterday with latest one, and had no problem.
I have the same problem, but only on doing :BundleInstall the second time. The first time it works as expected. I posted this as an issue on the coloresque repo with a screenshot. No response. My crappy workaround is to save a session, quit and restart.
Mike Funk mikefunk.com | mike@mikefunk.com
On Mon, Feb 10, 2014 at 8:53 AM, Konstantin Gorodinskii < notifications@github.com> wrote:
Which version of vundle do you use? I tried yesterday with latest one, and had no problem.
Reply to this email directly or view it on GitHubhttps://github.com/gorodinskiy/vim-coloresque/issues/21#issuecomment-34653811 .
Same thing here, any news about this issue?
Same here. If you scroll through the error output (hitting space a few times), vundle continues doing it's updates/installs with no other problems.
Package | Version |
---|---|
vim-coloresque | v0.9.5 (0c21b14) |
vundle | v0.10.2 (0b28e33) |
vim | v7.4.52 |
osx | 10.9.4 |
same here.
update@20150915 The author seems to have stopped maintenance of this project, maybe we should all fork this project and fix this issue by ourselves.
just add these four lines to ./after/syntax/css/vim-coloresque.vim
in function VimCssInit
:
if !exists("b:color_pattern")
let b:color_pattern = {}
return
endif
https://github.com/noscripter/vim-coloresque/blob/master/after/syntax/css/vim-coloresque.vim#L122
change:https://github.com/noscripter/vim-coloresque/commit/92bb99904ee6abe191b748d282a888ddf386bbfb
It blows up here when you do :PluginUpdate
after a while. When you just started Vim it works fine. Here are the errors I see in text form:
Error detected while processing function <SNR>101_VimCssInit:
line 9:
E121: Undefined variable: b:color_pattern
E116: Invalid arguments for function keys(b:color_pattern))>0
E116: Invalid arguments for function len(keys(b:color_pattern))>0
E15: Invalid expression: len(keys(b:color_pattern))>0
Error detected while processing function <SNR>101_VimCssInit..<SNR>101_AdditionalColors..<SNR>101_MatchColorValue:
line 9:
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
...
The solution is rather simple as sangwook already found out.
Just add the following lines on right under line 120 (function! s:VimCssInit(update)
)
if !exists("b:color_pattern")
let b:color_pattern = {}
endif
@gorodinsky maybe you could merge this in, or do you have another solution?