lyuts / vim-rtags

Vim bindings for rtags, llvm/clang based c++ code indexer.
BSD 2-Clause "Simplified" License
282 stars 56 forks source link

E688 more targets than list items ;rJ Up to date rtags, vim-rtags, and vim (8.1) #123

Open phubaba opened 4 years ago

phubaba commented 4 years ago

Seems like this was a previous issue that was solved. Unclear why I'm seeing it again. I'm trying to get this set up for the first time.

Thanks for the help, Rob

previous issue: https://github.com/lyuts/vim-rtags/issues/79

I checked that the suggested code change had been applied.

I also checked that my rc works properly. I can use it to follow-location accurately.

The error when I do ;rJ

"Error deteched while processing function 42[1]..rtags#HandleResults[11]..rtags#Excutehandlers[6]..rtags#JumpToHandler

E688: More targets than ListItems

E121: Undefined variable: jump_file E116: Invalid argument for function rtags#jumpToLocation(jump_file, lnmu, col)

Rtags: $ git log commit 6289e66a69d0d5ff20b12da91e735d3984ad6f88 Merge: a174058 68c0d1e Author: Christian Schwarzgruber c.schwarzgruber.cs@gmail.com Date: Sat Aug 24 16:11:44 2019 +0200

Merge pull request #1338 from Krzmbrzl/patch-1

Improve error message

vim rtags: $ git log commit 3ef48de532c2e875f0fc3c33b34befed2bf37016 Merge: b6629a4 00340be Author: lyuts lyuts@users.noreply.github.com Date: Sun Jul 22 17:55:50 2018 -0700

Merge pull request #107 from flackr/show-hierarchy

Add <Leader>rh command to show class hierarchy

vim is at 8.1 $ vim --version VIM - Vi IMproved 8.1 (2018 May 18, compiled Jul 26 2019 08:43:04) Included patches: 1-1749 Compiled by wlee@ld-dbn-crcvt003 Huge version with GTK2 GUI. Features included (+) or not (-): +acl -farsi -mouse_sysmouse -tag_any_white +arabic +file_in_path +mouse_urxvt -tcl +autocmd +find_in_path +mouse_xterm +termguicolors +autochdir +float +multi_byte +terminal -autoservername +folding +multi_lang +terminfo +balloon_eval -footer -mzscheme +termresponse +balloon_eval_term +fork() +netbeans_intg +textobjects +browse +gettext +num64 +textprop ++builtin_terms -hangul_input +packages +timers +byte_offset +iconv +path_extra +title +channel +insert_expand +perl/dyn +toolbar +cindent +job +persistent_undo +user_commands +clientserver +jumplist +postscript +vartabs +clipboard +keymap +printer +vertsplit +cmdline_compl +lambda +profile +virtualedit +cmdline_hist +langmap +python/dyn +visual +cmdline_info +libcall +python3/dyn +visualextra +comments +linebreak +quickfix +viminfo +conceal +lispindent +reltime +vreplace +cryptv +listcmds +rightleft +wildignore +cscope +localmap -ruby +wildmenu +cursorbind -lua +scrollbind +windows +cursorshape +menu +signs +writebackup +dialog_con_gui +mksession +smartindent +X11 +diff +modify_fname -sound -xfontset +digraphs +mouse +spell +xim +dnd +mouseshape +startuptime -xpm -ebcdic +mouse_dec +statusline +xsmp_interact +emacs_tags -mouse_gpm -sun_workshop +xterm_clipboard +eval -mouse_jsbterm +syntax -xterm_save +ex_extra +mouse_netterm +tag_binary +extra_search +mouse_sgr -tag_old_static system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" user exrc file: "$HOME/.exrc" system gvimrc file: "$VIM/gvimrc" user gvimrc file: "$HOME/.gvimrc" 2nd user gvimrc file: "~/.vim/gvimrc" defaults file: "$VIMRUNTIME/defaults.vim" system menu file: "$VIMRUNTIME/menu.vim"

Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/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/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -I/usr/include/X11 Linking: gcc -L/usr/lib64/X11 -Wl,-E -L/usr/local/lib -Wl,--as-needed -o vim -pthread -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 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lSM -lICE -lXt -lX11 -lSM -lICE -lm -ltinfo -lnsl -lselinux -ldl -Wl,-E -fstack-protector -L/usr/local/lib -L/auto/foopen/miniconda/envs/tools/lib/perl5/5.12.4/x86_64-linux-thread-multi/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc

phubaba commented 4 years ago

Okay so breaking on that function I can actually see the issue. There appears to be some issue connecting to the server.

echo results ['Can''t seem to connect to server (/run/user/7589/rdm.socket)']

line 1: let results = a:results line 2: let open_opt = a:args['open_opt'] line 3: if len(results) >= 0 && open_opt != g:SAME_WINDOW line 5: endif line 7: if len(results) > 1 line 9: elseif len(results) == 1 line 10: let [location; symbol_detail] = split(results[0], '\s+') line 11: let [jump_file, lnum, col; rest] = split(location, ':')

echo results ['Can''t seem to connect to server (/run/user/7589/rdm.socket)']

phubaba commented 4 years ago

okay it seems like I have to run vim in the same bash as the rdm process is running.

mckellyln commented 4 years ago

Maybe not the same bash ? But same user ?? I can run from a different bash ok.