bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in gtags.vim


From: Shigio YAMAGUCHI
Subject: Re: bug in gtags.vim
Date: Wed, 19 Jun 2013 10:44:27 +0900

Hello,
Though GLOBAL doesn't supports DOS and Windows 32 environment,
we accept code for them if the following requirements are met:
(1) It works in DOS and(or) Windows 32 environment.
(2) It doesn't influence UNIX environment.

There is no problem in your patch. I'll include it in the next release.

Thank you for your report and patch.

On Tue, 18 Jun 2013 18:12:18 +0800
yun sheng <address@hidden> wrote:

> 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
> 


-- 
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3



reply via email to

[Prev in Thread] Current Thread [Next in Thread]