# HG changeset patch # User Ludovic Chabant # Date 1496931103 25200 # Node ID 25dbdb52adb50b416b822a549ea07ed7a0cffa75 # Parent a1cf97b8f48f24aece0957ef156731b1df7208a1# Parent 676fe2ea919fa92bf4546914d330ecfa0ae10376 Merge pull request #135 from GitHub. diff -r 676fe2ea919f -r 25dbdb52adb5 README.md --- a/README.md Tue May 16 16:04:41 2017 -0400 +++ b/README.md Thu Jun 08 07:11:43 2017 -0700 @@ -43,7 +43,7 @@ always consistent with the source code. Also, Gutentags is clever enough to not stumble upon itself by triggering -multiple ctags processes if you save files to fast, or your project is really +multiple ctags processes if you save files too fast, or your project is really big. diff -r 676fe2ea919f -r 25dbdb52adb5 autoload/gutentags/ctags.vim --- a/autoload/gutentags/ctags.vim Tue May 16 16:04:41 2017 -0400 +++ b/autoload/gutentags/ctags.vim Thu Jun 08 07:11:43 2017 -0700 @@ -35,6 +35,7 @@ " Gutentags Module Interface {{{ +let s:did_check_exe = 0 let s:runner_exe = gutentags#get_plat_file('update_tags') let s:unix_redir = (&shellredir =~# '%s') ? &shellredir : &shellredir . ' %s' @@ -54,11 +55,14 @@ endif " Check if the ctags executable exists. - if g:gutentags_enabled && executable(expand(g:gutentags_ctags_executable, 1)) == 0 - let g:gutentags_enabled = 0 - echoerr "Executable '".g:gutentags_ctags_executable."' can't be found. " - \."Gutentags will be disabled. You can re-enable it by " - \."setting g:gutentags_enabled back to 1." + if s:did_check_exe == 0 + if g:gutentags_enabled && executable(expand(g:gutentags_ctags_executable, 1)) == 0 + let g:gutentags_enabled = 0 + echoerr "Executable '".g:gutentags_ctags_executable."' can't be found. " + \."Gutentags will be disabled. You can re-enable it by " + \."setting g:gutentags_enabled back to 1." + endif + let s:did_check_exe = 1 endif endfunction