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

Ctags --exclude not working on ST3 #269

Open
j5shi opened this issue Oct 14, 2014 · 5 comments
Open

Ctags --exclude not working on ST3 #269

j5shi opened this issue Oct 14, 2014 · 5 comments

Comments

@j5shi
Copy link

j5shi commented Oct 14, 2014

It seems that on Sublime Text 3 (Build 3065 on Win64) even --exclude=/some/path is set in CTags.sublime-settings, when rebuild tags, the path which is set in --exclude option is still parsed.

@stephenfin
Copy link
Contributor

Can you give the part of the CTags.sublime-settings file where you set this option?

@j5shi
Copy link
Author

j5shi commented Oct 19, 2014

{
    "autocomplete": true,
    "debug": true,

    "opts" : 
    [
        // The following two lines will not work at all!
        "--exclude=d:/userdata/Work/Projects/BTS_SC_DSPHWAPI/C_Platform/*_RT", 
        "--exclude=d:/OneDrive/Private/Workspace/Proj_C/C_MISC" ,
    ],
}

I think it's probably not a bug in SublimeCtags but in Ctags itself, since I found I'm using Ctags 5.8 without +wildcard compiled feature on Windows, and the problem is that I can't find Ctags with compiled feature wildcard on Windows, otherwise I can verify it.

c:\Ctags\ctags58>ctags.exe --version
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
Compiled: Jul 9 2009, 17:05:35
Addresses: [email protected], http://ctags.sourceforge.net
Optional compiled features: +win32, +regex, +internal-sort

@j5shi
Copy link
Author

j5shi commented Oct 19, 2014

If I have the following dir structure:

Proj_root /
      |_ test1/
      |_ test2/
      |_ xx.c
      |_ ...

then I add

"--exclude=test1" ,
"--exclude=test2" ,

and rebuild tags on Proj_root, then test1 and test2 will be excluded, seems that only relative path to the root of project will work.

@j5shi
Copy link
Author

j5shi commented Oct 19, 2014

BTW, can I put the Ctags options to project setting files? Since that seems to be more reasonable as options could be project related, like the --exclude option.

@stephenfin
Copy link
Contributor

Yes, this feature is being worked on in this pull request. Just waiting on some rework before I merge.

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

No branches or pull requests

2 participants