xolox / vim-lua-ftplugin

Lua file type plug-in for the Vim text editor
http://peterodding.com/code/vim/lua-ftplugin
187 stars 27 forks source link

xolox#misc#option#get unknown function #14

Closed gcollura closed 11 years ago

gcollura commented 11 years ago

I've installed your plugin on Vim 7.4 and keep getting this error each time I save a .lua file (I can't get vim-lua-ftplugin work with YouCompleteMe too, but this is another story):

"colourful/main.lua" 15L, 243C written                                                                                                        
Error detected while processing function xolox#lua#autocheck:                                                                                 
line    2:                                                                                                                                    
E117: Unknown function: xolox#misc#option#get                                                                                                 
E15: Invalid expression: xolox#misc#option#get('lua_check_syntax', 1)                                                                         
line    5:                                                                                                                                    
E117: Unknown function: xolox#misc#option#get                                                                                                 
E15: Invalid expression: xolox#misc#option#get('lua_check_globals', 0) && empty(getqflist()) 

My version of vim:

VIM - Vi IMproved 7.4b BETA (2013 Jul 28, compiled Aug 10 2013 18:00:53)                                                                      
Included patches: 1-21                                                                                                                        
Modified by pkg-vim-maintainers@lists.alioth.debian.org                                                                                       
Compiled by buildd@                                                                                                                           
Huge version with GTK2 GUI.  Features included (+) or not (-):                                                                                
+arabic          +cryptv          +file_in_path    +linebreak       +mouse_sgr       +python/dyn      +tag_binary      +viminfo               
+autocmd         +cscope          +find_in_path    +lispindent      -mouse_sysmouse  +python3/dyn     +tag_old_static  +vreplace              
+balloon_eval    +cursorbind      +float           +listcmds        +mouse_urxvt     +quickfix        -tag_any_white   +wildignore            
+browse          +cursorshape     +folding         +localmap        +mouse_xterm     +reltime         +tcl             +wildmenu              
++builtin_terms  +dialog_con_gui  -footer          +lua             +multi_byte      +rightleft       +terminfo        +windows               
+byte_offset     +diff            +fork()          +menu            +multi_lang      +ruby            +termresponse    +writebackup           
+cindent         +digraphs        +gettext         +mksession       -mzscheme        +scrollbind      +textobjects     +X11                   
+clientserver    +dnd             -hangul_input    +modify_fname    +netbeans_intg   +signs           +title           -xfontset              
+clipboard       -ebcdic          +iconv           +mouse           +path_extra      +smartindent     +toolbar         +xim                   
+cmdline_compl   +emacs_tags      +insert_expand   +mouseshape      +perl            -sniff           +user_commands   +xsmp_interact         
+cmdline_hist    +eval            +jumplist        +mouse_dec       +persistent_undo +startuptime     +vertsplit       +xterm_clipboard       
+cmdline_info    +ex_extra        +keymap          +mouse_gpm       +postscript      +statusline      +virtualedit     -xterm_save            
+comments        +extra_search    +langmap         -mouse_jsbterm   +printer         -sun_workshop    +visual                                 
+conceal         +farsi           +libcall         +mouse_netterm   +profile         +syntax          +visualextra                            
   system vimrc file: "$VIM/vimrc"                                                                                                            
     user vimrc file: "$HOME/.vimrc"                                                                                                          
      user exrc file: "$HOME/.exrc"                                                                                                           
  system gvimrc file: "$VIM/gvimrc"                                                                                                           
    user gvimrc file: "$HOME/.gvimrc"                                                                                                         
    system menu file: "$VIMRUNTIME/menu.vim"                                                                                                  
  fall-back for $VIM: "/usr/share/vim"                                                                                                        
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I
/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/g
lib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/h
arfbuzz     -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1     -I/u
sr/include/tcl8.5  -D_REENTRANT=1  -D_THREAD_SAFE=1  -D_LARGEFILE64_SOURCE=1                                                                  
Linking: gcc   -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -rdynamic -Wl,-export-dynamic -Wl,-E  -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-
needed -o vim   -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetyp
e -lfontconfig -lgobject-2.0 -lglib-2.0   -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE  -lm -ltinfo -lnsl  -lselinux   -lacl -lattr -lgpm -l
dl  -L/usr/lib -llua5.1 -Wl,-E  -fstack-protector -L/usr/local/lib  -L/usr/lib/perl/5.14/CORE -lperl -ldl -lm -lpthread -lcrypt   -L/usr/lib/x
86_64-linux-gnu -ltcl8.5 -ldl -lpthread -lieee -lm -lruby-1.9.1 -lpthread -lrt -ldl -lcrypt -lm  -L/usr/lib

Thanks a lot for your support, if you need more info just ask me :)

Giulio

xolox commented 11 years ago

Sorry, this is caused by a recent change:

From the readme:

Please note that the vim-lua-ftplugin plug-in requires my vim-misc plug-in which is separately distributed.

From the vim-misc readme:

The vim-misc plug-in contains Vim scripts that are used by most of the Vim plug-ins I've written yet don't really belong with any single one of the plug-ins. Basically it's an extended standard library of Vim script functions that I wrote during the development of my Vim profile and plug-ins.

In the past these scripts were bundled with each plug-in, however that turned out to be a maintenance nightmare for me. That's why the miscellaneous scripts are now a proper plug-in with their own page on Vim Online.

Because the miscellaneous scripts are no longer bundled with my Vim plug-ins, users are now required to install the miscellaneous scripts separately. This is unfortunate for users who are upgrading from a previous release that did bundle the miscellaneous scripts, but I don't see any way around this. Sorry!

So please install xolox/vim-misc as a separate plug-in and it should work.

gcollura commented 11 years ago

Thanks!