|
From: | Shigio YAMAGUCHI |
Subject: | Re: global command with "--from-here" option failed when using GTAGSLIBPATH |
Date: | Mon, 28 Apr 2014 06:40:44 +0900 |
Hello,
This is just a error report. I'm not sure if this is the expected
behavior or not,
but just want to notify you regarding my findings, and how I worked
around on this.
----------------------------------------------------------
Environment:
- Ubuntu 12.10
- global: 6.2.10
- gtags.vim in the global-6.2.10.tar.gz
----------------------------------------------------------
Symptom:
1. This problem happens with multi tag files environment using
GTAGSLIBPATH environment variable.
export GTAGSLIBPATH=":\
/home/hoge/sourceA:\
/home/hoge/sourceB:\
"
2. current directory is at /home/hoge/sourceA/
3. vim is opening the file "testb.c" which is under /home/hoge/sourceB/
4. Searching the funcA using global command, which exists in the same
file "testb.c", always fails with following error message.
Error: global command failed. command line: global
--from-here="122:/home/hoge/testb.c" --result=ctags-mod -qe 'funcA'
----------------------------------------------------------
Workaround:
When omitting the "--from-here" option in gtags.vim as shown below, this
problem was solved.
- .vim/plugin/gtags.vim
function! s:GtagsCursor()
let l:pattern = expand("<cword>")
"let l:option = "--from-here=\"" . line('.') . ":" . expand("%") . "\""
let l:option = ""
call s:ExecLoad('', l:option, l:pattern)
endfunction
----------------------------------------------------------
Kind Regards,
Makoto
_______________________________________________
Bug-global mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-global
[Prev in Thread] | Current Thread | [Next in Thread] |