lightline.vim icon indicating copy to clipboard operation
lightline.vim copied to clipboard

Latest update as of 4/6/16 is broken

Open shikhanshu opened this issue 10 years ago • 16 comments

I just ran PlguinUpdate to update lightline, and now it doesn't work. At vim load time, I see this:

Error detected while processing function lightline#update..lightline#statusline..<SNR>29_line..<SNR>29_expand:
line    5:
E121: Undefined variable: v:key
E116: Invalid arguments for function map(v:val, "s:convert(v:val, string(" . v:key . "))")
Error detected while processing function lightline#update..lightline#statusline..<SNR>29_line..<SNR>29_expand..<SNR>29_flatten_twice:
line    4:
E734: Wrong variable type for +=
Error detected while processing function lightline#update..lightline#statusline..<SNR>29_line:
line   10:
E714: List required
Error detected while processing function lightline#update_once..lightline#update..lightline#statusline..<SNR>29_line..<SNR>29_expand:
line    5:
E121: Undefined variable: v:key
Error detected while processing function lightline#update_once..lightline#update..lightline#statusline..<SNR>29_line..<SNR>29_expand:
line    5:
E116: Invalid arguments for function map(v:val, "s:convert(v:val, string(" . v:key . "))")
Error detected while processing function lightline#update_once..lightline#update..lightline#statusline..<SNR>29_line..<SNR>29_expand..<SNR>29_flatten_twice:
line    4:
E734: Wrong variable type for +=
Error detected while processing function lightline#update_once..lightline#update..lightline#statusline..<SNR>29_line:
line   10:
E714: List required

Please fix.

shikhanshu avatar Apr 06 '16 21:04 shikhanshu

same for me :'(

WillyMaikowski avatar Apr 06 '16 21:04 WillyMaikowski

Do you know how to revert back to the last working version (if there's a way to know what that was)

shikhanshu avatar Apr 06 '16 22:04 shikhanshu

You can download an older version of the autoload/lightline.vim and change it inside your .vim/ directory I downloaded a february version and works.

WillyMaikowski avatar Apr 06 '16 22:04 WillyMaikowski

Cool, thanks!

shikhanshu avatar Apr 06 '16 22:04 shikhanshu

What's your Vim's version? If you use 7.2.*, that's too old.

itchyny avatar Apr 06 '16 23:04 itchyny

I mentioned my vim version in my original post. yes it is 7.2.* I have no other option because this is a workplace machine and I don't control what's installed.

Are you saying that lightline.vim (as of today) officially does not support 7.2? Then can you please update the README to reflect that? Thanks for confirming. You can also close this ticket if you don't plan to fix it for 7.2.*

shikhanshu avatar Apr 07 '16 01:04 shikhanshu

I have the same version here. Im working in an external server so I can't update. Yes! Please update the README. El 6 abr. 2016 22:02, "Shikhanshu Agarwal" [email protected] escribió:

I mentioned my vim version in my original post. yes it is 7.2.* I have no other option because this is a workplace machine and I don't control what's installed.

Are you saying that lightline.vim (as of today) officially does not support 7.2? Then can you please update the README to reflect that? Thanks for confirming. You can also close this ticket if you don't plan to fix it for 7.2.*

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/itchyny/lightline.vim/issues/156#issuecomment-206640087

WillyMaikowski avatar Apr 07 '16 01:04 WillyMaikowski

Thank you for your issue report. I decided to support old Vim. Please confirm the latest version.

itchyny avatar Apr 08 '16 00:04 itchyny

Still get errors:

Error detected while processing function lightline#update..lightline#statusline..<SNR>29_line..<SNR>29_expand..<SNR>29_map:
line    3:
E121: Undefined variable: i:i
E116: Invalid arguments for function map(a:xs[i:i], substitute(a:f, 'v:key', i, 'g')))
E116: Invalid arguments for function extend
Error detected while processing function lightline#update..lightline#statusline..<SNR>29_line..<SNR>29_expand..<SNR>29_flatten_twice:
line    2:
E714: List required
Error detected while processing function lightline#update..lightline#statusline..<SNR>29_line:
line   10:
E714: List required
Error detected while processing function lightline#update_once..lightline#update..lightline#statusline..<SNR>29_line..<SNR>29_expand..<SNR>29_map:
line    3:
E121: Undefined variable: i:i
Error detected while processing function lightline#update_once..lightline#update..lightline#statusline..<SNR>29_line..<SNR>29_expand..<SNR>29_map:
line    3:
E116: Invalid arguments for function map(a:xs[i:i], substitute(a:f, 'v:key', i, 'g')))
Error detected while processing function lightline#update_once..lightline#update..lightline#statusline..<SNR>29_line..<SNR>29_expand..<SNR>29_map:
line    3:
E116: Invalid arguments for function extend
Error detected while processing function lightline#update_once..lightline#update..lightline#statusline..<SNR>29_line..<SNR>29_expand..<SNR>29_flatten_twice:
line    2:
E714: List required
Error detected while processing function lightline#update_once..lightline#update..lightline#statusline..<SNR>29_line:
line   10:
E714: List required

shikhanshu avatar Apr 08 '16 04:04 shikhanshu

I fixed again, sorry.

itchyny avatar Apr 08 '16 04:04 itchyny

Works now. Thanks a lot for fixing and keeping support for 7.2.*

Thanks, Shikhanshu

On Thu, Apr 7, 2016 at 9:54 PM, itchyny [email protected] wrote:

I fixed again, sorry.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/itchyny/lightline.vim/issues/156#issuecomment-207214989

shikhanshu avatar Apr 08 '16 04:04 shikhanshu

Hi, I'm using vim 7.4 from ubuntu 16.04 and gets to the same error. I searched through the commit history and the latest working commit for me is 757fa3daf3a7932dcd6bf7d1859276a3b8d9001c

lmr3796 avatar Jun 10 '16 16:06 lmr3796

The error occurs in the latest version of lightline?

itchyny avatar Jun 10 '16 17:06 itchyny

Yes, I'm using it with vundle so I think it's the latest

lmr3796 avatar Jun 10 '16 18:06 lmr3796

I tried with a cleaner setup with only lightline plugin in vundle config and it works.

I'll figure out which of other plugins is causing this.

lmr3796 avatar Jun 10 '16 19:06 lmr3796

With Vundle you have to do ":PluginUpdate" to obtain new versions El 10 jun. 2016 3:03 PM, "lmr3796" [email protected] escribió:

I tried with a cleaner setup with only lightline plugin in vundle config and it works.

I'll figure out which of other plugins is causing this.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/itchyny/lightline.vim/issues/156#issuecomment-225268686, or mute the thread https://github.com/notifications/unsubscribe/ACIlks1pK5SNicS8VdA2DIp7fcupkD4tks5qKbUZgaJpZM4IBgOq .

WillyMaikowski avatar Jun 10 '16 19:06 WillyMaikowski