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

Erroneous message when enable Dracula for Vim #73

Closed
yzgyyang opened this issue Apr 13, 2018 · 3 comments
Closed

Erroneous message when enable Dracula for Vim #73

yzgyyang opened this issue Apr 13, 2018 · 3 comments
Labels

Comments

@yzgyyang
Copy link

What happened

When I enable dracula for Vim, the following error message shows:

Error detected while processing function <SNR>14_h:
line    4:
E121: Undefined variable: idx
E116: Invalid arguments for function filter(get(a:, 2, ['NONE']), {idx, val -> type(val) == 1})
E15: Invalid expression: filter(get(a:, 2, ['NONE']), {idx, val -> type(val) == 1})
line    5:
E121: Undefined variable: l:attr_list
E116: Invalid arguments for function len(l:attr_list) > 0 ? join(l:attr_list, ',') : 'NONE'
E15: Invalid expression: len(l:attr_list) > 0 ? join(l:attr_list, ',') : 'NONE'
line   15:
E121: Undefined variable: l:attrs
E15: Invalid expression: [ 'highlight', a:scope, 'guifg=' . l:fg[0], 'ctermfg=' . l:fg[1], 'guibg=' . l:bg[0], 'ctermbg=' . l:bg[1], 'gui=' . l:attrs, 'cterm=' . l:attrs, 'guisp=' . l:special[0],]
line   23:
E121: Undefined variable: l:hl_string
E116: Invalid arguments for function join(l:hl_string, ' ')
E15: Invalid expression: join(l:hl_string, ' ')
line    4:
E121: Undefined variable: idx
E116: Invalid arguments for function filter(get(a:, 2, ['NONE']), {idx, val -> type(val) == 1})
E15: Invalid expression: filter(get(a:, 2, ['NONE']), {idx, val -> type(val) == 1})
line    5:
E121: Undefined variable: l:attr_list
E116: Invalid arguments for function len(l:attr_list) > 0 ? join(l:attr_list, ',') : 'NONE'
E15: Invalid expression: len(l:attr_list) > 0 ? join(l:attr_list, ',') : 'NONE'
line   15:
E121: Undefined variable: l:attrs
E15: Invalid expression: [ 'highlight', a:scope, 'guifg=' . l:fg[0], 'ctermfg=' . l:fg[1], 'guibg=' . l:bg[0], 'ctermbg=' . l:bg[1], 'gui=' . l:attrs, 'cterm=' . l:attrs, 'guisp=' . l:special[0],]
line   23:
E121: Undefined variable: l:hl_string
E116: Invalid arguments for function join(l:hl_string, ' ')
E15: Invalid expression: join(l:hl_string, ' ')
line    4:
E121: Undefined variable: idx
E116: Invalid arguments for function filter(get(a:, 2, ['NONE']), {idx, val -> type(val) == 1})
E15: Invalid expression: filter(get(a:, 2, ['NONE']), {idx, val -> type(val) == 1})
line    5:
E121: Undefined variable: l:attr_list
E116: Invalid arguments for function len(l:attr_list) > 0 ? join(l:attr_list, ',') : 'NONE'
E15: Invalid expression: len(l:attr_list) > 0 ? join(l:attr_list, ',') : 'NONE'
line   15:
E121: Undefined variable: l:attrs
E15: Invalid expression: [ 'highlight', a:scope, 'guifg=' . l:fg[0], 'ctermfg=' . l:fg[1], 'guibg=' . l:bg[0], 'ctermbg=' . l:bg[1], 'gui=' . l:attrs, 'cterm=' . l:attrs, 'guisp=' . l:special[0],]
line   23:
E121: Undefined variable: l:hl_string
E116: Invalid arguments for function join(l:hl_string, ' ')
E15: Invalid expression: join(l:hl_string, ' ')
line    4:
E121: Undefined variable: idx
E116: Invalid arguments for function filter(get(a:, 2, ['NONE']), {idx, val -> type(val) == 1})
E15: Invalid expression: filter(get(a:, 2, ['NONE']), {idx, val -> type(val) == 1})
line    5:
E121: Undefined variable: l:attr_list
E116: Invalid arguments for function len(l:attr_list) > 0 ? join(l:attr_list, ',') : 'NONE'
E15: Invalid expression: len(l:attr_list) > 0 ? join(l:attr_list, ',') : 'NONE'
line   15:
E121: Undefined variable: l:attrs
E15: Invalid expression: [ 'highlight', a:scope, 'guifg=' . l:fg[0], 'ctermfg=' . l:fg[1], 'guibg=' . l:bg[0], 'ctermbg=' . l:bg[1], 'gui=' . l:attrs, 'cterm=' . l:attrs, 'guisp=' . l:special[0],]
line   23:
E121: Undefined variable: l:hl_string
E116: Invalid arguments for function join(l:hl_string, ' ')
E15: Invalid expression: join(l:hl_string, ' ')
line    4:
E121: Undefined variable: idx
E116: Invalid arguments for function filter(get(a:, 2, ['NONE']), {idx, val -> type(val) == 1})
E15: Invalid expression: filter(get(a:, 2, ['NONE']), {idx, val -> type(val) == 1})
line    5:
E121: Undefined variable: l:attr_list
E116: Invalid arguments for function len(l:attr_list) > 0 ? join(l:attr_list, ',') : 'NONE'
E15: Invalid expression: len(l:attr_list) > 0 ? join(l:attr_list, ',') : 'NONE'
line   15:
E121: Undefined variable: l:attrs
E15: Invalid expression: [ 'highlight', a:scope, 'guifg=' . l:fg[0], 'ctermfg=' . l:fg[1], 'guibg=' . l:bg[0], 'ctermbg=' . l:bg[1], 'gui=' . l:attrs, 'cterm=' . l:attrs, 'guisp=' . l:special[0],]
line   23:
E121: Undefined variable: l:hl_string
E116: Invalid arguments for function join(l:hl_string, ' ')
E15: Invalid expression: join(l:hl_string, ' ')
line    4:
E121: Undefined variable: idx
E116: Invalid arguments for function filter(get(a:, 2, ['NONE']), {idx, val -> type(val) == 1})
E15: Invalid expression: filter(get(a:, 2, ['NONE']), {idx, val -> type(val) == 1})
line    5:
E121: Undefined variable: l:attr_list
E116: Invalid arguments for function len(l:attr_list) > 0 ? join(l:attr_list, ',') : 'NONE'
E15: Invalid expression: len(l:attr_list) > 0 ? join(l:attr_list, ',') : 'NONE'
line   15:
E121: Undefined variable: l:attrs
E15: Invalid expression: [ 'highlight', a:scope, 'guifg=' . l:fg[0], 'ctermfg=' . l:fg[1], 'guibg=' . l:bg[0], 'ctermbg=' . l:bg[1], 'gui=' . l:attrs, 'cterm=' . l:attrs, 'guisp=' . l:special[0],]
line   23:
E121: Undefined variable: l:hl_string
E116: Invalid arguments for function join(l:hl_string, ' ')
E15: Invalid expression: join(l:hl_string, ' ')
line    4:
E121: Undefined variable: idx
E116: Invalid arguments for function filter(get(a:, 2, ['NONE']), {idx, val -> type(val) == 1})
E15: Invalid expression: filter(get(a:, 2, ['NONE']), {idx, val -> type(val) == 1})
line    5:
E121: Undefined variable: l:attr_list
E116: Invalid arguments for function len(l:attr_list) > 0 ? join(l:attr_list, ',') : 'NONE'
E15: Invalid expression: len(l:attr_list) > 0 ? join(l:attr_list, ',') : 'NONE'
line   15:
E121: Undefined variable: l:attrs
E15: Invalid expression: [ 'highlight', a:scope, 'guifg=' . l:fg[0], 'ctermfg=' . l:fg[1], 'guibg=' . l:bg[0], 'ctermbg=' . l:bg[1], 'gui=' . l:attrs, 'cterm=' . l:attrs, 'guisp=' . l:special[0],]
line   23:
E121: Undefined variable: l:hl_string
E116: Invalid arguments for function join(l:hl_string, ' ')
E15: Invalid expression: join(l:hl_string, ' ')
line    4:
E121: Undefined variable: idx
E116: Invalid arguments for function filter(get(a:, 2, ['NONE']), {idx, val -> type(val) == 1})
E15: Invalid expression: filter(get(a:, 2, ['NONE']), {idx, val -> type(val) == 1})
line    5:
E121: Undefined variable: l:attr_list
E116: Invalid arguments for function len(l:attr_list) > 0 ? join(l:attr_list, ',') : 'NONE'
E15: Invalid expression: len(l:attr_list) > 0 ? join(l:attr_list, ',') : 'NONE'
line   15:
E121: Undefined variable: l:attrs
E15: Invalid expression: [ 'highlight', a:scope, 'guifg=' . l:fg[0], 'ctermfg=' . l:fg[1], 'guibg=' . l:bg[0], 'ctermbg=' . l:bg[1], 'gui=' . l:attrs, 'cterm=' . l:attrs, 'guisp=' . l:special[0],]
line   23:
E121: Undefined variable: l:hl_string
E116: Invalid arguments for function join(l:hl_string, ' ')
E15: Invalid expression: join(l:hl_string, ' ')
line    4:
E121: Undefined variable: idx
E116: Invalid arguments for function filter(get(a:, 2, ['NONE']), {idx, val -> type(val) == 1})
E15: Invalid expression: filter(get(a:, 2, ['NONE']), {idx, val -> type(val) == 1})
line    5:
E121: Undefined variable: l:attr_list
E116: Invalid arguments for function len(l:attr_list) > 0 ? join(l:attr_list, ',') : 'NONE'
E15: Invalid expression: len(l:attr_list) > 0 ? join(l:attr_list, ',') : 'NONE'
line   15:
E121: Undefined variable: l:attrs
E15: Invalid expression: [ 'highlight', a:scope, 'guifg=' . l:fg[0], 'ctermfg=' . l:fg[1], 'guibg=' . l:bg[0], 'ctermbg=' . l:bg[1], 'gui=' . l:attrs, 'cterm=' . l:attrs, 'guisp=' . l:special[0],]
line   23:
E121: Undefined variable: l:hl_string
E116: Invalid arguments for function join(l:hl_string, ' ')
E15: Invalid expression: join(l:hl_string, ' ')
line    4:
E121: Undefined variable: idx
E116: Invalid arguments for function filter(get(a:, 2, ['NONE']), {idx, val -> type(val) == 1})
E15: Invalid expression: filter(get(a:, 2, ['NONE']), {idx, val -> type(val) == 1})
...

