Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why helm-gtags keeps saying "File GTAGS not found. Run 'gtags'(y or n)"? #185

Open
c02y opened this issue Oct 16, 2018 · 1 comment
Open
Labels

Comments

@c02y
Copy link

c02y commented Oct 16, 2018

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?

@jcs090218
Copy link
Collaborator

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants