garbas / vim-snipmate

snipMate.vim aims to be a concise vim script that implements some of TextMate's snippets features in Vim.
www.vim.org/scripts/script.php?script_id=2540
2.01k stars 181 forks source link

Failing to complete (with multiple possible) after updated plugin #253

Closed cjavdev closed 7 years ago

cjavdev commented 7 years ago

Hey folks,

I recently updated my plugins and since have been getting this error: Any idea where the "Dictionary as a String" is? Any suggestions for things to try?

Error detected while processing function snipMate#TriggerSnippet..<SNR>38_ChooseSnippet..tlib#input#List..tlib#input#ListW..49..70..tlib#win#SetById:
line    4:
E731: using Dictionary as a String
Error detected while processing function snipMate#TriggerSnippet..<SNR>38_ChooseSnippet:
line   12:
E171: Missing :endif
Error detected while processing function snipMate#TriggerSnippet:
line   40:
E171: Missing :endif
Error detected while processing function snipMate#TriggerSnippet..<SNR>38_ChooseSnippet..tlib#input#List..tlib#input#ListW..49..70..tlib#win#SetById:
line    4:
E731: using Dictionary as a String
Error detected while processing function snipMate#TriggerSnippet..<SNR>38_ChooseSnippet:
line   12:
E171: Missing :endif
Error detected while processing function snipMate#TriggerSnippet:
line   40:
E171: Missing :endif

Press ENTER or type command to continue
cjavdev commented 7 years ago

version 7.4.865

" .vimrc.bundles
if &compatible
  set nocompatible
end

filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'

Plugin 'junegunn/fzf'
Plugin 'scrooloose/syntastic'
Plugin 'MarcWeber/vim-addon-mw-utils'
Plugin 'tomtom/tlib_vim'
Plugin 'garbas/vim-snipmate'
Plugin 'tomtom/tcomment_vim'
Plugin 'w1zeman1p/vim-snippets'
Plugin 'scrooloose/nerdtree'
Plugin 'rking/ag.vim'
Plugin 'powerline/powerline', {'rtp': 'powerline/bindings/vim/'}
Plugin '907th/vim-auto-save'
Plugin 'tpope/vim-rails'
Plugin 'thoughtbot/vim-rspec'
Plugin 'maksimr/vim-jsbeautify'
Plugin 'einars/js-beautify'

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required
cjavdev commented 7 years ago

Seems to be isolated to only when there are conflicts. in this case both html and javascript_jquery are completing the tag html but its crashing when one is selected

ajzafar commented 7 years ago

@w1zeman1p Can you see which tlib commit you're using? Can you try an earlier commit to see if one works, maybe 58f65faa. If an earlier commit works, can you try a git bisect? The function causing problems on SnipMate's end hasn't changed in forever, while tlib has had some problems with Vim 7, so I suspect it might be on tlib's end. It might also work if you upgrade to Vim 8, as I can't reproduce this on my machine with 8.0.386.

cjavdev commented 7 years ago

Hey @ajzafar thanks for the reply! Upgrading to vim 8 fixed this for me! :)