mhinz / vim-startify

:link: The fancy start screen for Vim.
MIT License
5.31k stars 187 forks source link

Error detected while processing function startify#insane_in_the_membrane[30]..<SNR>64_show_dir: #293

Closed grirgz closed 7 years ago

grirgz commented 7 years ago

Hello, I have an error since a few week (maybe when I updated to ubuntu 16.04) when starting vim:

Error detected while processing function startify#insane_in_the_membrane[30]..<SNR>64_show_dir:
line   12:
E128: Function name must start with a capital or "s:": l:compare(x, y)
Press ENTER or type command to continue

I checked the other bug reports but I don't think it's the same error as I have the last version of startify and I don't have a ~ in my $VIMRUNTIME.

mhinz commented 7 years ago

Huh? Line 12 in show_dir()? -> https://github.com/mhinz/vim-startify/blob/master/autoload/startify.vim#L561

That function has only one line. Please make sure that you're really using the latest version of Startify. It's been a long time since that function had more than one line.

mhinz commented 7 years ago

Wait, there is not even a l:compare() anymore. That function was removed 3 years and 7 months ago. *cough*

Please update the plugin. ;-)

grirgz commented 7 years ago

Oh I'm sorry for taking your time, I was on the wrong repository ( https://github.com/vim-scripts/vim-startify ) I was also surprised when git said "Already up-to-date." but I should look more carefully from where I pull code

Zeitvertreib commented 6 years ago

I'd like to reopen this. I still have the bug. Happens when you set headings in g:startify_list_order. so the following doesn't work: let g:startify_list_order = [ \ [' Sessions'], 'sessions', \ [' Bookmars'], 'bookmarks', \ ] ..but this does: let g:startify_list_order = [ \ 'sessions', \ 'bookmarks', \ ]

..however, I love your plugin.

mhinz commented 6 years ago

@Zeitvertreib

If you get the same error about l:compare(), then you're using a very outdated version of vim-startify. l:compare() was removed 4 years ago.

Zeitvertreib commented 6 years ago

oh sry, my error msg ends with

162_get_lists: line 6: E706 Variable type mismatch for: item (should i open an issue for that? ..no idea.)
mhinz commented 6 years ago

@Zeitvertreib

Ah, I guess you're using an older Vim then. Those had problems with iterating over heterogenous lists, e.g. :for x in [[], {}] | echo string(x) | endfor.

Anyway, please update the plugin, it should be fixed now!

Zeitvertreib commented 6 years ago

Holy, I had this error after updating (using vim-plug). However, I now deleted the bundle files and reinstalled. No error!

Sorry for bothering, and ty for help! :)