... and a lot more.

I am not sure if this relates to problems about my own configuration, or it is a bug/incompatibility.

What I expected to happen

Screenshot

Machine Info

  • Vim type (vim/gvim/neovim): vim
  • Vim version: 7.4
  • OS: Ubuntu 16.04 (both on actual machine and on WSL)
  • Terminal/Terminal Emulator/VTE:
  • TERM environment variable: xterm-256color

Additional Info

@yzgyyang
Copy link
Author

Ugh. Compiled and installed Vim 8 and problem solved. Ubuntu 16.04 still has the several-year-old vim 7.4 as the newest vim and this is the problem.

@dsifford
Copy link
Member

Hey, thanks for reporting!

That's still good to know. That little filter method can probably be refactored for better backwards compat 👍

@dsifford dsifford reopened this Apr 13, 2018
@dsifford dsifford added the bug label Apr 13, 2018
@yzgyyang
Copy link
Author

Thanks!!

nineKnight added a commit to nineKnight/dracula.vim that referenced this issue Apr 20, 2018
* Updates team list

* Fixes typo

* Fixes link

* Merge lightline + adjust lightline & airline (dracula#72)

* add built-in lightline support

Co-authored-by: adamalbrecht <[email protected]>

* finish lightline merge

* finish airline update

* add inline doc comments to airline script functions

* add back modified groups to airline

* adjust maintainers + add @benknoble in README.md

* remove lambda for better backwards compat. closes dracula#73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants