Why helm-gtags keeps saying "File GTAGS not found. Run 'gtags'(y or n)"?
Opened this issue · 1 comments
My source code directory is like this:
- top dir
-- .git
-- src
-- submoduleA
-- .git
-- submoduleB
-- .git
So I open a file in submoduleA and run helm-gtags
function like helm-gtags-find-tag
and it will prompt for creating GTAGS files:
File GTAGS not found. Run 'gtags'(y or n)
and then I choose the src
directory as the "Root Directory" for GTAGS, after it finishes.
I do helm-gtags-find-tag
again, the it will prompt again:
File GTAGS not found. Run 'gtags'(y or n)
So helm-gtags
cannot find GTAGS files.
But if I choose top dir
as Root Directory
, it works as expected.
But if I use xcscope which uses cscope, and put the database files for cscope in src
directory, and xcscope works fine.
Is this a bug for helm-gtags
?
Hi, I encountered this issue long time ago. And I think this issue could be either the original design decision or the a bug from this package.
I think the best solution would just select the project directory as default rather than asking the user for the input. 😕 Thanks!