[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
global command with "--from-here" option failed when using GTAGSLIBPATH
From: |
Makoto Harada |
Subject: |
global command with "--from-here" option failed when using GTAGSLIBPATH |
Date: |
Sun, 27 Apr 2014 01:27:01 +0900 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 |
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
- global command with "--from-here" option failed when using GTAGSLIBPATH,
Makoto Harada <=