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
Getting Undefined variable error #464
Comments
What's your vim version?
… On 12 Feb 2018, at 17:02, Jelte Fennema ***@***.***> wrote:
Error detected while processing function gitgutter#init_buffer:
line 3:
E121: Undefined variable: v:t_string
E15: Invalid expression: type(p) != v:t_string || empty(p)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Yep, exact same thing after pulling master branch. Version 7.4 |
The one on Ubuntu 16.04, went home now so cannot check which exact vim
version that is. Sounds like it can easily worked around by replacing
v:t_string with type('') though.
…On Mon, Feb 12, 2018, 18:31 Andy Stewart ***@***.***> wrote:
What's your vim version?
> On 12 Feb 2018, at 17:02, Jelte Fennema ***@***.***>
wrote:
>
> Error detected while processing function gitgutter#init_buffer:
> line 3:
> E121: Undefined variable: v:t_string
> E15: Invalid expression: type(p) != v:t_string || empty(p)
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub, or mute the thread.
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#464 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABG8Jtr7lFOTbFcLUmLvPhOidX2UTDv5ks5tUHWBgaJpZM4SCgOo>
.
|
I agree. It's handy to get an idea of which Vim versions people are using though. For example the new code uses a lambda but I may have to replace that with actual functions for backward compatibility.
… On 12 Feb 2018, at 17:43, Jelte Fennema ***@***.***> wrote:
The one on Ubuntu 16.04, went home now so cannot check which exact vim
version that is. Sounds like it can easily worked around by replacing
v:t_string with type('') though.
On Mon, Feb 12, 2018, 18:31 Andy Stewart ***@***.***> wrote:
> What's your vim version?
>
> > On 12 Feb 2018, at 17:02, Jelte Fennema ***@***.***>
> wrote:
> >
> > Error detected while processing function gitgutter#init_buffer:
> > line 3:
> > E121: Undefined variable: v:t_string
> > E15: Invalid expression: type(p) != v:t_string || empty(p)
> >
> > —
> > You are receiving this because you are subscribed to this thread.
> > Reply to this email directly, view it on GitHub, or mute the thread.
> >
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#464 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ABG8Jtr7lFOTbFcLUmLvPhOidX2UTDv5ks5tUHWBgaJpZM4SCgOo>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
For now we can just use an older commit and checkout if backwards compat is done. If not I'll try to update the ubuntu vim package version from 7.4 to 8. |
Thanks for the nice package! Same issue here. This fixes it for me (random older commit). I use the standard vim version on ubuntu 16.04 (can only install whats in the official sources). $ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:44:48)
Included patches: 1-1689
Extra patches: 8.0.0056
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by pkg-vim-maintainers@lists.alioth.debian.org
Huge version without GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +tag_binary
+arabic +file_in_path +mouse_sgr +tag_old_static
+autocmd +find_in_path -mouse_sysmouse -tag_any_white
-balloon_eval +float +mouse_urxvt -tcl
-browse +folding +mouse_xterm +terminfo
++builtin_terms -footer +multi_byte +termresponse
+byte_offset +fork() +multi_lang +textobjects
+channel +gettext -mzscheme +timers
+cindent -hangul_input +netbeans_intg +title
-clientserver +iconv +packages -toolbar
-clipboard +insert_expand +path_extra +user_commands
+cmdline_compl +job -perl +vertsplit
+cmdline_hist +jumplist +persistent_undo +virtualedit
+cmdline_info +keymap +postscript +visual
+comments +langmap +printer +visualextra
+conceal +libcall +profile +viminfo
+cryptv +linebreak -python +vreplace
+cscope +lispindent +python3 +wildignore
+cursorbind +listcmds +quickfix +wildmenu
+cursorshape +localmap +reltime +windows
+dialog_con -lua +rightleft +writebackup
+diff +menu -ruby -X11
+digraphs +mksession +scrollbind -xfontset
-dnd +modify_fname +signs -xim
-ebcdic +mouse +smartindent -xsmp
+emacs_tags -mouseshape +startuptime -xterm_clipboard
+eval +mouse_dec +statusline -xterm_save
+ex_extra +mouse_gpm -sun_workshop -xpm
+extra_search -mouse_jsbterm +syntax
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -Wdate-time -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim -lm -ltinfo -lnsl -lselinux -lacl -lattr -lgpm -ldl -L/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu -lpython3.5m -lpthread -ldl -lutil -lm |
Error detected while processing function gitgutter#init_buffer:
line 3:
E121: Undefined variable: v:t_string
E15: Invalid expression: type(p) != v:t_string || empty(p)
The text was updated successfully, but these errors were encountered: