Le mardi 25 octobre 2011 22:23:01 UTC+2, [email protected] a écrit : > A user pointed to this weird error which I cannot reproduce nor does it make > any sense.The same user said on a solaris system, the error does not occur. > Can someone offer any thoughts? Thanks > > This is with regards to the CCTree plugin > (http://www.vim.org/scripts/script.php?script_id=2368) > > Latest version: http://www.vim.org/scripts/download_script.php?src_id=16077 > > 1)Vim –noplugin –u NONE filename.c > > File opens fine > > > 2) :source ~/.vim/plugin/cctree.vim > > When I run this it momentarily gives the error: > > line 1300: > E475: Invalid argument: 183 > > which clears and loads filename.c. If I attempt to run the > command again, no error occurs. > > > (There is no EX command on line 1300 in cctree.vim) > > 3) :autocmd > > Gives > > :autocmd > --- Auto-Commands --- > CCTreeMaps FileType > * if &ft == 'c'|| &ft == 'cpp' | call > s:CCTreeBufferKeyMappingsCreate(s:CCTreeKeyMapping > > s)| endif > CCTreeGeneral CursorMoved > CCTree-View > call s:CCTreeGlobals.mCursorHoldHandleEvent() > > > :version > VIM - Vi IMproved 7.0 (2006 May 7, compiled May 4 2007 05:52:52) > Included patches: 1, 3-4, 7-9, 11, 13-17, 19-26, 29-31, 34-44, 47, 50-56, > 58-64, 66-73, 75, 77-92, 9 > > 4-107, 109, 202, 234-235, 237 > Modified by <[email protected]> > Compiled by <[email protected]> > Huge version without GUI. Features included (+) or not (-): > > +arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent > -clientserver > -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +cryptv > +cscope +cursorshape > +dialog_con +diff +digraphs -dnd -ebcdic +emacs_tags +eval +ex_extra > +extra_search +farsi > > +file_in_path +find_in_path +folding -footer +fork() +gettext -hangul_input > +iconv +insert_expand > +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds > +localmap +menu +mksession > +modify_fname +mouse -mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm > +mouse_netterm +mouse_xterm > > +multi_byte +multi_lang -mzscheme -netbeans_intg -osfiletype +path_extra > +perl +postscript +printer > +profile +python +quickfix +reltime +rightleft -ruby +scrollbind +signs > +smartindent -sniff > +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white > -tcl +terminfo > > +termresponse +textobjects +title -toolbar +user_commands +vertsplit > +virtualedit +visual > +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup > -X11 -xfontset -xim > -xsmp -xterm_clipboard -xterm_save > > system vimrc file: "/etc/vimrc" > user vimrc file: "$HOME/.vimrc" > user exrc file: "$HOME/.exrc" > fall-back for $VIM: "/usr/share/vim" > Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexc > > eptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 > -mtune=generic -fasynchronous-u > nwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 > -D_REENTRANT -D_GNU_SOURCE > -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -I/us > > r/include/gdbm -I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE > -I/usr/include/python2.4 –pthread > Compiled by <[email protected]> > Huge version without GUI. Features included (+) or not (-): > > +arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent > -clientserver > -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +cryptv > +cscope +cursorshape > +dialog_con +diff +digraphs -dnd -ebcdic +emacs_tags +eval +ex_extra > +extra_search +farsi > > +file_in_path +find_in_path +folding -footer +fork() +gettext -hangul_input > +iconv +insert_expand > +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds > +localmap +menu +mksession > +modify_fname +mouse -mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm > +mouse_netterm +mouse_xterm > > +multi_byte +multi_lang -mzscheme -netbeans_intg -osfiletype +path_extra > +perl +postscript +printer > +profile +python +quickfix +reltime +rightleft -ruby +scrollbind +signs > +smartindent -sniff > +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white > -tcl +terminfo > > +termresponse +textobjects +title -toolbar +user_commands +vertsplit > +virtualedit +visual > +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup > -X11 -xfontset -xim > -xsmp -xterm_clipboard -xterm_save > > system vimrc file: "/etc/vimrc" > user vimrc file: "$HOME/.vimrc" > user exrc file: "$HOME/.exrc" > fall-back for $VIM: "/usr/share/vim" > Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexc > > eptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 > -mtune=generic -fasynchronous-u > nwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 > -D_REENTRANT -D_GNU_SOURCE > -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -I/us > > r/include/gdbm -I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE > -I/usr/include/python2.4 -pthre > ad > Linking: gcc -Wl,-E > -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -L/usr/local/li > b -o vim -ltermcap -lselinux -lacl -lgpm -Wl,-E > -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux > > -thread-multi/CORE -L/usr/local/lib > /usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/DynaLoader/Dy > naLoader.a -L/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -lperl > -lresolv -lutil -lc -L/usr/lib > /python2.4/config -lpython2.4 -lutil -lm -Xlinker -export-dynamic
I have had the same issue trying to setup cctree. Version 1.40 was working fine for me but not the 1.50 one. After a diff between those two, I have commented out the second definition of function GenericDbLdr.mParseDbHeader in recent versions "function! s:GenericDbLdr.mParseDbHeader(gRdr) " let header = readfile(self.fDBName, "", a:gRdr.headerLines) " return a:gRdr.mParseDbHeader(header) "endfunction Marc -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
