What is your environment(OS)?
Windows XP SP3

Which version of GLOBAL are you using?
GLOBAL 6.2.8 Win32

What did you do? (command line)
1, Added gtags.vim and gtags-cscope.vim to vim's plugin directory
2, generated gtags in the project's root folder with `gtags`
3, add `let g:Gtags_Auto_Update = 1` in _vimrc
4, save file with `:w`

What did you expect from it?
The gtags database should be updated.

What was occurred?
There was no update.

Proposal:
This happens to be a bug specifically using the Win32 version.
`global --single-update "t.c"`
won't refresh the gtags database correctly, it gives an error:
`The filename, directory name, or volume lable syntax is incorrect.`

This can be fixed by switching to the DOS version's global.exe

also in gtags.vim
the following change should be done to enable the correct syntax of global
single-update

--- a/bundle/gtags-6.2.8/plugin/gtags.vim
+++ b/bundle/gtags-6.2.8/plugin/gtags.vim
@@ -466,7 +466,7 @@ endfunction
 " Auto update of tag files using incremental update facility.
 "
 function! s:GtagsAutoUpdate()
-    let l:result = system(s:global_command . " -u --single-update=\"" .
expand("%") . "\"")
+    let l:result = system(s:global_command . " --single-update \"" .
expand("%") . "\"")
 endfunction


Best regards,
Sheng Yun
_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global

Reply via email to