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

Walking up directories does not appear to work. #286

Open
zeronuke opened this issue Feb 27, 2015 · 1 comment
Open

Walking up directories does not appear to work. #286

zeronuke opened this issue Feb 27, 2015 · 1 comment

Comments

@zeronuke
Copy link

Use Case:
Large Project; opening Sublime on a subdirectory of Project.
Sublime opened in: ~/trunk/project_a/sub_a/sub_aa/sub_aaa/

Attempt to find definition of something in sub_c, but the definition is in a different directory in sub_a.
I generated my .tag file in trunk, so I would expect that this would walk up until it hit trunk, and would consume & use that .tag file to find my definition.

It does not appear to do this.

Am I missing a setting or is the walk-up-to-find-tag-file feature limited to n directories?

Thanks for making this, btw. Very handy.

@ghost
Copy link

ghost commented May 1, 2015

I am having the same issue, but it appears to be an issue with having multiple tags files.

Using Sublime Text 2.
I have my project directory as follow:

Head/ProjectName/source/usb/

There is a tags file in 'source' and a tags file in 'usb'. If I search for a variable in a source file located within 'usb', it says "Can't find 'variable'". However the tags file that has that variable is located in the 'source' directory. I'm assuming that it found the first tags file in 'usb' and didn't find the variable so it assumed it didn't exist and didn't bother searching up a directory to see if there was another tags file.

If I change the "tag_file" parameter to look directly in the 'source' directory, it finds the variable.

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

No branches or pull requests

1 participant