Raimondi / delimitMate

Vim plugin, provides insert mode auto-completion for quotes, parens, brackets, etc.
http://www.vim.org/scripts/script.php?script_id=2754
1.99k stars 116 forks source link

error when starting vim with delimMate #288

Closed nilsdrews closed 4 years ago

nilsdrews commented 4 years ago

After upgrading to 2.7 I get the following errors (I am using oh-my-vim to pull it in). Downgrading to 2.6 resolves this again.

Error detected while processing /Users/nils.drews/.oh-my-vim/bundle/delimitMate.vim/plugin/delimitMate.vim[367]..function <SNR>84_DelimitMateDo[16]..<SNR>84_init[3]..<SNR>84_option_init[11]..<SNR>84_s[1]..delimitMate#Set[1]..<SNR>85_s:
line   12:
E716: Key not present in Dictionary: autoclose = a:value
E488: Trailing characters: = a:value
E716: Key not present in Dictionary: matchpairs = a:value
E488: Trailing characters: = a:value
Error detected while processing /Users/nils.drews/.oh-my-vim/bundle/delimitMate.vim/plugin/delimitMate.vim[367]..function <SNR>84_DelimitMateDo[16]..<SNR>84_init[6]..<SNR>84_g[1]..delimitMate#Get[1]..<SNR>85_g:
line    7:
E716: Key not present in Dictionary: matchpairs
E15: Invalid expression: s:options.1.matchpairs
Error detected while processing /Users/nils.drews/.oh-my-vim/bundle/delimitMate.vim/plugin/delimitMate.vim[367]..function <SNR>84_DelimitMateDo[16]..<SNR>84_init[6]..<SNR>84_option_init[11]..<SNR>84_s[1]..delimitMate#Set[1]..<SNR>85_s:
line   12:
E716: Key not present in Dictionary: matchpairs_list = a:value
E488: Trailing characters: = a:value
Error detected while processing /Users/nils.drews/.oh-my-vim/bundle/delimitMate.vim/plugin/delimitMate.vim[367]..function <SNR>84_DelimitMateDo[16]..<SNR>84_init[7]..<SNR>84_g[1]..delimitMate#Get[1]..<SNR>85_g:
line    7:
E716: Key not present in Dictionary: matchpairs_list
E15: Invalid expression: s:options.1.matchpairs_list
Error detected while processing /Users/nils.drews/.oh-my-vim/bundle/delimitMate.vim/plugin/delimitMate.vim[367]..function <SNR>84_DelimitMateDo[16]..<SNR>84_init:
line    8:
E896: Argument of filter() must be a List, Dictionary or Blob
delimitMate: each member of a pair in delimitMate_matchpairs must be different from each other.
line   11:
E896: Argument of map() must be a List, Dictionary or Blob
E714: List required
delimitMate: invalid pairs: 0
           ted while processing BufEnter Autocommands for "*"..function <SNR>84_DelimitMateDo[16]..<SNR>84_init[3]..<SNR>84_option_init[11]..<SNR>84_s[1]..delimitMate#Set[1]..<SNR>85_s:
line   12:
E716: Key not present in Dictionary: autoclose = a:value
E488: Trailing characters: = a:value
E716: Key not present in Dictionary: matchpairs = a:value
E488: Trailing characters: = a:value
Error detected while processing BufEnter Autocommands for "*"..function <SNR>84_DelimitMateDo[16]..<SNR>84_init[6]..<SNR>84_g[1]..delimitMate#Get[1]..<SNR>85_g:
line    7:
E716: Key not present in Dictionary: matchpairs
E15: Invalid expression: s:options.1.matchpairs
Error detected while processing BufEnter Autocommands for "*"..function <SNR>84_DelimitMateDo[16]..<SNR>84_init[6]..<SNR>84_option_init[11]..<SNR>84_s[1]..delimitMate#Set[1]..<SNR>85_s:
line   12:
E716: Key not present in Dictionary: matchpairs_list = a:value
E488: Trailing characters: = a:value
Error detected while processing BufEnter Autocommands for "*"..function <SNR>84_DelimitMateDo[16]..<SNR>84_init[7]..<SNR>84_g[1]..delimitMate#Get[1]..<SNR>85_g:
line    7:
E716: Key not present in Dictionary: matchpairs_list
E15: Invalid expression: s:options.1.matchpairs_list
Error detected while processing BufEnter Autocommands for "*"..function <SNR>84_DelimitMateDo[16]..<SNR>84_init:
line    8:
E896: Argument of filter() must be a List, Dictionary or Blob
delimitMate: each member of a pair in delimitMate_matchpairs must be different from each other.
line   11:
E896: Argument of map() must be a List, Dictionary or Blob
E714: List required
delimitMate: invalid pairs: 0
nilsdrews commented 4 years ago
nils.drews:delimitMate.vim/ (master) $ git checkout refs/tags/2.6                                                                                                                                                                           [12:15:00]
Note: switching to 'refs/tags/2.6'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at e58f989 Version 2.6
nils.drews:delimitMate.vim/ (e58f989) $ cd ..                                                                                                                                                                                               [12:15:08]
nils.drews:bundle/ (master) $ pwd                                                                                                                                                                                                           [12:15:10]
/Users/nils.drews/.oh-my-vim/bundle
Raimondi commented 4 years ago

Do a git checkout master and then git pull to get the latest changes.

nilsdrews commented 4 years ago

That's how I got there, that's why I switched to the version before and - boom - it worked again flawlessly. There must have been something in the latest commits that broke it. On the other hand my origin is: https://github.com/vim-scripts/delimitMate.vim.git --> so maybe your changes did not make it there properly?

Raimondi commented 4 years ago

That's the wrong repo to pull from, use this one.

nilsdrews commented 4 years ago

Okay, I'll get in contact there and see that they update as well. I see here you are already on 2.8 so this seems to be something limited to 2.7.