-
Notifications
You must be signed in to change notification settings - Fork 56
"E688: More targets than List items" when trying to jump to definition of symbol with \rj #79
Comments
I have the same issue with:
|
The "E688: More targets than List items" error comes from here
Debugging, I see that results[0] is "Not indexed" so line 386 gives an error. When I find time, I will try older versions of rtags, vim-rtags, or vim or in |
I investigated further and the bug is a recent regression in vim-rtag plugin. Snippet of git log:
|
I have the same issue, and make a workaround after some debugging work. The reason is quite simple. The 'rc' command doesn't accept input location without path information. For example, you have a source file: '~/work/hello.c', and you can use 'rc' command to inspect if the --follow-location is working or not. Using the 'rc --follow-location hello.c:10:1' will print 'Error, can't resolve argument'. The 'rc' command expects it's input argument has the path information, no matter it is relative or absolute. Using 'rc --follow-location ~/work/hello.c' will generate the correct information. To do so, we need to change one place of rtags##getCurrentLocation function in 'vim-rtags/plugin/rtags.vim'. Change line(334): |
I press \rj to jump to the definition of a c++ symbol and I get:
It also does not jump to the definition, presumably as a result of the error.
It happens all the time. I used to be able to run vim-rtag without problems
but I've re-created my setup with the latest version of the tools and now it
no longer works.
I'm using the latest vim-rtag plugin version from git (via Vundle):
I'm also using using the latest version of rtags from git:
And the latest version of Vim from git on Linux x86_64 (xubuntu-16.04):
Any idea what causes the error?
The text was updated successfully, but these errors were encountered: