Hello,
> 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'

It seems that you invoked 'GtagsCursor' command in a file
which is out of the project. Though it should bring a error
message, the message is unclear. I will examine how to make
it into an intelligible message.

Thank you for the report.


2014-04-27 1:27 GMT+09:00 Makoto Harada <[email protected]>:

> 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
> [email protected]
> https://lists.gnu.org/mailman/listinfo/bug-global
>



-- 
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3
_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global

Reply via email to